I just did some really really basic updates to my site, and now I'm having some extremely weird behavior. Take this conditional for example:

{if '{expiration_date format="%U"}' <= '{current_time format="%U"}'}

Despite outputting both these variables between comment-statements and actually seeing that expiration_date is higher then current_time (i.e. 1358865518 / 1358336648) the result is still being output.

Now in another template I'm using MX Calculcator in a conditional to check for certain entry-counts ({exp:mx_calc expression="mod(({count}-10),19)"}), which was working just dandy til 5 minutes ago, and now always resolves....

Has anyone ever had this before? The only changes I've done are to templates...

  • What do you mean with "basic updates"?
    – KSPR
    Jan 16 '13 at 11:21
  • Templates, static files (css, js, images), one or two unrelated modules were updated (Exp-resso Store and Stash).
    – Steven
    Jan 16 '13 at 11:24
  • Make sure you're using the latest version of EE, the last version or so had a problem with conditionals. Jan 16 '13 at 12:07
  • gah! dammit! I'm on 2.5.1. ok thanks!
    – Steven
    Jan 16 '13 at 12:12

Ok, so apparently this is a pre 2.5.3 bug. Updating to 2.5.5 resolved this.

  • Good to know...my installations are on 2.5.3, but I was worried about problems happening!! (I'll still want to get the sites upgraded from 2.5.3, though. I know they had two dot-rev updates released in December 2012.)
    – user800
    Jan 16 '13 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.