Gallery2 on XAMPP 1.7.4

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Gallery2 on XAMPP 1.7.4

Postby mervyngroves » 24. April 2010 21:12

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
mervyngroves
 
Posts: 2
Joined: 24. April 2010 20:59

Re: Gallery2 on XAMPP 1.7.4

Postby Altrea » 24. April 2010 21:39

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Gallery2 on XAMPP 1.7.4

Postby mervyngroves » 25. April 2010 21:22

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.
mervyngroves
 
Posts: 2
Joined: 24. April 2010 20:59


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 96 guests