PDA


View Full Version : vBadvanced Error Replacements


Ian
07-16-2005, 03:30 PM
vb3.5 version.

This causes this error when active.

Parse error: parse error, unexpected '=' in /home/total-em/public_html/forum/includes/functions.php(2196) : eval()'d code on line 1

It happens when you search for new posts (only checked when there are no post) and when you logout as far as I can tell.

Disabling the plugin stops the error.

Brian
07-16-2005, 08:33 PM
Make sure this is the PHP code you have for that plugin.
$errormessage = str_replace(
array(
'"login.php',
'"profile.php'
),
array(
'"' . $vbulletin->options['bburl'] . '/login.php',
'"' . $vbulletin->options['bburl'] . '/profile.php'
),
$errormessage
);

$forumjump = str_replace('"forumdisplay.php', '"' . $vbulletin->options['bburl'] . '/forumdisplay.php', $forumjump);

Ian
07-16-2005, 08:52 PM
That fixed it. Thanks.

The plugin only had from the = sign on both parts.

wilky49
08-15-2005, 03:55 PM
Thanks for the fix, i had the same problem where the plugin only had the = ... instead of the $error_message


-Wilky49