- Posts: 8
- Thank you received: 0
Layout Builder shows Warning: fopen ():...
-
remdesign
Inactive member - Topic Author
- New Member
Less
More
11 years 7 months ago #29555
by remdesign
Layout Builder shows Warning: fopen ():... was created 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?
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 7 months ago #29559
by ivan.milic
Replied by ivan.milic on topic Layout Builder shows Warning: fopen ():...
Open that file and go to that place ~line 74, you will see:
change it to :
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