"Strict Standards" error

Leftblank

Joined: 2006-10-16
Posts: 2
Posted: Mon, 2006-10-16 19:35

I'm having some trouble with Gallery 2, it's been running perfectly here for quite a long time (version 2.0.4, not upgrading because of api changes which break my integration), until now. I don't know what I changed exactly (else I would've changed it back), but the gallery is returning some pretty weird errors, I think they're caused by PHP5/Zend Optimiser but I can't figure out how to get rid of them, the search / google wasn't much of a help to me either.

The following errors appear on the index page:

Strict Standards: Assigning the return value of new by reference is deprecated in /chroot/home/leftblan/leftblank.nl/html/gallery/bootstrap.inc on line 35

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /chroot/home/leftblan/leftblank.nl/html/gallery/modules/core/classes/Gallery.class on line 51

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /chroot/home/leftblan/leftblank.nl/html/gallery/modules/core/classes/Gallery.class on line 62

Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /chroot/home/leftblan/leftblank.nl/html/gallery/modules/core/classes/Gallery.class on line 70

Repeated like 50 times.

If you want to see it, it's running here, hopefully that can supply you with some extra information.

Thanks for your replies and keep up the fantastic work with Gallery 2, it's a wonderful product.


Version data
Gallery versie = 2.0.4 core 1.0.0.4
PHP versie = 5.1.1 apache2handler
Web server = Apache/2.0.59 (Unix)
Database = mysql 5.0.24-standard
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, SquareThumb, Gd
Besturingssysteem = Linux iworx1.webxtra.net 2.6.9-42.0.2.EL #1 Tue Aug 22 23:56:05 CDT 2006 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-10-16 19:38

remove E_STRICT from your php error_reporting.

1. you should not run a productional application with error_reporting to anything that includes E_NOTICE and E_STRICT.
2. gallery has no errors when using error_reporting E_ALL
3. since gallery 2 is supposed to work with php 4 and php 5, it will never work with E_STRICT.

 
Leftblank

Joined: 2006-10-16
Posts: 2
Posted: Mon, 2006-10-16 20:16

Thanks a lot, apparently my host changed its settings, this didn't come up in my mind.