Parse errors
By Paul
3/5 based on 2 votes. The median rating is 5.
By Paul
First, be sure you didn't forget to run upgrade.php after upgrading from an old version and be sure you're not using old templates with a new version (these are two common ways to get parse errors).
Incorrect syntax in your link importance formula or member rating formula can cause a parse error on submissions/registrations.
Most parse errors are caused by PHP or conditionals syntax areas inside templates. Usually the cause is incorrect usage, but sometimes unexpected content in template variables used within these areas can be the issue (thus you may have a parse error in one category but not in another).
Make sure that your debug mode is not set to "suppress errors" and take a look at the information provided to you on the page with the parse error.
If you've been customizing the template, be sure to consult the manual entry on conditionals syntax to see if you are using the wrong syntax on the lines which the error message highlights for you. If you cannot deduce from looking at them what the problem is, then copy and paste the content from your screen into a new thread on the support forum.
If neccesary, you may wish to go through and remove each conditionals area and paste them into a separate temporary document. Then put them back in one at a time until you see which one is giving the error. Usually though, the screen output should give a strong hint of which one it is.
It is possible that you could have multiple parse errors. If so, after solving each one you will have to come back and look at the new error message.
Incorrect syntax in your link importance formula or member rating formula can cause a parse error on submissions/registrations.
Most parse errors are caused by PHP or conditionals syntax areas inside templates. Usually the cause is incorrect usage, but sometimes unexpected content in template variables used within these areas can be the issue (thus you may have a parse error in one category but not in another).
Make sure that your debug mode is not set to "suppress errors" and take a look at the information provided to you on the page with the parse error.
If you've been customizing the template, be sure to consult the manual entry on conditionals syntax to see if you are using the wrong syntax on the lines which the error message highlights for you. If you cannot deduce from looking at them what the problem is, then copy and paste the content from your screen into a new thread on the support forum.
If neccesary, you may wish to go through and remove each conditionals area and paste them into a separate temporary document. Then put them back in one at a time until you see which one is giving the error. Usually though, the screen output should give a strong hint of which one it is.
It is possible that you could have multiple parse errors. If so, after solving each one you will have to come back and look at the new error message.
Rating:
3/5 based on 2 votes. The median rating is 5.
Submitted: 10/06/03 (Edited 08/17/05)
Description: What to do if you get something similar to "Parse error: parse error in /home/yourusername/public_html/links/commonfuncs.php(502) : eval()'d code on line 138"
Views:
1438 views. Averaging 1 per day.
In the most recent 30 day period, there've been 2 views.

Print
E-Mail