4images Help / Hilfe > Error Messages / Fehlermeldungen

Parse error: syntax error, unexpected $end in includes/template.php(101)

(1/2) > >>

V@no:
If you see error message similar to:
--- Quote ---Parse error: syntax error, unexpected $end in includes/template.php(101) : eval()'d code on line 160
--- End quote ---
This means one or more template files have not matching number of {if ..} and {endif ..} or {ifno ..} and {endifno ..} template tags ( ".." is the name of a tag, i.e. {if blahexample} and {endif blahexample})
Such error didn't show on 4images v1.7, so if your template worked on v1.7 and after 4images upgrade it shows this error, it means your template is not compatible with new 4images, read next how you can make your template compatible.

What you'll need to do is search in all .html template files for all {if ..} and {ifno ..} tags and make sure they have matching {endif ..} and {endifno ..} tags.
Also, the number of {if ..} and {ifno ..} must be equal to number of {endif ..} and {endifno ..} tags in each template file.

For example this is wrong, because it has only one {if ..} and two {endif ..} tags:

--- Code: ---{if blahexample}
....some html stuff....
{endif blahexample}
...some more html stuff...
{endif blahexample}
--- End code ---

Or change template.

yesme:
Thank you V@no. You have released my tension just now. :)

d1eter:
Hello..,
I have v1.7.6 website which has been running fine most of the time, I haven;t been visited the ACP for probably almost two months.

Now I have to change some Categories in the website so I visited the ACP.
it gives the error "Parse error: syntax error, unexpected $end in /home/a7746017/public_html/admin/admin_functions.php on line 64"

is it the same symptom as covered in this thread..?
how do I fix the error?

thank you very much for the help!

V@nо:
no, your error is different. something is wrong with your admin/admin_functions.php
try restore that file from backups

d1eter:

--- Quote from: V@nо on August 13, 2009, 10:17:40 PM ---no, your error is different. something is wrong with your admin/admin_functions.php
try restore that file from backups

--- End quote ---

thanks Vano..,
you're right.., I did try to restore but result still the same.
turns out.. my latest and before backup.., got corrupted somehow. the file got truncated.

I end up replacing the file with the original file from 1.7.6 package.

All is OK now.
Thank you for the hints!

Navigation

[0] Message Index

[#] Next page

Go to full version