Author Topic: template.php(130) : eval()  (Read 5145 times)

0 Members and 1 Guest are viewing this topic.

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
template.php(130) : eval()
« on: May 03, 2005, 09:04:53 PM »
Hello
there is a lot written about this problem!
but why is not allways a error coming!

how could i find out which request makes this error - because add the end of this error i got a line nummer but far further then the tamplate.php has line!

thanks for feedback

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: template.php(130) : eval()
« Reply #1 on: May 03, 2005, 11:23:27 PM »
it is fun
my homepage work - but as soon as i wish to login i get

Code: [Select]
Parse error: parse error, unexpected '<' in D:\web-data\foto.wombat.ch\http\includes\template.php(133) : eval()'d code on line 521
but i did not touch the template.php file - so which file cause this error?

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: template.php(130) : eval()
« Reply #2 on: May 04, 2005, 01:37:03 AM »
there is something in the template or in any text on your gallery (image name, description, keywords, etc) has something that produces that error...
retrack what was added last, before this start happening.
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)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: template.php(130) : eval()
« Reply #3 on: May 04, 2005, 03:36:08 AM »
Specifically it's in one of your login or member templates by the sounds of it since you said this happens when you go to login

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: template.php(130) : eval()
« Reply #4 on: May 04, 2005, 07:26:54 AM »
thanks for the feedback
i happens i think after i enter the name and PWD then he redirect to index.php then it kills!
but calling normaly the index.php nothing happen!

sincerly
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: template.php(130) : eval()
« Reply #5 on: May 04, 2005, 02:23:56 PM »
Then start by checking the HTML inside user_logininfo.html and the contents of any included file like a PHP menu.  You just have to track down the source by working backwards.  Because the error says
Code: [Select]
unexpected '<' I would think there is some unmatched closing > in one of your HTML tags but this is only a starting point.  Good luck

EDIT:

In fact when I look at your templates/4dark/user_logininfo.html I see quite a bit of invalid HTML.
Code: [Select]
<table width="130" border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="Center">{lang_loggedin_msg}
  <tr>
    <td width="100%" align="center" height="20" background="templates/4dark/bbutton.gif" ><div align="left"><a style="text-decoration: none" href="lightbox.php">&gt;
        Lightbox/Album </a></div></td>
  </tr>
  <tr>
    <td width="100%" align="center" height="20" background="templates/4dark/bbutton.gif" ><div align="left"><a style="text-decoration: none" href="{url_control_panel}">&gt;
        {lang_control_panel} </a></div></td>
  </tr>

  <tr>
    <td width="100%" align="center" height="20" background="templates/4dark/bbutton.gif" ><div align="left"><a style="text-decoration: none"  href="{url_logout}">&gt;
        {lang_logout} </a></div></td>
  </tr></tr>
</table>
<HR>
<?php include("4darkm.php"); ?>
You haven't closed the table cell for {lang_loggedin_msg}...

Using Dreamweaver's "Clean Up HTML..." command to apply indentation formatting, etc. it becomes more clear:
Code: [Select]
<table width="130" border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <td valign="top" align="Center">{lang_loggedin_msg}
  <tr>
    <td width="100%" align="center" height="20" background="templates/4dark/bbutton.gif" ><div align="left"><a style="text-decoration: none" href="lightbox.php">&gt; Lightbox/Album </a></div></td>
  </tr>
  <tr>
    <td width="100%" align="center" height="20" background="templates/4dark/bbutton.gif" ><div align="left"><a style="text-decoration: none" href="{url_control_panel}">&gt; {lang_control_panel} </a></div></td>
  </tr>
  <tr>
    <td width="100%" align="center" height="20" background="templates/4dark/bbutton.gif" ><div align="left"><a style="text-decoration: none"  href="{url_logout}">&gt; {lang_logout} </a></div></td>
  </tr>
  </tr>
</table>
<HR>
<?php include("4darkm.php"); ?>
You've also got a </tr> that is out of place.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: template.php(130) : eval()
« Reply #6 on: May 04, 2005, 02:59:13 PM »
so, even though u'r getting that error, do u actualy getting logged in or not?

also, maybe u should check your 4darkm.php file
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)

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: template.php(130) : eval()
« Reply #7 on: May 04, 2005, 03:30:22 PM »
@chris
thanks a lot i know what to do this evening
are you reading the text or you have a programm showing you the problems?

V@no
no i can't log in trought the web - or not direct - but i can login foto-kocher.com/admin then search for a picture the click the link of this picture then i am in without crash!  :P


thanks
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods