Layout Builder shows Warning: fopen ():...

  • remdesign
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 7 months ago #29555 by remdesign
I installed the latest version of sparky-0.98b, but Layout Builder shows next warnings:

Warning: fopen (): Filename cannot be empty in / home/u179623035/public_html/templates/sparky_framework/elements/tadmin.php on line 74 Warning: fread () expects parameter 1 to be resource, boolean given in / home/u179623035 / public_html / templates / sparky_framework / elements / tadmin.php on line 75 Warning: fclose () expects parameter 1 to be resource, boolean given in / home/u179623035/public_html/templates/sparky_framework/elements/tadmin.php on line 76

In the previous version it was not!
What to do?

Please Log in to join the conversation.

More
11 years 7 months ago #29559 by ivan.milic
Open that file and go to that place ~line 74, you will see:
Code:
for( $loop = 0 ; $loop < count($help_files); $loop ++) { $hlpName = basename(basename($help_files[$loop],'.htm'),'.html'); $fh = fopen($help_files[$loop], 'r'); $hlpContent = fread($fh, filesize($help_files[$loop])); fclose($fh);

change it to :
Code:
for( $loop = 0 ; $loop < count($help_files); $loop ++) { $hlpName = basename(basename($help_files[$loop],'.htm'),'.html'); if(!is_readable ($hlpName)) continue; $fh = fopen($help_files[$loop], 'r'); $hlpContent = fread($fh, filesize($help_files[$loop])); fclose($fh);
The following user(s) said Thank You: remdesign

Please Log in to join the conversation.

Time to create page: 0.132 seconds
Powered by Kunena Forum