springbox99
Member
- Messages
- 114
- Reaction score
- 3
- Points
- 18
Hello,
Since x10hosting uses php5.4, my coppermine galery had bugs. An upgrade to the last version didn't solve the problem.
I had to make a lot of changes :
For Strict Standards: Non-static method Inspekt::makeSuperCage() should not be called statically in /include/init.inc.php on line 42
was replaced by
For Strict Standards: Non-static method Inspekt_Supercage::Factory() should not be called statically in /include/inspekt.php on line 282
was replaced by
For "Strict Standards: Non-static method Inspekt::makeGetCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 124
Strict Standards: Non-static method Inspekt::makePostCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 125
Strict Standards: Non-static method Inspekt::makeCookieCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 126
Strict Standards: Non-static method Inspekt::makeEnvCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 127
Strict Standards: Non-static method Inspekt::makeFilesCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 128
Strict Standards: Non-static method Inspekt::makeServerCage() should not be called statically, assuming $this from incompatible context in include/inspekt/supercage.php on line 134"
Etc.
Another way to solve the problem would be to edit php.ini like explained here
http://forum.coppermine-gallery.net/index.php/topic,75836.0.html
I tell you this because i've seen that i have the same issue with Joomla.
Since x10hosting uses php5.4, my coppermine galery had bugs. An upgrade to the last version didn't solve the problem.
I had to make a lot of changes :
For Strict Standards: Non-static method Inspekt::makeSuperCage() should not be called statically in /include/init.inc.php on line 42
PHP:
$superCage = Inspekt::makeSuperCage($strict);
PHP:
$inspekt = new Inspekt();
$superCage = $inspekt->makeSuperCage($strict);
For Strict Standards: Non-static method Inspekt_Supercage::Factory() should not be called statically in /include/inspekt.php on line 282
PHP:
$_scinstance = Inspekt_Supercage::Factory($strict);
PHP:
$inspekt_supercage = new Inspekt_Supercage();
$_scinstance = $inspekt_supercage->Factory($strict);
For "Strict Standards: Non-static method Inspekt::makeGetCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 124
Strict Standards: Non-static method Inspekt::makePostCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 125
Strict Standards: Non-static method Inspekt::makeCookieCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 126
Strict Standards: Non-static method Inspekt::makeEnvCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 127
Strict Standards: Non-static method Inspekt::makeFilesCage() should not be called statically, assuming $this from incompatible context in /include/inspekt/supercage.php on line 128
Strict Standards: Non-static method Inspekt::makeServerCage() should not be called statically, assuming $this from incompatible context in include/inspekt/supercage.php on line 134"
PHP:
$inspekt = new Inspekt();
$this->get = $inspekt->makeGetCage($strict);
$this->post = $inspekt->makePostCage($strict);
$this->cookie = $inspekt->makeCookieCage($strict);
$this->env = $inspekt->makeEnvCage($strict);
$this->files = $inspekt->makeFilesCage($strict);
/**
* Don't put session in cage as it will nullify $_SESSION and we will loose the session completely.
* TODO: Find a way to put the session data in cage and still retain the session correctly
*/
//$this->session= $inspekt->makeSessionCage($strict);
$this->server = $inspekt->makeServerCage($strict);
Another way to solve the problem would be to edit php.ini like explained here
http://forum.coppermine-gallery.net/index.php/topic,75836.0.html
I tell you this because i've seen that i have the same issue with Joomla.
Last edited: