Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Help - unusual error  (Read 2440 times)

0 Members and 1 Guest are viewing this topic.

James Glasheen

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 23
    • South East Art
Help - unusual error
« on: June 08, 2005, 04:34:06 pm »

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
Logged

Nibbler

  • Guest
Re: Help - unusual error
« Reply #1 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 ?
Logged

James Glasheen

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 23
    • South East Art
Re: Help - unusual error
« Reply #2 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
Logged

Nibbler

  • Guest
Re: Help - unusual error
« Reply #3 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.
Logged

James Glasheen

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 23
    • South East Art
Re: Help - unusual error
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.