PDA

View Full Version : Registration error


Hawk7173
05-23-2012, 11:48 PM
I received a e-mail from someone that just now registered on my forum and they stated that they received the following error

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/register.php(338) : eval()'d code on line 39

vBulletin Message
Unable to add cookies, header already sent.
File: /home/mraforum/public_html/upload/includes/class_core.php
Line: 5417

This would be the confirmation that registration is complete. Any thoughts onn this?

Thanks in advabce.

kh99
05-23-2012, 11:57 PM
The problem is in a mod, one that uses hook register_addmember_process.

Hawk7173
05-24-2012, 12:10 AM
I've disabled all mods associated with registration and still get the same error when testing registration.

Any ideas on what I should do next?

kh99
05-24-2012, 12:13 AM
Hmm...maybe check the plugin manager for a plugin that's not part of a mod?

As a test you can temporarily disable all plugins by editing your config.php file and adding:

define('DISABLE_HOOKS', true);


at the top just under the <?php line. If the problem goes away then it's caused by a plugin.

Hawk7173
05-24-2012, 12:32 AM
after doing that, it does appear to be one of the mods that is causing the error. Will troublshoot further by adding back one mod at a time.

Thanks for your help. It is much appreciated.

--------------- Added 1337826525 at 1337826525 ---------------

Found the mod.... now to see if there is an updated version.

Thanks again!