Page 1 of 1
Undefined property: stdClass error
Posted: Sat Jan 25, 2014 8:10 pm
by roboman
When trying to access crafting, or purchasing an item, the following error appears:
Error: Undefined property: stdClass::$id
Error in "/home/anonline/public_html/libs/items.php"
Line 89
Error in /home/anonline/public_html/libs/items.php
Line 171
Error in /home/anonline/public_html/modules/mines/content.php
Line 89
Error in /home/anonline/public_html/libs/common.php
Line 554
Error in /home/anonline/public_html/index.php
Line 328
Any idea how to fix? I'd prefer to not reinstall the entire game after spending so much time working on it..
Thanks!!

Re: ERRORS! error error error!
Posted: Sat Jan 25, 2014 8:36 pm
by Kesstryl
Did you make any changes to the core game in those files? From what I understand you are only supposed to code in the modules as the core engine is to be modified by modules and not by direct changing of the code. Not that you can't change the core engine, but you risk breaking it if you do.
Re: ERRORS! error error error!
Posted: Sat Jan 25, 2014 8:47 pm
by roboman
Neither the engine nor any modules have been edited.
Re: ERRORS! error error error!
Posted: Sat Jan 25, 2014 10:10 pm
by KyleMassacre
I have come across some undefined errors from the files not having the correct permissions
Re: ERRORS! error error error!
Posted: Sun Jan 26, 2014 5:18 am
by a_bertrand
In the mines you are trying to add some items, maybe you miss spelled the item name or gave an ID which doesn't exist.
Re: ERRORS! error error error!
Posted: Sun Jan 26, 2014 5:34 am
by roboman
Thanks for the replies!
I re-installed the engine earlier, and things were going smooth until I ran into this:
Error: Undefined property: stdClass::$name
Error in /home/anonline/public_html/modules/inventory/content.php
Line 139
Error in /home/anonline/public_html/libs/common.php
Line 554
Error in /home/anonline/public_html/index.php
Line 328
Trying to access my inventory.
Re: ERRORS! error error error!
Posted: Sun Jan 26, 2014 6:53 am
by a_bertrand
As said, you have some issues with the content you created. Could be an item which has not be defined correctly, or a command in the mines which give a wrong item. This is not a bug of the engine but instead a bug of your content.
Re: ERRORS! error error error!
Posted: Sun Jan 26, 2014 9:42 pm
by roboman
I have two questions:
- Do you require us to keep copyright (your name, etc)
- How do I remove the verify button on my public sidemenu?
Re: Undefined property: stdClass error
Posted: Mon Jan 27, 2014 5:40 am
by a_bertrand
You can remove the copyright and the verify button. The verify button is on the public template.