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.

php parse error when post is moved into a certain category

August 05, 2010 11:18am

Subscribe [3]
  • #1 / Aug 05, 2010 11:18am

    Hi,
    We have been running EE (1.6.7) for some time now, with very few problems.
    On sunday I had a new article go live, and the article page shows a php parse error :(

    Parse error: syntax error, unexpected T_STRING in /home/uncommon/domains/uncommonhelp.me/public_html/backstage/core/core.functions.php(637) : eval()‘d code on line 211

    After a lot of testing I have discovered that I can not add any new articles to a certain category (all other articles in that category are working fine).
    If I create a test article and put it into any other category, it displays ok, if I put it into the problem cat, it throws a parse error :(
    Have attached the template debug for the same test page but for a good cat and one for the bad cat, the shorter one is the one with the parse error.
    It appears to glitch at line 143 (in the bad log, equiv line in good log is 144)
    This appears to be the ‘Processing Advanced Conditionals’
    Both good and bad are using the same template.

    Any pointers would be great thanks
    If any other info/files needed let me know 😊

    Thanks

    Matt

  • #2 / Aug 05, 2010 11:22am

    Sorry it wont let me attach the good log file , so here it is ziped

  • #3 / Aug 05, 2010 6:58pm

    Brandon Jones

    5500 posts

    Uncommon Knowledge,

    That usually indicates that there’s a syntax error involving a conditional in that template. I’d also highly recommend upgrading to 1.6.9 as soon as possible.

  • #4 / Aug 05, 2010 7:11pm

    is there any characters that could appear in a post that would cause this?
    As every other post in that category is fine :(

    Nothing has been changed in the template, and there dosnt appear to be any conditionals that relate to this category in the template :(

    Is there any extra logging that can be turned on to get a more detailed error log on what is causing the problem?  I dont have ssh access to this server (Server is Linux and apache)

    As far as i can tell i have made sure that there are no ‘non-standard’ characters in the post.

    Matt

  • #5 / Aug 06, 2010 5:54am

    John Henry Donovan

    12339 posts

    Matt,

    You are using one one the more complicated methods to pull content in your template using quite a few extensions.

    Can you create a blank template and try a regular weblog:entries tag with some category tags to see if it renders without errors?

    Just add the following to the template and nothing else

    {exp:weblog:entries weblog="blog" entry_id="12"}
    {title}
    {categories}{category_name}{/categories}
    {/exp:weblog:entries}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases