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 02-26-2016, 12:11 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 151,898
Abronsyth is on a distinguished road
Default Error after disabling sidebar

Resolved

I tried to disable the login portion of the sidebar and I now have this error when visitng [mysite]/login:
Catchable fatal error: Argument 1 passed to GUIContainer::add() must be an instance of GUIComponent, null given, called in /home/inekelmy/public_html/view/loginview.php on line 19 and defined in /home/inekelmy/public_html/classes/class_guicontainer.php on line 361

Unfortunately I cannot login to enable the login bar to see if that fixes it. Anyone have an idea?

EDIT:
OK, I re-enabled it in PHPmyadmin, which fixed the issue...but I really don't want the login portion in the sidebar...how can I disable it without disabling the entire login system?
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 02-26-2016 at 03:06 PM.
Reply With Quote
  #2  
Old 02-26-2016, 01:47 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 127,188
Kyttias is on a distinguished road
Default

I no longer use the /login page (I have it redirecting to index, and have lines 19 and 20 entirely disabled, anyway). (See this mod, for why?) Your error is being thrown at these lines I no longer use whatsoever, and... (it's because you removed the function from the class_sidebar file, probably?)...

...well, bad news: The login form IS the same for both the /login page and the sidebar.

The login bar is added to the sidebar via the function getLoginBar, which calls the function setLoginBar, inside classes/class_sidebar.php, though getLoginBar is inevitably what's ALSO called in view/loginview.php.

You have a couple options: 1) This may not work, but it's worth a shot -- inside setLoginBar in class_sidebar, try removing the last line -
PHP Code:
$this->setDivision($this->loginBar); 
See if the form still appears on /login but not on the sidebar... an error might be thrown? I dunno, I just think it might help.

2) You can go ahead and make your own login form inside the view/loginview.php instead of calling the one in the sidebar and add it in manually to the login page, if you want? Just reference the one being built in setLoginBar from the sidebar class file... or do it from scratch with html and make sure it posts data to "../../login" (up two levels just in case you're logging in from some bizarre page, I guess... or a full url would work, I guess).
__________________
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
  #3  
Old 02-26-2016, 03:06 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 151,898
Abronsyth is on a distinguished road
Default

Option one worked! Yay! Thank you so much, Kyttias!
__________________
My Mods Site (1.3.4, 2020 Mods)
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 06:21 PM.

Currently Active Users: 2833 (0 members and 2833 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636