Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2016, 02:24 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 117,363
Abronsyth is on a distinguished road
Default

Did you remember to add the new function into your database?
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #2  
Old 02-06-2016, 11:29 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 19,111
NobodysHero is on a distinguished road
Default

Yep, inserted everything it said to as far as I can tell, but it won't work. Not sure what I missed or did wrong.
Reply With Quote
  #3  
Old 02-07-2016, 01:16 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 91,006
Kyttias is on a distinguished road
Default

There are four steps. First, to add it to your database, second to edit functions/functions_items.php, third to create the item, and fourth to make it so the item will work by adding it to classes/class_privateitem.php. Can I see what you did for step four?
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #4  
Old 02-07-2016, 02:09 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 91,006
Kyttias is on a distinguished road
Default

(For some reason I thought that was someone else's post, sorry. x'D)

Hmm... but all other item functions work? If you were to create a new item where all it did was put out a note that said 'Hello this item worked'... it would work? The code looks fine, and it's really baffling that there's no error message at all.

Can you confirm for me whether or not you have the Alternate Gender Images mod installed? I see that you're using the version of the code for those that don't have it installed.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #5  
Old 02-07-2016, 10:31 AM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 19,111
NobodysHero is on a distinguished road
Default

At current, we are not interested in using that mod. There is only one species on our site that has a different outcome, it seems unnecessary at this time. ^.^ So, in short, no, it's not installed. LOL I've no idea what to do on this. x.x Completely lost.
Reply With Quote
  #6  
Old 02-07-2016, 11:06 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 91,006
Kyttias is on a distinguished road
Default

I can't find any syntax errors with an automatic checker, but HoF suggests for me to have you look in your error logs. For some hosts, it'll be a file in the same directory as the Mysidia installation. With others it'll be grouped in php management tools. If you can't figure out where to find your error logs, let me know what hosting you're on (or ask around your hosting's forums)?
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #7  
Old 02-09-2016, 09:29 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 19,111
NobodysHero is on a distinguished road
Default

The error log is pretty easy to find on my hosting. XD But the only entry there is a lil cryptic.

2016-02-09 21:23:41.073 [INFO] [5.254.97.87:54411-0#APVH_mystfell.com] File not found [/home/mystfell/public_html/403.shtml]

I have no idea what that means. >.> So... If that helps you help me, then yay! XD
Reply With Quote
  #8  
Old 02-09-2016, 10:25 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 91,006
Kyttias is on a distinguished road
Default

=/ That's probably not it, then.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #9  
Old 02-09-2016, 10:41 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 393,355
Hall of Famer is on a distinguished road
Default

The issue is with this line:

PHP Code:
$gender $adopt->getGender(); 
The $adopt from item functions is not an instance of class OwnedAdoptable, but an instance of StdClass with properties of the same name as the database columns. This has a historical reason, as the model class for Adoptable and OwnedAdoptable were available after Mys v1.3.2, while item functions existed back since Mys v1.3.0.

So the fix is very simple, change this line to the code below:
PHP Code:
$gender $adopt->gender
Lemme know if it works.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #10  
Old 02-10-2016, 12:08 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 19,111
NobodysHero is on a distinguished road
Default

YAY! Thanks, HoF! It worked! WHOO!
Reply With Quote
Reply

Tags
change, gender, genders, item functions, items


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a item function kristhasirah Questions and Supports 35 04-03-2017 10:17 AM
Calling a function in a function from the same class page Hwona Questions and Supports 2 04-25-2015 08:41 AM
Item Function Is Invalid Hwona Questions and Supports 31 09-27-2014 09:27 PM
Change Cash Function? Hwona Questions and Supports 2 07-14-2014 02:00 PM
Item Function Suggestions NobodysHero Suggestions and Feature Requests 5 06-23-2014 03:45 AM


All times are GMT -5. The time now is 12:46 AM.

Currently Active Users: 354 (0 members and 354 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636