Log in

View Full Version : urgent help with php error


GTX2
01-08-2009, 11:57 AM
Hello,

I need some help here.
when some user tries to change their email address in usercp, there are some errors appearing:


Parse error: syntax error, unexpected ',', expecting ']' in /home/b0x/public_html/profile.php(349) : eval()'d code on line 1


and


"Fatal error: Call to a member
function query_first() on a non-object in
/home/b0x/public_html/register.php(2225) : eval()'d code on line 16".



I'm running my forum for a long time, and only today this was reported to me.
Is there any help you can give me to fix this? There should be something i put for mistake like a "," or something similar i can't find.

Thanks

Lynne
01-08-2009, 02:00 PM
What is on line 349 of your profile.php file? And what is on line 2225 of your register.php file? My guess is they are hooks and so this error is being caused by a modification. You can try disabling your mods and see if you still have this error.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

GTX2
01-08-2009, 03:29 PM
adding that line to the config.php file and disabling all hacks didn't solve the problem.



My register.php line 2225 is:


($hook = vBulletinHook::fetch_hook('register_activate_proce ss')) ? eval($hook) : false;



and my profile.php line 349 has got:


eval(print_standard_redirect('redirect_updatethank s_newemail', true, true));


thanks for helping

Lynne
01-08-2009, 04:09 PM
Sometimes in order to disable a mod, you also have to remove the files that come with the mod. I'd look for any modification you have installed that uses the register_activate_process hook location and read the install/uninstall instructions and completely uninstall it and see if that fixes things.