Webmastersite.net
Register Log In

parse error in decodeit
commonfuncs.php(336) : eval()'d code on line 545

Comments on parse error in decodeit

jwalling
Beginner

Usergroup: Customer
Joined: Jul 21, 2003

Total Topics: 2
Total Comments: 3
Posted Jan 13, 2005 - 7:03 PM:

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?

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 14, 2005 - 3:57 PM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.