Support > cpg1.5 miscellaneous

Error after moving to new server (STRICT STANDARDS)

(1/3) > >>

PencilGeek:
After moving to my new server, I'm now getting the dreaded:

--- Quote ---Strict Standards: Non-static method Inspekt::makeSuperCage() should not be called statically in C:\xampp\htdocs\gallery\include\init.inc.php on line 50

Strict Standards: Non-static method Inspekt_Supercage::Factory() should not be called statically in C:\xampp\htdocs\gallery\include\inspekt.php on line 284

Strict Standards: Non-static method Inspekt::makeGetCage() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\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 C:\xampp\htdocs\gallery\include\inspekt.php on line 149

Strict Standards: Non-static method Inspekt::makePostCage() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\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 C:\xampp\htdocs\gallery\include\inspekt.php on line 172

Strict Standards: Non-static method Inspekt::makeCookieCage() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\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 C:\xampp\htdocs\gallery\include\inspekt.php on line 194

Strict Standards: Non-static method Inspekt::makeEnvCage() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\include\inspekt\supercage.php on line 129

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\include\inspekt.php on line 217

Strict Standards: Non-static method Inspekt::makeFilesCage() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\include\inspekt\supercage.php on line 130

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\include\inspekt.php on line 240

Strict Standards: Non-static method Inspekt::makeServerCage() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\include\inspekt\supercage.php on line 136

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\gallery\include\inspekt.php on line 126
--- End quote ---

Before anybody asks, yes I've viewed these threads:
http://forum.coppermine-gallery.net/index.php?topic=72712.0
http://forum.coppermine-gallery.net/index.php/topic,69667.0.html

And before you ask gain, yes my permissions in php.ini are set as follows:
error_reporting = E_ALL & ~E_NOTICE

And yes, I've restarted apache (didn't need to because php.ini was already set correctly...but restarted anyways).

I wasn't getting any of these errors until I installed imagemagick...but then again, I wasn't trying to add new photos to a gallery either.  I used the ubuntu synaptic manager to install imagemagick, and that's when the problem started.

Knowing that I had built my own imagemagick on my old server, I built from those sources and installed from those sources instead.

At this point, I can't get rid of these messages and I can't add any new photos to the gallery.

Here's the chronology of events:

* Built new server with apache, php, and mysql.
Made sure that my various .ini files matched.
Exported my old sql databases, and imported them to the new server.  Perfect.
Installed all of my web sites, and verified they all work (many are database driven...so this is a good sign).
Tested coppermine in VIEW mode only.  Didn't see any errors.
Wanted to upload new gallery and noticed I don't have imagemagick installed.
Installed imagemagic from synaptics package manager, and problems started.
Built imagemagic from source, and installed from source without removing synaptic version.  Still errors.
Removed synaptics version of imagemagic.  Still errors.
*
Now what?

Αndré:
I assume notices are enabled in the Coppermine config. Please disable them and try again.

Phill Luckhurst:
xampp for webhosting? That always worries me. You would need to re-configure your php.ini file in xampp, there are plenty of articles on how to do this via Google. You would also need to check which version of PHP xampp is using as its releases often use the very latest version before any normal host would even consider using it.

PencilGeek:

--- Quote from: Phill Luckhurst on July 20, 2012, 08:05:43 am ---xampp for webhosting? That always worries me. You would need to re-configure your php.ini file in xampp, there are plenty of articles on how to do this via Google. You would also need to check which version of PHP xampp is using as its releases often use the very latest version before any normal host would even consider using it.

--- End quote ---

Actually, that's a cut-paste from the other thread.  Xampp is not on my system...whatever that is.

Here's my actual messages.

--- Quote ---Strict Standards: Non-static method Inspekt::makeSuperCage() should not be called statically in /var/www/photobucket/include/init.inc.php on line 50

Strict Standards: Non-static method Inspekt_Supercage::Factory() should not be called statically in /var/www/photobucket/include/inspekt.php on line 284

Strict Standards: Non-static method Inspekt::makeGetCage() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/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 /var/www/photobucket/include/inspekt.php on line 149

Strict Standards: Non-static method Inspekt::makePostCage() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/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 /var/www/photobucket/include/inspekt.php on line 172

Strict Standards: Non-static method Inspekt::makeCookieCage() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/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 /var/www/photobucket/include/inspekt.php on line 194

Strict Standards: Non-static method Inspekt::makeEnvCage() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/include/inspekt/supercage.php on line 129

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/include/inspekt.php on line 217

Strict Standards: Non-static method Inspekt::makeFilesCage() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/include/inspekt/supercage.php on line 130

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/include/inspekt.php on line 240

Strict Standards: Non-static method Inspekt::makeServerCage() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/include/inspekt/supercage.php on line 136

Strict Standards: Non-static method Inspekt_Cage::Factory() should not be called statically, assuming $this from incompatible context in /var/www/photobucket/include/inspekt.php on line 126

--- End quote ---

PencilGeek:

--- Quote from: Αndré on July 20, 2012, 06:59:53 am ---I assume notices are enabled in the Coppermine config. Please disable them and try again.

--- End quote ---

I would understand this a little better if this were a fresh install.  But since it's literally copied from one server to another, with all of the configuration and (any) .htaccess files, and with the sql database as well, I'm not sure how the config would change.

I assume in the config, you're talking about the config.inc.php file.  Here are its contents:


--- Code: ---<?php
// Coppermine configuration file
// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your database server
$CONFIG['dbuser'] =                         '*******';        // Your mysql username
$CONFIG['dbpass'] =                         '******';                // Your mysql password
$CONFIG['dbname'] =                         'photobucket';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg15x_';
?>
--- End code ---

I don't see anything in there that would enable php errors.  If that's not the config file you meant, please let me know.

Navigation

[0] Message Index

[#] Next page

Go to full version