Page 1 of 1

Gallery2 on XAMPP 1.7.4

PostPosted: 24. April 2010 21:12
by mervyngroves
I am having difficulty installing Gallery2 on a fresh installation of XAMPP 1.7.4 on Ubuntu 10.04 LTS Beta1.
This is just a sub section of the reported errors when you try to install Gallery2. Anybody got ideas of where to look for the problem?

I should add that XAMPP is the second instance of Apache running on the server. However the following work fine, Ebox port 8443 on the main apache and all of the features in XAMPP are accessible too except when it comes to installing Gallery2.

It seems that gallery2 is unable to determine the url fo the server.


Strict Standards: Non-static method GalleryUrlGenerator::getCurrentRequestUri() should not be called statically in /opt/lampp/htdocs/public_html/gallery2/index.php on line 34

Strict Standards: Non-static method GalleryDataCache::containsKey() should not be called statically in /opt/lampp/htdocs/public_html/gallery2/modules/core/classes/GalleryUrlGenerator.class on line 148

Strict Standards: Non-static method GalleryDataCache::_getCache() should not be called statically in /opt/lampp/htdocs/public_html/gallery2/modules/core/classes/GalleryDataCache.class on line 203

Strict Standards: Non-static method GalleryUtilities::getServerVar() should not be called statically in /opt/lampp/htdocs/public_html/gallery2/modules/core/classes/GalleryUrlGenerator.class on line 151

Strict Standards: Non-static method GalleryUtilities::sanitizeInputValues() should not be called statically in /opt/lampp/htdocs/public_html/gallery2/modules/core/classes/GalleryUtilities.class on line 1408

Re: Gallery2 on XAMPP 1.7.4

PostPosted: 24. April 2010 21:39
by Altrea
mervyngroves wrote:It seems that gallery2 is unable to determine the url fo the server.

No.

This error means, that Gallery2 doesn't follow the strict standards of PHP5.
normally class-methods are only accessable if the class is instantiated.
if you want to call a method without instantiate it, you had to mark it as static.
But thats just for info.

If you want to get rid of these E_STRICT error_messages, you had to change the error_reporting in your php.ini or in Gallery2, (depends where it is configurated if E_STRICT Messages should be printed out).

Maybe, there is a newer version of Gallery2 out, which is scripted cleaner, don't know.

Re: Gallery2 on XAMPP 1.7.4

PostPosted: 25. April 2010 21:22
by mervyngroves
Thank you, perfect diagnosis, disabled error_reporting =E_ALL | E_STRICT and it works. Since this will be on an internal server I'm happy with the workaround.