For a while, I keep getting errors shown below, when I go to the user registration page:

warning: __clone method called on non-object in /home/xprt007/public_html/drupal5/includes/common.inc on line 1375. 
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2438. 
warning: uasort() [function.uasort]: The argument should be an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2441. 

and this below after daring to submit a user registration:

warning: __clone method called on non-object in /home/xprt007/public_html/drupal5/includes/common.inc on line 1375. 
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2438. 
warning: uasort() [function.uasort]: The argument should be an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2441. 
warning: __clone method called on non-object in /home/xprt007/public_html/drupal5/includes/common.inc on line 1375. 
warning: __clone method called on non-object in /home/xprt007/public_html/drupal5/includes/common.inc on line 1375. 
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2438. 
warning: uasort() [function.uasort]: The argument should be an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2441. 

When I tried to login the registered user; I get this:

warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2418.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2418.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2418.
warning: usort() [function.usort]: The argument should be an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2422.
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2438.
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2438.
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2438.
warning: uasort() [function.uasort]: The argument should be an array in /home/xprt007/public_html/drupal5/modules/user/user.module on line 2441.

What on earth could be causing it & how do I get rid of it?

Comments

he_who_shall_not_be_named’s picture

Probably you have an user-related module installed which doesn't work well. Check your non-core modules and see which one uses the hook_user().

lionheart8’s picture

I'm using a number of modules which are "obviously" (to a layman) user-related, like userpoints, user-registration notification, etc, but even after disabling all, the problem remained until I decided to systematically disable almost all, blocks of them at a time. I found it was the "reports.module" responsible. After disabling it, the "user.module" related errors stopped coming BUT I still have this remaining when on the user registration page:

warning: __clone method called on non-object in /home/xprt007/public_html/drupal5/includes/common.inc on line 1375.

When I registered a new user, I had 3 lines of it... appearing on the registration confirmation page.

I wonder what could help to get read of it. :(

pushkar’s picture

I had the same error :

    * warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /opt/apps/www/vedalogy.com/modules/user/user.module on line 2438.
    * warning: uasort() [function.uasort]: The argument should be an array in /opt/apps/www/vedalogy.com/modules/user/user.module on line 2441.

and I tried some combinations - disabled the reports module and the error went away! try disabling any new modules you have recently installed and it might solve the issue.

hatsch’s picture

hi there,
i have the same error when i want to register a new user on both of this pages:
/admin/user/user/create
/user/register

the error is:

warning: __clone method called on non-object in /var/www/localhost/htdocs/includes/common.inc on line 1375.

i am using PHP Version 5.1.6-pl6-gentoo with Hardening-Patch 0.4.15

ansonwong’s picture

Hi,

I encounter the same issue here with the latest gallery2 module.. once i disabled that module, the error goes away...

lionheart8’s picture

Yes I can confirm the error went away after I also disabled the gallery module after reading your comment.
So it definitely has something to do with it. :(

andyscotuk’s picture

I got the same error and disabling the gallery module sorted it for me. Thanks for posting the solution, there are so many places to look for the source of the problem.!