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-29-2015, 02:43 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,508
Missy Master is an unknown quantity at this point
Default 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! :)
Reply With Quote
  #2  
Old 01-29-2015, 03:41 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: 490,864
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 01-29-2015, 03:42 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,508
Missy Master is an unknown quantity at this point
Default

Ah fantastic, let me go try that, thanks HOF!! :)
Reply With Quote
  #4  
Old 01-29-2015, 04:50 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 111,366
Kyttias is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 01-29-2015, 04:57 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,508
Missy Master is an unknown quantity at this point
Default

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.
Reply With Quote
  #6  
Old 01-29-2015, 05:05 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 111,366
Kyttias is on a distinguished road
Default

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
As for your error, in classes/class_dropdownlist.php, around line 105 (by the way, it'll help if you give the full error with line numbers, if possible, so I don't have to compare entire files), change this:
PHP Code:
    public function add($option$index = -1){
        if(!(
$option instanceof Option) and !($option instanceof OptGroup)) throw new GUIException("Cannot add a non-option type component to dropdown list.");
        
parent::add($option$index);            
    } 
into this:
PHP Code:
    public function add(GUIComponent $option$index = -1){
        if(!(
$option instanceof Option) and !($option instanceof OptGroup)) throw new GUIException("Cannot add a non-option type component to dropdown list.");
        
parent::add($option$index);            
    } 
__________________
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
  #7  
Old 01-29-2015, 05:06 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,508
Missy Master is an unknown quantity at this point
Default

I made the change HOF advised up above, and it seemed to work well --- okay thanks I'll try this now! :)
Reply With Quote
  #8  
Old 01-29-2015, 05:13 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 111,366
Kyttias is on a distinguished road
Default

></ 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.
Reply With Quote
  #9  
Old 01-29-2015, 05:17 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 111,366
Kyttias is on a distinguished road
Default

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.
Reply With Quote
  #10  
Old 01-29-2015, 05:21 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,508
Missy Master is an unknown quantity at this point
Default

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?
Attached Files
File Type: php class_adminsidebar.php (9.0 KB, 1 views)
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

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


All times are GMT -5. The time now is 05:49 PM.

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