Some of my images and thumbnails where missing so I went to regenerate everything. When I did, it go to the image attachments and then I got this error:
Fatal error: Call to a member function on a non-object in /home/vhosts/wwwroot/showyour.com/photoswap/classes/attachment.php on line 216
How can I track this down? What should I look for?
Not sure, it just started happening, I don't know if someone tried to run something they shouldn't have or maybe a corrupt image file. I have been going through and removing images without thumbnails or images that have a thumbnail and not corrisponding image. Wish I could just find the bad image. I'll try to move the code around and see if I can get through the regeneration.
Start attachments at 400 then I get this error now. Is it looking at the data base to get the attachment list? Maybe I can find it there? Only thing I remember changing it tring to get the watermark to work I changed from GD to ImageMagik and uploaded a watermark. Maybe I should delete the watermark. I used a PNG file, it shows up in the settings. Maybe it's corrupting the images? But some of the new images are showing up and some not?
I didn't change the line I just moved the } to below the code:
Fatal error: Call to a member function on a non-object in /home/vhosts/wwwroot/showyour.com/photoswap/classes/attachment.php on line 216
Well this will make no sence and all. I added a line of code at line 216 print($this->filename."<br>"); just so I could see where it was crapping out at. It never blew up after that.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Error Fatal error: Call to a member func
Experienced
Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Comments: 55
Some of my images and thumbnails where missing so I went to regenerate everything. When I did, it go to the image attachments and then I got this error:
Fatal error: Call to a member function on a non-object in /home/vhosts/wwwroot/showyour.com/photoswap/classes/attachment.php on line 216
How can I track this down? What should I look for?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It says the image isn't in a category. I can't reproduce that, but perhaps moving up a line to above the would help.
What sort of unusual things have you done with images that could cause their categories to not register?
Experienced
Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Comments: 55
Not sure, it just started happening, I don't know if someone tried to run something they shouldn't have or maybe a corrupt image file. I have been going through and removing images without thumbnails or images that have a thumbnail and not corrisponding image. Wish I could just find the bad image. I'll try to move the code around and see if I can get through the regeneration.
Experienced
Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Comments: 55
Start attachments at 400 then I get this error now. Is it looking at the data base to get the attachment list? Maybe I can find it there? Only thing I remember changing it tring to get the watermark to work I changed from GD to ImageMagik and uploaded a watermark. Maybe I should delete the watermark. I used a PNG file, it shows up in the settings. Maybe it's corrupting the images? But some of the new images are showing up and some not?
I didn't change the line I just moved the } to below the code:
Fatal error: Call to a member function on a non-object in /home/vhosts/wwwroot/showyour.com/photoswap/classes/attachment.php on line 216
Experienced
Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Comments: 55
Well this will make no sence and all. I added a line of code at line 216 print($this->filename."<br>"); just so I could see where it was crapping out at. It never blew up after that.