Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2016, 08:43 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 50,700
tahbikat is on a distinguished road
Default Weird error with leveling up creatures?

So I randomly get a plain white page with this error on it when I click a creature I haven't clicked for the day yet:

Fatal error: Uncaught exception 'GUIException' with message 'This document has no title yet.' in /home/mysgardia/public_html/classes/class_document.php:52 Stack trace: #0 /home/mysgardia/public_html/classes/class_frame.php(217): Document->getTitle() #1 /home/mysgardia/public_html/classes/class_template.php(158): Frame->render() #2 /home/mysgardia/public_html/classes/class_view.php(279): Template->render() #3 /home/mysgardia/public_html/classes/class_frontcontroller.php(102): View->render() #4 /home/mysgardia/public_html/index.php(74): FrontController->render() #5 /home/mysgardia/public_html/index.php(78): IndexController::main() #6 {main} thrown in /home/mysgardia/public_html/classes/class_document.php on line 52


It only occurs when clicking an adopt I haven't clicked for the day, and sometimes the page doesn't even throw out an error but functions normally. Halp?
Reply With Quote
  #2  
Old 01-12-2016, 08:48 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: 388,888
Hall of Famer is on a distinguished road
Default

Umm this error message by itself isn't very helpful, clearly it tries to throw another error message but somehow couldn't find the appropriate message title, so instead it shows a document title error. In a word, you are supposed to see a different error message, not this one.

It's necessary to know what is the error message it tries to throw actually, I can help you test it by removing the document title error so you can bypass this error to see the actual error you are supposed to get.

anyway if I may ask, was there anything in common when you see this error message? Does it happen to a specific adoptables, or adoptables with certain traits?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 01-12-2016, 10:07 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 90,540
Kyttias is on a distinguished road
Default

I've noticed this will happen on pets without names. (I've since made it since pets will be by default named 'Unnamed' when created, to prevent this.) Another workaround is to change the title in levelupview.php to:

PHP Code:
$document->setTitle("{$adopt->getName()} "); 
Including   will insert in a blank space in addition to the title (which is just the adoptable's name).

There may be more to it than this, but... that's one issue I've had in the past.
__________________
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 01-12-2016, 10:32 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 50,700
tahbikat is on a distinguished road
Default

Ahhh yea I just noticed this before coming back here. So basically one of my members just removed all the names from most of their creatures. So including the   would fix this, even if a member removed the name?
Reply With Quote
  #5  
Old 01-12-2016, 11:05 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 90,540
Kyttias is on a distinguished road
Default

Yup, because then it'll render a non-breaking space.
__________________
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
  #6  
Old 01-12-2016, 11:41 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 50,700
tahbikat is on a distinguished road
Default

Excellent! Thank you kindly! <3
Reply With Quote
Reply


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


All times are GMT -5. The time now is 03:33 PM.

Currently Active Users: 12992 (0 members and 12992 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