Page 1 of 1

Cannot delete stylesheet association in 1.0.4?

Posted: Wed Feb 07, 2007 10:36 pm
by brippon
Using 1.0.4, admin>Layout>Stylesheets>Attach Stylesheet to Template>delete association ...

I get a completely blank page returned by
admin/deletetemplateassoc.php?id=43&template_id=15&type=template

I have on occasions seen it report an error at line 45 in deletetemplateassoc.php.

1.0.2 didn't exhibit this. I see that line 45 has changed in this version (or maybe at 1.0.3).

Can anyone advise if this is just me and I need to do a rebuild, or a genuine bug?

Cheers
Brian

Re: Cannot delete stylesheet association in 1.0.4?

Posted: Thu Feb 08, 2007 10:16 am
by Dee
Hmm, same thing overhere... looks like a genuine bug.
Notice: Object of class CmsObject to string conversion in /path/to/cmsms/admin/deletetemplateassoc.php on line 45

Notice: Undefined variable: Object in /path/to/cmsms/admin/deletetemplateassoc.php on line 45

Fatal error: Call to a member function GetDb() on a non-object in /path/to/cmsms/admin/deletetemplateassoc.php on line 45
Regards,
D

Re: Cannot delete stylesheet association in 1.0.4?

Posted: Thu Feb 08, 2007 8:11 pm
by Dee
In admin/deletetemplateassoc.php change line 45 from

Code: Select all

$db =& $$gCms->GetDb();
to

Code: Select all

$db =& $gCms->GetDb();
(Fixed in SVN)

Thanks for reporting,
Regards,
D