Page 1 of 1

errors

Posted: Thu Sep 07, 2006 1:24 pm
by LaurensK
While adding content and refreshing pages to see if the content was flawless (typos etc) I suddenly saw this on my screen instead of my site.
Warning: fread(): Length parameter must be greater than 0. in /mounted-storage/home3/sub003/sc10758/hotrains/lib/classes/class.content.inc.php on line 2076

Fatal error: Call to a member function on a non-object in /mounted-storage/home3/sub003/sc10758/hotrains/plugins/function.cms_selflink.php on line 123
I had just added a content page with one line of text. Adding more lines didn't help, maybe you can? ;D

CMSMS version 0.13
MYSQL (4.0.24-standard)
4.3.11 (apache)

Re: errors

Posted: Thu Sep 07, 2006 10:51 pm
by moorezilla
I got a similar error today:

Fatal error: Call to a member function Active() on a non-object in /home/apollopr/public_html/skoogle/cpsscience/cms/plugins/function.cms_selflink.php on line 262

while trying to edit a page. I haven't figured it out yet.

Re: errors

Posted: Wed Sep 20, 2006 7:51 pm
by flashhq
Me too!

Fixed by editing /plugins/function.cms_selflink.php

On line 260 find:

Code: Select all

if( isset($content) )
Change to:

Code: Select all

if( isset($content) && $content != NULL )
VOILA! Good to go.

FYI this is on cmsmadesimple-1.0.1.tar.gz install.

Re: errors

Posted: Wed Sep 20, 2006 8:28 pm
by Dee
flashhq wrote: Fixed by editing /plugins/function.cms_selflink.php
On line 260 find:

Code: Select all

if( isset($content) )
Change to:

Code: Select all

if( isset($content) && $content != NULL )
Added this to SVN so it will be in cmsmadesimple-1.0.2:
http://viewsvn.cmsmadesimple.org/viewsv ... lflink.php