Help - unusual error Help - unusual error
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Help - unusual error

Started by James Glasheen, June 08, 2005, 04:34:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

James Glasheen

On my site 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

Nibbler

It means your template.html file is missing or cannot be read. Check it is OK. What theme are you using ?

James Glasheen

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

Nibbler

Change the line to

$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.

James Glasheen

Thanks Nibbler, the file was corrupt - I've deleted it and up-loaded it again, cheers JG