"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.
|
|
Posts: 32509
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.
Posts: 2
Thanks a lot, apparently my host changed its settings, this didn't come up in my mind.