I get this error when I try to create a node with signit:

Fatal error: Cannot use object of type stdClass as array in (...)/sites/all/modules/signit/signit.module on line 1880

I use php 5.2.1 & drupal 5.2

/petter

CommentFileSizeAuthor
#5 signit.txt63.76 KBpjo

Comments

pjo’s picture

please help!
/petter

arthurf’s picture

Thank you for idenentifying this issue, there is now a fix in cvs for this.

pjo’s picture

Sorry, tried the new cvs code, but still get exactly the same error message.

arthurf’s picture

Can you give me what version number is at the top of the signit module? I did fix this today (well it worked for me locally.... ) so I'd like to be sure of what you're using.

thanks!

pjo’s picture

StatusFileSize
new63.76 KB

Thanks for your help,
here is the first line of the signit module.

// $Id: signit.module,v 1.5.2.13 2007/10/11 22:22:36 arthuregg Exp $

I attach the whole file, with the changes from the cvs.

pjo’s picture

I tried to reinstall it with the new // $Id: signit.module,v 1.5.2.16 2007/10/16 16:19:34 arthuregg Exp $
files, still no luck...

pjo’s picture

I changed line 1878 from
$output = "

". check_markup($signit['message']) ."

";
to
$output = "

". check_markup($signit->message) ."

";
and it seems to work (but i'm no programmer and got no idea if that's the right thing to do..)
don't get the error messages any more, and the signatures end up in the database.
But it doesn't check for duplicate signatures now, isn't it supposed to?

pjo’s picture

or no, it seems to work now!

ahkiam’s picture

Status: Active » Fixed

This change appears to be in the latest .dev version.

Status: Fixed » Closed (fixed)

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