Hi there!
I´m getting this nasty error when I try to install this module (I´ve uploaded all files and I´m trying to activate it for the first time actually):

Fatal error: Cannot use object of type stdClass as array in .../sites/all/modules/complete/complete.install on line 111

When I hit save it appears that line with a blank page.
If I reload the page, the normal module´s list appears, the complete module isn´t activated, but this warning appears:

user warning: Table 'complete' already exists query: CREATE TABLE complete ( `nid` INT unsigned NOT NULL DEFAULT 0, `rule` VARCHAR(255) NOT NULL DEFAULT '', `runs` INT unsigned NOT NULL DEFAULT 0, `total_runs` INT unsigned NOT NULL DEFAULT 0, `completed` INT unsigned NOT NULL DEFAULT 0, `remaining` INT unsigned NOT NULL DEFAULT 0, `path` VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (nid) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in .../includes/database.inc on line 529.

I´m setting this as critical because it won´t let me install this module.

Any ideas? (I´ve double checked the correct uploads of all files)

CommentFileSizeAuthor
#2 complete_install_fix.patch602 bytestema

Comments

tema’s picture

Status: Needs review » Active

Looks like a typo..

complete.install, line 111

$node_type['type'] should be $node_type->type

tema’s picture

Status: Active » Needs review
StatusFileSize
new602 bytes

Well.. There's smallest patch I've ever seen

Rosamunda’s picture

Status: Active » Reviewed & tested by the community

Yup, it seems that it worked :)
Thanks!

pvhee’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.