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.

error log report

January 10, 2011 1:31pm

Subscribe [4]
  • #1 / Jan 10, 2011 1:31pm

    adamprocter

    228 posts

    I have been tidying up things today and wondered if this was anything to note from the error_log file in my ee2.1.3 install

    [10-Jan-2010 15:54:53] PHP Parse error:  syntax error, unexpected T_STRING in /webroot/public_html/eefolder/eesystem/expressionengine/libraries/Functions.php(614) : eval()'d code on line 33
    [10-Jan-2010 15:57:04] PHP Parse error:  syntax error, unexpected T_STRING in /webroot/public_html/eefolder/eesystem/expressionengine/libraries/Functions.php(614) : eval()'d code on line 32
    [10-Jan-2010 16:29:08] PHP Parse error:  syntax error, unexpected T_STRING in /webroot/public_html/eefolder/eesystem/expressionengine/libraries/Functions.php(614) : eval()'d code on line 30

    it repeats this quite a bit but only for line 30,32 & 33

  • #2 / Jan 10, 2011 9:03pm

    Brandon Jones

    5500 posts

    Hi adamprocter,

    That indicates syntax errors in one or more of your EE templates (likely involving conditionals). Make sure you have error reporting enabled, and when you trigger that error from a template take a look at what is on the line indicated.

  • #3 / Jan 11, 2011 9:49am

    adamprocter

    228 posts

    im on ee2 so struggled a bit - i think i turned it all on. where will the errors display ?
    will i get a message saying no errors ?

    and my php says display_errors   STDOUT

    so i did the override option

    anyway nothing displayed when I visited all my pages - but I am not sure I did this right ? Where should I be viewing them from ?

  • #4 / Jan 12, 2011 3:17am

    John Henry Donovan

    12339 posts

    Adam,

    can you explain exactly what you did to turn on error reporting?
    The document Brandon linked to was for EE1.6.x only.

    To turn it on in EE2.x open up your index.php file and change debug to 1

    $debug = 1;

    Can you try and collate a visit to a page on your front-end and the error to try and narrow down the issue.
    Did you have any templates with conditionals or PHP?

  • #5 / Jan 12, 2011 9:33am

    adamprocter

    228 posts

    I did in fact turn debug to =1

    Anyway did it again - went through all my pages and found errors on my rss feed, feed was empty - as I have not made a new post for a while - adding a new post removed the error and feed was working, deleted new entry and feed broke.

    I have another rss feed that was ok so I used that code instead and seems to have cleared error (even with new entry deleted)

    old rss code below - maybe there was something wrong in it…

    {exp:rss:feed channel="mychannel"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">
    
        <channel>
        
        <title>{exp:xml_encode}{channel_name}{/exp:xml_encode}</title>
        <link>{channel_url}</link>
        <description>{channel_description}</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:channel:entries channel="mychannel" limit="10" dynamic_start="on" disable="member_data"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{comment_url_title_auto_path}</link>
          <guid>{comment_url_title_auto_path}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description><![CDATA[{article_para_one} <a href="http://{title_permalink=">Read More & Comment</a>]]></description> 
         
           <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:channel:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #6 / Jan 12, 2011 6:00pm

    Ingmar

    29245 posts

    So, you’re good now? Working as expected?

  • #7 / Jan 13, 2011 6:09am

    adamprocter

    228 posts

    I believe so - thanks

  • #8 / Jan 13, 2011 4:53pm

    Ingmar

    29245 posts

    Very good. Post again in case there’s anything else, please.

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

ExpressionEngine News!

#eecms, #events, #releases