PDA

View Full Version : Shop Appearing As Fatal Error


Hwona
09-09-2013, 07:19 AM
Hello everyone! I have a bit of a problem again...
When I view one of the shops, this pops up:
Fatal error: Call to a member function display() on a non-object in /home/wallie12/public_html/shop.php on line 46

I haven't had this issue with any of the other shops. All the adoptable tables for the only adopt in the shop seemed to be fine, as well as the shop tables...

Hall of Famer
09-09-2013, 07:39 AM
Seems that the shoplist fails to create instance of shop object for you. Check your shoptype for this particular shop, and see if its either 'itemshop' or 'adoptshop'. If not, change the shoptype.

Hwona
09-09-2013, 07:57 AM
Funny... it says it's adoptshop. O.o
I just had another shop do the same exact thing, but I realized that I mispelled the shop name in the link and fixed it. This shop seems to be a bit different though...

IntoRain
09-09-2013, 11:14 AM
The problem is when creating a shoplist which doesn't take any shop, it just checks for whatever shops you have (adoptshop or itemshop) and makes a list with them. But my files are pretty modified, what link are you talking about? x.x

Hwona
09-09-2013, 04:34 PM
Um, here's the link and table:
Link:
http://caterpillarcave.x10.mx/shop/browse/The%20Holiday/Event%20Caterpillar%20Shop

Table:
caterpillar
The Holiday/Event Caterpillar Shop
adoptshop
Buy special holiday and event caterpillars here.
http://caterpillarcave.x10.mx/picuploads/png/21f20...
invisible
0

IntoRain
09-09-2013, 04:40 PM
I believe it's because of the name too. The Holiday/Event Caterpillar Shop might not be a valid name for a link because it assumes the thing before / is a page, which is not

Hwona
09-09-2013, 06:03 PM
Ah! Thanks everyone! It seems to be working now - I just changed the shop name to what it originally was. :3