Fatal error when trying to add a profile
harrisben - October 17, 2008 - 05:55
| Project: | Signwriter |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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.

#1
Short term fix
If you comment line 444 out it works.
e.g.
//$preview_profile = clone $p;
Regards
Geoff
#2
i think replacing that line with
<?phpif (is_object($p)) {
$preview_profile = clone $p;
}
else {
$preview_profile = new stdClass();
}
?>
#3
After testing the above it seems to work. Thanks!
#4
cool.
#5
This has now been fixed in the 6.x-1.1 release.
#6
Automatically closed -- issue fixed for two weeks with no activity.