They're back Strict standard errors. They're back Strict standard errors.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

They're back Strict standard errors.

Started by Understudy, January 07, 2013, 04:18:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Understudy

Hi,

I realize this has been talked about before. So far I am not getting a solution that is working for me.

Here are the errors:

Strict Standards: Non-static method Inspekt_Supercage::Factory() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt.php on line 282

Strict Standards: Non-static method Inspekt::makeGetCage() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt/supercage.php on line 124

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt.php on line 147

Strict Standards: Non-static method Inspekt::makePostCage() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt/supercage.php on line 125

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt.php on line 170

Strict Standards: Non-static method Inspekt::makeCookieCage() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt/supercage.php on line 126

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt.php on line 192

Strict Standards: Non-static method Inspekt::makeEnvCage() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt/supercage.php on line 127

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt.php on line 215

Strict Standards: Non-static method Inspekt::makeFilesCage() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt/supercage.php on line 128

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt.php on line 238

Strict Standards: Non-static method Inspekt::makeServerCage() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt/supercage.php on line 134

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically,
assuming $this from incompatible context in /usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt.php on line 124


This is talked about in several other threads even one that says solved.
http://forum.coppermine-gallery.net/index.php?topic=72712.0
http://forum.coppermine-gallery.net/index.php/topic,69667.0.html

My stats.
FreeBSD 9.0
apache22-2.2.23_4
php5-5.4.10
mysql-server-5.5.29
gd-2.0.35_8,1

I edited the php.ini as mentioned in the other thread. I did apachectl restart.

php.ini

; http://php.net/error-reporting
;error_reporting = E_ALL
error_reporting  =  E_ALL & ~E_NOTICE


When I tried to do this to the inspekt.php

        if (!isset($_scinstance)) {
           /**$_scinstance = Inspekt_Supercage::Factory($strict);**/
           $inspekt = new Inspekt();
           $superCage = $inspekt->makeSuperCage($strict);
        }


I got this error


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20 bytes) in
/usr/home/www/vhosts/brendhanhorne.com/public_html/coppermine_dir/include/inspekt.php on line 282


So where do I go from here. If the line I need to modify is different. I am uncertain as to what it should be or be replaced with.

Sincerely,

Brendhan

Αndré

Try
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
as
Quote from: http://php.net/manual/en/function.error-reporting.php5.4.0    E_STRICT became part of E_ALL.

Understudy

Quote from: Αndré on January 08, 2013, 11:25:45 AM
Try
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
as

That did it.
I had to make sure I changed inspekt.php back to

if (!isset($_scinstance)) {
           $_scinstance = Inspekt_Supercage::Factory($strict);
        }


# apachectl restart


Sincerely,

Brendhan

Αndré

Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.

Understudy


oexeliteo

Can someone please tell me some file is: php.ini
I can only find init.inc.php

have no idea where , so i can try edit with the error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT Code: as listed in some messages ?


thanks

Αndré

Quote from: oexeliteo on November 05, 2013, 03:14:30 AM
Can someone please tell me some file is: php.ini
I can only find init.inc.php

have no idea where , so i can try edit with the error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT Code: as listed in some messages ?


thanks
Double post. For answer, see http://forum.coppermine-gallery.net/index.php/topic,69667.msg370999.html#msg370999