Undefined property: stdClass error

General Chat, Comments
Post Reply
roboman
Posts: 4
Joined: Sat Jan 25, 2014 8:08 pm

Undefined property: stdClass error

Post 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!! :D
Last edited by roboman on Sun Jan 26, 2014 9:42 pm, edited 1 time in total.
User avatar
Kesstryl
Posts: 202
Joined: Sat Sep 22, 2012 5:27 am

Re: ERRORS! error error error!

Post 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.
roboman
Posts: 4
Joined: Sat Jan 25, 2014 8:08 pm

Re: ERRORS! error error error!

Post by roboman »

Neither the engine nor any modules have been edited.
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: ERRORS! error error error!

Post by KyleMassacre »

I have come across some undefined errors from the files not having the correct permissions
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: ERRORS! error error error!

Post 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.
Creator of Dot World Maker
Mad programmer and annoying composer
roboman
Posts: 4
Joined: Sat Jan 25, 2014 8:08 pm

Re: ERRORS! error error error!

Post 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.
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: ERRORS! error error error!

Post 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.
Creator of Dot World Maker
Mad programmer and annoying composer
roboman
Posts: 4
Joined: Sat Jan 25, 2014 8:08 pm

Re: ERRORS! error error error!

Post 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?
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: Undefined property: stdClass error

Post by a_bertrand »

You can remove the copyright and the verify button. The verify button is on the public template.
Creator of Dot World Maker
Mad programmer and annoying composer
Post Reply

Return to “General”