Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Strict Standards --- Need help, pre launch!
Hey guys!
Okay Canidae is about to launch and I need ONE thing! :) to get this dreadful thing gone: Strict Standards: Declaration of AdminSidebar And all the Strict Standards stuff to stop showing. It's way more than just this one message. I just don't want this showing for members at ALL. I saw a thread about this and still don't have a way to stop it that's working for me. The site's fine except for this jazz popping up in too many places to even name. As I understand it's a simple thing to turn this off .. I even tried adding something to the .htaccess file but that just made the whole site not work. Help! :) |
#2
|
||||
|
||||
Well you can just manually edit the AdminSidebar class method setDivision() to match its parent class'. So instead of setDivision($components), change it to setDivision(GUIComponent $component). This should do the trick for you.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
Ah fantastic, let me go try that, thanks HOF!! :)
|
#4
|
||||
|
||||
I managed to fix all my strict standard errors except for this one, so if you list some of the others off on the front end I can help -- but I never managed to fix the adminCP one on my site at webfreehosting. Out of curiosity, what's your host?
__________________
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. |
#5
|
||||
|
||||
Seemed to fix it most places --- now getting this Strict Standards error for the Breeding page:
: Declaration of DropdownList::add() should be compatible with GUIContainer::add(GUIComponent $component, $index = -1) in /home/petsim/public_html/Canidae/classes/class_dropdownlist.php Oh hey thanks! I'm on SkyeNetHosting. And now I get this too in ACP: Parse error: syntax error, unexpected '$component' (T_VARIABLE) in /home/petsim/public_html/Canidae/classes/class_adminsidebar.php on line 37 Last edited by Missy Master; 01-29-2015 at 05:00 PM. |
#6
|
||||
|
||||
Alright, well what did you change in the adminsidebar class to get it to work? I changed $components to $component in the parameters, then where it was used, and then everywhere on the page and none of it worked. The error changed to -
Code:
Catchable fatal error: Argument 1 passed to AdminSidebar::setDivision() must be an instance of GUIComponent, instance of Resource\Collection\ArrayList given, called in /srv/disk3/1793798/www/novul/classes/class_adminsidebar.php on line 187 and defined in /srv/disk3/1793798/www/novul/classes/class_adminsidebar.php on line 36 PHP Code:
PHP Code:
__________________
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. |
#7
|
||||
|
||||
I made the change HOF advised up above, and it seemed to work well --- okay thanks I'll try this now! :)
|
#8
|
||||
|
||||
></ Darn, could you give me a copy of your adminsidebar class file then, the whole thing? I want to see what I'm doing wrong.
__________________
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. |
#9
|
||||
|
||||
Oh, also, on your site, go in and try to change profile settings/anywhere with a radio button. I think you'll get an error there, too?
__________________
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. |
#10
|
||||
|
||||
I attached the file here!
Sorry it was on line 189. I tried the fix and it gave this: Fatal error: Cannot redeclare DropdownList::add() in /home/petsim/public_html/Canidae/classes/class_dropdownlist.php on line 112 Ugh now the ACP doesnt work at all .. what is this horrible Strict Standards thing, can't it just be turned off? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Standards for PHP programmers, which category are you in? | Hall of Famer | Webmasters Area | 4 | 10-05-2014 01:40 AM |
Strict Standards on Friend Privacy Page? | parayna | Questions and Supports | 2 | 09-27-2014 10:59 AM |
Strict Standards Error? | LucasA33 | Questions and Supports | 4 | 01-09-2014 12:26 PM |
What's New? |
What's Hot? |
What's Popular? |