I see this error in my errorlog PHP Parse error: parse error in /home/jwalling/public_html/wsnlinks_nz/commonfuncs.php(336) : eval()'d code on line 545
I haven't been able to catch the error by observing the debug messages.
The php code involved is function decodeit($item, $full = '') { if (is_numeric($item) || $item == '') { return $item; }
A parse error means that the page would die with a message indicating a parse error when viewed. So, you have to figure out what URL it is that somebody viewed for that. The evaled() bit means the parse error is in a template.
Then again, if it's not a recurring error then it could be something like somebody trying to view a page while you were in the process of uploading the file.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on parse error in decodeit
Beginner
Usergroup: Customer
Joined: Jul 21, 2003
Total Topics: 2
Total Comments: 3
ver 3.13
I see this error in my errorlog
PHP Parse error: parse error in /home/jwalling/public_html/wsnlinks_nz/commonfuncs.php(336) : eval()'d code on line 545
I haven't been able to catch the error by observing the debug messages.
The php code involved is
function decodeit($item, $full = '')
{
if (is_numeric($item) || $item == '') { return $item; }
$item = str_replace(';', ';', $item);
$item = str_replace('}', '}', $item);
$item = str_replace('{', '{', $item);
$item = str_replace('>', '>', $item);
$item = str_replace('<', '<', $item);
$item = str_replace('"', """, $item); <========= Line 545
$item = stripslashes($item);
if ($full != '') $item = str_replace("'", "'",$item);
$item = str_replace('"', '"', $item);
$item = str_replace("'", "'", $item);
return $item;
}
See the text link for a CLEAN copy of the PHP code above.
http://www.fulgeo.com/wsnlinks_nz/_archive/decodeit.txt
If I could trap the error with the $item value, I would have a better handle. How can I do that?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
A parse error means that the page would die with a message indicating a parse error when viewed. So, you have to figure out what URL it is that somebody viewed for that. The evaled() bit means the parse error is in a template.
Then again, if it's not a recurring error then it could be something like somebody trying to view a page while you were in the process of uploading the file.