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.

conditional error - entry date/current time

September 26, 2012 4:23pm

Subscribe [1]
  • #1 / Sep 26, 2012 4:23pm

    melissajc

    88 posts

    This question may be related to a resolved thread.

    EE:  v2.5.3 - Build Date: 20120911

    {if "{entry_date format="%Y%m%d"}" ==  "{current_time format="%Y%m%d"}"}

    returns this error:

    A PHP Error was encountered
    Severity: User Warning
    Message: Invalid EE Conditional Variable: {if "{entry_date format="%F %d %Y"}
    Filename: libraries/Functions.php
    Line Number: 2876

    A PHP Error was encountered
    Severity: Warning
    Message: Cannot modify header information - headers already sent by (output started at /home/site/public_html/sub/system/codeigniter/system/core/Exceptions.php:170)
    Filename: core/Common.php
    Line Number: 412

    I have applied both of the patches linked below:

    http://ellislab.com/forums/viewreply/1028964/

    http://ellislab.com/forums/viewreply/1030047/

    Thank you.

     

  • #2 / Sep 27, 2012 3:56pm

    Kevin Smith

    4784 posts

    Hi melissajc,

    Do you still get an error if you change the conditional to read like this?

    {if "{entry_date format='%Y%m%d'}" ==  "{current_time format='%Y%m%d'}"}

    (Note the use of single quotes instead of double quotes.)

  • #3 / Sep 27, 2012 6:01pm

    melissajc

    88 posts

    Thanks Kevin. I had originally done that when I upgraded to the latest version, and was getting a parse error, but just tried again now and it seems to be working. Perhaps the two patches fixed it.  Thanks.

  • #4 / Sep 28, 2012 2:45am

    Kevin Smith

    4784 posts

    Great! Glad to see that took care of it.

    Let us know when we can help again, Melissa!

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

ExpressionEngine News!

#eecms, #events, #releases