forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Understudy on January 07, 2013, 04:18:53 am

Title: They're back Strict standard errors.
Post by: Understudy on January 07, 2013, 04:18:53 am
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:
Code: [Select]
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=72712.0)
http://forum.coppermine-gallery.net/index.php/topic,69667.0.html (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
Code: [Select]
; 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
Code: [Select]
        if (!isset($_scinstance)) {
           /**$_scinstance = Inspekt_Supercage::Factory($strict);**/
           $inspekt = new Inspekt();
           $superCage = $inspekt->makeSuperCage($strict);
        }

I got this error

Code: [Select]
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
Title: Re: They're back Strict standard errors.
Post by: Αndré on January 08, 2013, 11:25:45 am
Try
Code: [Select]
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICTas
Quote from: http://php.net/manual/en/function.error-reporting.php
5.4.0    E_STRICT became part of E_ALL.
Title: Re: Re: They're back Strict standard errors.
Post by: Understudy on January 08, 2013, 03:40:37 pm
Try
Code: [Select]
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICTas

That did it.
I had to make sure I changed inspekt.php back to
Code: [Select]
if (!isset($_scinstance)) {
           $_scinstance = Inspekt_Supercage::Factory($strict);
        }
Code: [Select]
# apachectl restart

Sincerely,

Brendhan
Title: Re: They're back Strict standard errors.
Post by: Αndré on January 08, 2013, 03:42:55 pm
Please
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.
Title: Re: They're back Strict standard errors.
Post by: Understudy on January 08, 2013, 04:17:17 pm
Already did. :)
Title: Re: They're back Strict standard errors.
Post by: 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
Title: Re: They're back Strict standard errors.
Post by: Αndré on November 05, 2013, 09:27: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