Parse error eval()'d code on line 3

Feed 13 posts, 4 voices

Avatar
6 posts

Hello,

I recently installed frog on my webspace and am putting togeather a new site. Worked fine for about a week of playing with it. Yesterday the only change I made was to open a few layouts and pages and changed a few divs so my pages validated. Also, last night media temple went down and was very spotty until today. Any websites on my webspace that used databases wouldn’t work and got an internal server error, but that is working again.

So this is the error I get. Everything loads fine on the page except for the content from the page file… so the layout and snippets load fine.

Parse error: syntax error, unexpected ‘?’ in /domains/mywebsite.com/html/mynewwebsite/frog/app/frontend/classes/Page.php(330) : eval()‘d code on line 3

I tried re-uploading the app folder… and no change. Any idea how I can fix this? I really appreciate it!

 
Avatar
1493 posts

It would help to know what is on line 3 of … the Homepage “Page”? It’s sidebar? Maybe both? Has something got garbled in the MT flakiness?

 
Avatar
6 posts

I am new to this stuff. Am I looking for line 3 of this page? /domains/mywebsite.com/html/mynewwebsite/frog/app/frontend/classes/Page.php

 
Avatar
1493 posts

No, of the actual edit area of your own page. That

eval()‘d code on line 3

bit is pointing to the problem line in your own “content”. (Hard to explain! Hope you understand!)

 
Avatar
6 posts

well line 3 is just the text describing the liscense… like 330 is this

eval('?>'.$snippet->content_html);
 
Avatar
6 posts

Gotit… I found it in line three of one of the snippets… but heres the thing… this code worked perfectly for days.. What could have caused it to not work?

<img id="slideImage" NAME="slideImage" src="http://www.mysite.com/mynewwebsite/workspace/img/<?php echo $this->slug; ?>_1.jpg" alt="<?php echo $this->slug; ?" />
 
Avatar
6 posts

if I take that out everything is fixed… but how to fix?>

 
Avatar
541 posts

like that:

<img id=“slideImage” NAME=“slideImage” src=“http://www.mysite.com/mynewwebsite/workspace/img/<?php echo $this->slug; ?>_1.jpg” alt=”<?php echo $this->slug; ?>” />

You just forgot the close the php tag correctly ?>

 
Avatar
6 posts

Oh man, that is super fucking embarrassing. I can’t believe I missed that.

Thanks!

 
Avatar
541 posts

hehe that’s ok this is why I work on the codepress plugin to get this nice little highlighting on backend edition :)

it will help to find those little error

 
Avatar
44 posts

Hello Dear,
my name is peace i saw your profile and i
found
pleasure
to write you as my my friend so that we can communicate to each
othere,please mail me through my email address
(peacelove_khalifa@yahoo.com )
that i will send you my pic for you to know who i am for the love and
pleasure i have develpoed in your lovely profile i awaits your lovely
reply
as soon as you get this mail.
peace
please please please contact this email directly
peacelove_khalifa@yahoo.com