Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: They're back Strict standard errors.  (Read 8337 times)

0 Members and 1 Guest are viewing this topic.

Understudy

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 48
    • Another boring website
They're back Strict standard errors.
« 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,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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: They're back Strict standard errors.
« Reply #1 on: January 08, 2013, 11:25:45 am »

Try
Code: [Select]
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICTas
5.4.0    E_STRICT became part of E_ALL.
Logged

Understudy

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 48
    • Another boring website
Re: Re: They're back Strict standard errors.
« Reply #2 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: They're back Strict standard errors.
« Reply #3 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.
Logged

Understudy

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 48
    • Another boring website
Re: They're back Strict standard errors.
« Reply #4 on: January 08, 2013, 04:17:17 pm »

Already did. :)
Logged

oexeliteo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: They're back Strict standard errors.
« Reply #5 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: They're back Strict standard errors.
« Reply #6 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.