PDA

View Full Version : Declaration of File::getBasename() should be compatible with SplFileInfo


draugluin
05-21-2013, 03:09 AM
Strict Standards: Declaration of File::getBasename() should be compatible with SplFileInfo::getBasename($suffix = NULL) in /var/www/clients/client161/web331/web/0wolf/classes/class_file.php on line 19



öööhhhhhhh... after a new installation, it shows me this.
What's wrong ??

thanks for help :usedusedused:

draugluin
05-24-2013, 05:37 AM
no one any idea, how I can solve this ? :catfish:

Hall of Famer
05-24-2013, 05:48 AM
Well the fix is simple, open classes/class_file.php first and then change the line public function getBasename() to public function getBasename($suffix = NULL). You may also disable warning messages though, since this is not a fatal error and wont stop your site from working.

draugluin
05-24-2013, 06:12 AM
ahhh...yes. Now it's clear. Thank you.
but there's another

Strict Standards: Declaration of AdminSidebar::setDivision() should be compatible with Sidebar::setDivision(GUIComponent $module) in /var/www/clients/client161/web331/web/0wolf/classes/class_adminsidebar.php on line 16

but I can't find setDivision() in the class_adminsidebar ...

Missy Master
05-26-2013, 08:16 PM
I'll have to defer this to HoF, sorry --- I looked at my own setup and didn't see it either -- I am possibly looking right at it.

Hall of Famer
05-26-2013, 11:22 PM
Can you talk your host into disabling strict standard warnings? These really do not affect your site in anyway, just some warning messages at page header.