1 Attachment(s)
I am getting an error I have no idea about
Ok, I have a script and I am getting the error "Fatal error: Call to a member function on a non-object in /home/kevinmc7882/www/photo_album/test.php on line 279". I have no idea wbout this becuase its on the line "$d->close();" and does not show any of the information below it. If I comment the line out it shows all the information but there is a delay and a big gap at this spot.
I have posted the file, any help would be great and the sooner the better, I am racking my brain to no avail. The file is an FRM but rename to PHP, I cant attach PHP files to the post for somereason.
Re: I am getting an error I have no idea about
PHP Code:
}else
$filename = $subcatagory . "/Explain.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
echo "$contents</td></tr></table>";
}
Sometimes you get an error message for something that isn't even causing the problem. I believe in this case your missing the opening { for the else statement. :)
1 Attachment(s)
Re: I am getting an error I have no idea about
Ok, I fixed that issue and made some changes to my program and all started to work fine. I am getting this exact error "Fatal error: Call to a member function on a non-object in /home/kevinmc7882/www/photo_album/test.php on line 413".
Now heres the thing. I never see it and the whole page shows unless I have the image viewing in the same window and not a popup. So i think there is an issue in the code where it starts like,
"if ($viewtype == "Window") {
$imagename = $subcatagory . "/" . $folder . "/" . $page . "/" . $picturename;
$exif = exif_read_data($imagename, 0, true);
$filename = $exif['FILE']['FileName'];"
I have posted the new code here, like before, rename the frm to php since php files cant be uploaded.