#1
|
||||
|
||||
Strict Standards Error?
PHP Version 5.4.21
Strict Standards: Declaration of AdminSidebar::setDivision() should be compatible with Sidebar::setDivision(GUIComponent $module) in /home/xxx/public_html/ranch/classes/class_adminsidebar.php on line 18 Since I moved hosts to godaddy, I've gotten this error in ACP. |
#2
|
||||
|
||||
Well first of all I am not sure this script actually works on GoDaddy, you may end up experiencing other issues but hopefully you will be fine. For this one, just copy whatever is inside the parenthesis (GUIComponent $module) from the setDivision method in Sidebar to AdminSideBar and it will disappear. An alternative solution is to simply disable strict standard error(as it does not really affect your site in any way more than poping up an annoying message) from your server.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
Minus a few errors such as siggy images not loading, then there isn't much.
|
#4
|
|||
|
|||
Got this right now. What am I supposed to do, exactly? In noob speak....
In the class_sidebar file, I have: Code:
/** * The setDivision method, setter method for property $division. * It is set internally upon object instantiation, cannot be accessed in client code. * @param GUIComponent $module * @access protected * @return Void */ protected function setDivision(GUIComponent $module){ if(!$this->division){ $this->division = new Division; $this->division->setClass("sidebar"); } $this->division->add($module); } In the class_adminsidebar file, it's: Code:
/** * The setDivision method, setter method for property $division. * It is set internally upon object instantiation, cannot be accessed in client code. * @param ArrayList $components * @access protected * @return Void */ protected function setDivision($components){ $this->division = new Division($components); $this->division->setClass("sidebar"); } Is that what I'm supposed to switch? Sure it wouldn't break anything? |
#5
|
||||
|
||||
IDK it went away after a while, so I assume don't do anything just yet.
I'm not a great coder either so.. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strict Standards --- Need help, pre launch! | Missy Master | Questions and Supports | 29 | 01-30-2015 09:04 AM |
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 |
Parse error: syntax error, unexpected T_STRING | MikiHeart | Questions and Supports | 29 | 10-31-2013 01:46 AM |
Parse error: syntax error, unexpected T_ELSE in /home/.nyles/ | Saphira | Questions and Supports | 11 | 05-26-2009 12:45 PM |
What's New? |
What's Hot? |
What's Popular? |