Log in

View Full Version : Adopt Page Error for v.1.3.3


Hwona
03-23-2013, 08:30 PM
There's a little error on the adopt page, but everything else seems to be working just fine... was there supposed to be a functions_adopt folder or something? I don't have one..

Fatal error: Call to a member function count() on a non-object in /home/wallie12/public_html/classes/abstract/abstract_guicontainer.php on line 392

Hall of Famer
03-23-2013, 09:08 PM
Umm looks like you get the same error as iris. Did you create an adoptable already? Is it not available to adopt? If so, this may be the cause of the error.

Hwona
03-23-2013, 09:14 PM
Umm looks like you get the same error as iris. Did you create an adoptable already? Is it not available to adopt? If so, this may be the cause of the error.

Well, I created an adopt and it requires a promocode. EDIT: Oh! There has to be an available adopt! But unfortunately, I can't purge or retire that adopt. o.o

Hall of Famer
03-23-2013, 09:44 PM
I see, so this is the issue. Please post it in the bug tracker, I will find a way to change this fatal error to a standard message saying that no adoptable is currently available.

Hwona
03-23-2013, 09:54 PM
Yup! Wait, which bug do I post? The un-purgable adopt one, or the adopt page error? Will this error appear if there are adoptables for sale (but not free)?

Hall of Famer
03-23-2013, 10:47 PM
The guicontainer count() error one, yes this is a minor glitch. The error is not present when you have not even create a pet in ACP, it only affects sites that have pets in database but just nothing available to adopt.

superdude44
05-26-2013, 02:12 PM
I have this error as well. However I'm quite sure I understand. I have made the adoptable, and I could have sworn it was available. Is there a specific way to make it available?

Missy Master
05-26-2013, 08:14 PM
As HoF said in his post, there's an error that is going to be worked on and corrected :)

There has to actually be an avail adopt -- you're sure yours is avail, and there's nothing altered in the specs as to make it not available? Or avail only to certain groups?

superdude44
05-26-2013, 10:21 PM
would an example of an alteration be an adoptable limit of 5? If so, then yeah I don't have available adoptables.

Hall of Famer
05-26-2013, 11:26 PM
Well in Mys v1.3.3 the adoption center will throw a fatal error if you do not have available pets to adopt at the moment you visit it. If you decide to use adoptables shop completely, you may as well remove adoption center. If you are just playing with the adoption conditions, you can fix the problem by looking at a thread I posted in the Bug Tracker.

superdude44
05-27-2013, 12:21 PM
thank you. After uploading the new adopt.php the error was cleared. However It still says there are no available adoptables. http://i43.tinypic.com/1g0zu8.pnghttp://i39.tinypic.com/30285ts.png

Hall of Famer
05-27-2013, 07:39 PM
Umm this is weird, I believe the adoptables conditions work for me. Keep in mind that the adoptables number condition in your screenshot is applicable to all users. If you do not have five of this very species but other users do, it will not show up in adoption center either.

superdude44
05-28-2013, 12:10 PM
thank you. I will try giving myself 5 of them, and then try back. (to my knowledge there are no other users.) but i'll check on that as well.

EDIT: Before I went to add adopts I went to the existing adoptables page in the admin cp. The odd thing is that the adoptable is listed twice and I can't delete it. It says it was deleted and then it shows up again, allowing me to make anoter adoptable of the exact same name. It also won't allow me to remove conditions. this may be part of the reason it won't show up on the adoption page.