Help - unusual error Help - unusual error
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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