errors

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.
Locked
LaurensK

errors

Post 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)
Last edited by LaurensK on Thu Sep 07, 2006 1:28 pm, edited 1 time in total.
moorezilla

Re: errors

Post 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.
flashhq

Re: errors

Post 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.
Last edited by flashhq on Wed Sep 20, 2006 8:01 pm, edited 1 time in total.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: errors

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

Return to “CMSMS Core”