4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Vincent on May 03, 2005, 09:04:53 PM

Title: template.php(130) : eval()
Post by: Vincent 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
Title: Re: template.php(130) : eval()
Post by: Vincent 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
Title: Re: template.php(130) : eval()
Post by: V@no 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.
Title: Re: template.php(130) : eval()
Post by: Chris 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
Title: Re: template.php(130) : eval()
Post by: Vincent 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
Title: Re: template.php(130) : eval()
Post by: Chris 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.
Title: Re: template.php(130) : eval()
Post by: V@no 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
Title: Re: template.php(130) : eval()
Post by: Vincent 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