![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
![]()
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. |
#2
|
||||
|
||||
![]()
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:
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. |
#3
|
||||
|
||||
![]()
Option one worked! Yay! Thank you so much, Kyttias!
__________________
My Mods Site (1.3.4, 2020 Mods) |
![]() |
|
|
What's New? |
What's Hot? |
What's Popular? |