Below is the error message when i enable role expire the very first time.

DatabaseSchemaObjectExistsException: Table <em class="placeholder">role_expire</em> already exists. in DatabaseSchema->createTable() (line 629 of/var/www/mydomain.com/public_html/includes/database/schema.inc).

After that i try to access my user notification and got error pop out. Forget to copy error message for other error message, after i have restored my database.

Comments

stewsnooze’s picture

Status: Active » Postponed (maintainer needs more info)

Was this site ever a d6 site that had role expire installed on it. It looks like you upgraded to d7 without role expire and then just turned it on but the d6 table still exists.

spacereactor’s picture

no, this is a new site, starting from drupal 7 few weeks ago, i already have other modules like og, panel ctools, notifications and etc. Can't remember if any of the modules require a role expire field.

spacereactor’s picture

Forget inform you my server spec. Run on Mariadb 5.2.7, Nginx 1.04, php-fpm 5.3.5 and APC 3.1.9

I try to backup my database and try again.

stewsnooze’s picture

Status: Postponed (maintainer needs more info) » Needs review

HI,

I realised that the d6 install file is still in place. I've removed the schema install stuff. I've pushed a change into git. It should be available in the next dev release.

Please let me know if this fixes it for you by closing the issue?

Thanks
Stew

spacereactor’s picture

Status: Needs review » Postponed (maintainer needs more info)

there are some of the example of the error after i enable role expire.

The first is on top when i enable role expire.

Next i find at user notifications tab

Warning: array_merge(): Argument #1 is not an array in _form_set_class() (line 3988 of/var/www/mydomain.com/public_html/includes/form.inc).
Warning: array_merge(): Argument #1 is not an array in _form_set_class() (line 3988 of/var/www/mydomain.com/public_html/includes/form.inc).
Warning: array_merge(): Argument #1 is not an array in _form_set_class() (line 3988 of/var/www/mydomain.com/public_html/includes/form.inc).
Warning: array_merge(): Argument #2 is not an array in theme_checkboxes() (line 2974 of/var/www/mydomain.com/public_html/includes/form.inc).

Same error when i update another user account using user1 account.

Warning: array_merge(): Argument #1 is not an array in _form_set_class() (line 3988 of /var/www/mydomain.com/public_html/includes/form.inc).
Warning: array_merge(): Argument #1 is not an array in _form_set_class() (line 3988 of /var/www/mydomain.com/public_html/includes/form.inc).
Warning: array_merge(): Argument #1 is not an array in _form_set_class() (line 3988 of /var/www/mydomain.com/public_html/includes/form.inc).
Warning: array_merge(): Argument #2 is not an array in theme_checkboxes() (line 2974 of /var/www/mydomain.com/public_html/includes/form.inc).
stewsnooze’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I've raised the issue in #5 as #1211598: Form arrays not set properly