Cannot delete stylesheet association in 1.0.4?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
brippon
Forum Members
Forum Members
Posts: 18
Joined: Wed Feb 07, 2007 10:28 pm

Cannot delete stylesheet association in 1.0.4?

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Cannot delete stylesheet association in 1.0.4?

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Cannot delete stylesheet association in 1.0.4?

Post 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
Post Reply

Return to “CMSMS Core”