WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Error Fatal error: Call to a member func
Error Fatal error: Call to a member function on a

Version: 2.3.6
printPrint


Error Fatal error: Call to a member func
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 07/20/06 - 02:15 PM:
quote post
#1
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?

----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 07/23/06 - 06:35 AM:
quote post
#2
It says the image isn't in a category. I can't reproduce that, but perhaps moving
$path = $settings->uploadpath;
if ($switches['attachmentstree']) $path .= $thecat->staticpath();
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?

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 07/23/06 - 07:48 AM:
quote post
#3
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.

----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 07/23/06 - 08:01 AM:
quote post
#4
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

----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
eric0524
Experienced

Usergroup: Member
Joined: Jun 11, 2006
Total Topics: 15
Total Posts: 55
Posted 07/23/06 - 08:22 AM:
quote post
#5
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.

----------------------------
www.saltwatersportswear.com - the largest selection of t-shirts
www.showyour.com/photoswap
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.