forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: James Glasheen on June 08, 2005, 04:34:06 pm

Title: Help - unusual error
Post by: James Glasheen on June 08, 2005, 04:34:06 pm
On my site  (http://www.southeastart.co.uk) I have this new error:

Warning: fread(): Length parameter must be greater than 0. in /home/fhlinux198/s/southeastart.co.uk/user/htdocs/include/functions.inc.php on line 376

Can you advise - I've made no changes to the include file specified only to the homepage: template.html which was to add some links?  I can see that on line 376 it's creating this variable but have no idea what it means or how to fix it,

        $template = fread(fopen($template_file, 'r'), filesize($template_file));

cheers JG
Title: Re: Help - unusual error
Post by: Nibbler on June 08, 2005, 04:48:27 pm
It means your template.html file is missing or cannot be read. Check it is OK. What theme are you using ?
Title: Re: Help - unusual error
Post by: James Glasheen on June 08, 2005, 05:10:45 pm
It's a customised Water drop theme.

What could have changed in the template to do this?

I've uploaded it again and there's still no change.

JG
Title: Re: Help - unusual error
Post by: Nibbler on June 08, 2005, 05:37:42 pm
Change the line to

Code: [Select]
$template = file_get_contents($template_file);
and see if that works any better.

It should be here : http://www.southeastart.co.uk/themes/water_drop/template.html then ? but all I can see is blank page.
Title: Re: Help - unusual error
Post by: James Glasheen on June 11, 2005, 02:24:32 pm
Thanks Nibbler, the file was corrupt - I've deleted it and up-loaded it again, cheers JG