When clicking Add Profile, the following error occurs:

Fatal error: __clone method called on non-object in /XXX/sites/all/modules/signwriter/signwriter.module on line 444

I first encountered this with the 6.x-1.0 release and the 6.x-1.x-dev (15-Oct-08) also exhibits this problem. The module is non-functional because of this problem.

Comments

behindthepage’s picture

Short term fix
If you comment line 444 out it works.
e.g.
//$preview_profile = clone $p;

Regards
Geoff

eMPee584’s picture

Status: Active » Needs review

i think replacing that line with

   if (is_object($p)) {
    $preview_profile = clone $p;
  }
  else {
    $preview_profile = new stdClass();
  }

should be an appropiate fix.

harrisben’s picture

After testing the above it seems to work. Thanks!

eMPee584’s picture

Status: Needs review » Reviewed & tested by the community

cool.

Agileware’s picture

Status: Reviewed & tested by the community » Fixed

This has now been fixed in the 6.x-1.1 release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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