4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 21, 2018, 10:09:14 PM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Error Messages / Fehlermeldungen
| | |-+  Parse error: syntax error, unexpected $end in includes/template.php(101)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Parse error: syntax error, unexpected $end in includes/template.php(101)  (Read 47060 times)
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« on: October 18, 2008, 10:14:27 AM »

If you see error message similar to:
Quote  [Expand]
Parse error: syntax error, unexpected $end in includes/template.php(101) : eval()'d code on line 160
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:
1
2
3
4
5
{if blahexample}
....some html stuff....
{endif blahexample}
...some more html stuff...
{endif blahexample}

Or change template.
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
yesme
Jr. Member
**
Offline Offline

Posts: 61

Thank You
-Given: 0
-Receive: 0

Yes for 4images!


View Profile
« Reply #1 on: February 14, 2009, 10:59:14 AM »

Thank you V@no. You have released my tension just now. Smile
Logged

Love 4images! @--^-----
d1eter
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 12
-Receive: 0


View Profile
« Reply #2 on: August 13, 2009, 04:24:35 PM »

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!
Logged
V@nо
Addicted member
******
Offline Offline

Posts: 1223

Thank You
-Given: 11
-Receive: 17


View Profile
« Reply #3 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
Logged

Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.
d1eter
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 12
-Receive: 0


View Profile
« Reply #4 on: August 14, 2009, 02:41:46 AM »

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

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!

« Last Edit: August 14, 2009, 06:22:04 AM by d1eter » Logged
TMO
Newbie
*
Offline Offline

Posts: 11

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #5 on: March 13, 2010, 01:01:06 PM »

hi,
 for some reason i get an error message, trying to plugin a picture into a new category.

Fatal error: Cannot break/continue 1 level in /home/www/web4161/html/swb9001/db/includes/template.php(101) : eval()'d code on line 97

if i delete this image, category page work well again without any picture of course.

I try to solve this problem looking for Tags Errors, but without success, may anyone help me?

Thanks
TMO
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.047 seconds with 19 queries.