forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Singular on September 09, 2017, 06:50:40 pm

Title: Non-static method error - Please help
Post by: Singular on September 09, 2017, 06:50:40 pm
Hi,

I just started getting these errors today all of a sudden. I have not changed anything in a while and this just started happening.

Strict Standards: Non-static method Inspekt::makeSuperCage() should not be called statically in /home/asingula/public_html/Gallery/include/init.inc.php on line 101
Strict Standards: Non-static method Inspekt_Supercage::Factory() should not be called statically in /home/asingula/public_html/Gallery/include/inspekt.php on line 282
Deprecated: Non-static method Inspekt::makeGetCage() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt/supercage.php on line 247
Deprecated: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt.php on line 147
Deprecated: Non-static method Inspekt::makePostCage() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt/supercage.php on line 249
Deprecated: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt.php on line 170
Deprecated: Non-static method Inspekt::makeCookieCage() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt/supercage.php on line 251
Deprecated: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt.php on line 192
Deprecated: Non-static method Inspekt::makeEnvCage() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt/supercage.php on line 253
Deprecated: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt.php on line 215
Deprecated: Non-static method Inspekt::makeFilesCage() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt/supercage.php on line 255
Deprecated: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt.php on line 238
Deprecated: Non-static method Inspekt::makeServerCage() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt/supercage.php on line 267
Deprecated: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /home/asingula/public_html/Gallery/include/inspekt.php on line 124

Can anyone please help me resolve?

thanks,
Joe
Title: Re: Non-static method error - Please help
Post by: phill104 on September 09, 2017, 08:10:32 pm
That suggests your host has upgraded PHP to a later version. WHat version of Coppermine are you running and what version of PHP are you running.
Title: Re: Re: Non-static method error - Please help
Post by: Singular on September 10, 2017, 01:56:06 am
That suggests your host has upgraded PHP to a later version. WHat version of Coppermine are you running and what version of PHP are you running.
Thanks so much for your reply.  I am running Coppermine version 1.5.20 and looks like php version 5.6.31.
Title: Re: Non-static method error - Please help
Post by: gmc on September 10, 2017, 03:15:13 pm
Sounds like your ISP upgraded to PHP 5.6 recently...

Several ways to address:

Should really do both the second and third items.
Title: Re: Re: Non-static method error - Please help
Post by: Singular on September 10, 2017, 03:57:21 pm
Sounds like your ISP upgraded to PHP 5.6 recently...

Several ways to address:
  • Downgrade your PHP back to 5.5 temporarily... Any reasonable ISP should let you do so...
  • Update your php.ini to include:
    error_reporting = E_ALL & ~E_STRICT & ~E_NOTICE & ~E_DEPRECATED
    (which should be the normal case on any 'production live' site)
    again any reasonable ISP should allow
  • Upgrade CPG to 1.5.46 - which I believe addressed these errors sometime after 1.5.20.

Should really do both the second and third items.
Thanks so much. I will have to delay upgrading my Coppermine since the guy who helped me with that is no longer with me and my site is heavily modded. Will doing step 2 alone fix the issue for now until I can get my Coppermine version updated?

thanks,
Joe
Title: Re: Re: Non-static method error - Please help
Post by: gmc on September 10, 2017, 04:01:34 pm
Thanks so much. I will have to delay upgrading my Coppermine since the guy who helped me with that is no longer with me and my site is heavily modded. Will doing step 2 alone fix the issue for now until I can get my Coppermine version updated?

thanks,
Joe
Yes... the messages you posted were 'Strict Standards' - addressed by "~E_STRICT" and 'Deprecated' - addressed by "~E_DEPRECATED" (with ~ meaning NOT...)
Adding that to your php.ini should stop those messages until you can upgrade.
Title: Re: Non-static method error - Please help
Post by: phill104 on September 10, 2017, 08:03:47 pm
Try to get the upgrade done as a matter of urgency. There have been some security issues fixed since your version, we would not like to see you get hacked as a result,
Title: Re: Non-static method error - Please help
Post by: Singular on September 10, 2017, 10:55:29 pm
Thank you all for your help. Updating the php.ini file worked like a charm.  Can anyone recommend a reliable person to help me with the upgrade to my Coppermine?  I have a very modded gallery that Tomas (who used to a moderator here) helped me with years ago.  I am not confident in doing it myself.

all the best,
Joe
Title: Re: Non-static method error - Please help
Post by: gmc on September 10, 2017, 11:41:15 pm
When I'm done dodging a hurricane - I'll send you a message...
If you have any info on the mods done - that will help... Otherwise I'll compare with the 1.5.20 distribution to see what changed and how much 'refitting' is needed.
Greg in Florida!
Title: Re: Re: Non-static method error - Please help
Post by: Singular on September 11, 2017, 06:07:08 pm
When I'm done dodging a hurricane - I'll send you a message...
If you have any info on the mods done - that will help... Otherwise I'll compare with the 1.5.20 distribution to see what changed and how much 'refitting' is needed.
Greg in Florida!
Thanks Greg, and best of luck to you.
Joe