ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

August/September {month_num} bug

November 05, 2010 10:13am

Subscribe [3]
  • #1 / Nov 05, 2010 10:13am

    Wardour

    7 posts

    This error was reported back in 2006, but I can’t find a solution to it..

    http://ellislab.com/forums/viewthread/61609/

    I’m running EE version 1.6.9

    When you evaluate {month_num} against {segment_4} it works for all months except September and August, both of which evaluate the same.

    So using a conditional {if {segment_4} == {month_num}} to apply a class of “current” it will apply it to both August and September at the same time.

    Works perfectly in June, July, October and November.

    Anyone got any ideas about this, please

  • #2 / Nov 06, 2010 12:38am

    Sue Crocker

    26054 posts

    Did you try the code listed by Lisa?

  • #3 / Nov 09, 2010 10:10am

    Wardour

    7 posts

    Yes - I tried that code.

    {month_num} returns 08 for August and returns 09 for September.
    If {segment_4} is 08, Expression Engine returns {month_num} == {segment_4} as TRUE for both August and September (It seems to think that 08 = 09 and 09 = 08!!!)
    Also even when {segment_4} is empty, EE returns a match for both August and September, but no other months.  There must be something wrong at a core file level. It works perfectly for every other month of the year.

    It would be great to get some resolution to this.

  • #4 / Nov 09, 2010 5:20pm

    Ingmar

    29245 posts

    Can you please try to upgrade to EE 1.7? It would help us to rule out file corruption and make sure we’re on the same page in terms of code. If that doesn’t help, please post a bit more of your code.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases