Page 1 of 1

PHP errors - SOLVED

Posted: 03 Apr 2013, 16:23
by ingeva
When I start my web page now, I get the following errors in the menu field:

Strict Standards: Non-static method JSite::getMenu() should not be called statically in /Store/PINYL/public_html/veteranvogn/components/com_phocagallery/router.php on line 38

This message is repeated three times, but one of the line numbers is different.

I have upgraded to 3.2.3 but that didn't help.
I run the exact same script and the exact same source files and database on another server, and get no errors.

Any idea what can be wrong?

Re: PHP errors

Posted: 04 Apr 2013, 09:41
by ingeva
I should add that my php version is

PHP Version 5.4.6-1ubuntu1.2

I'm using LinuxMint Mate 14.

This error occurs on my local machine, NOT on the WEB server although the database and all files under the domain are identical (except the configuration file of course, where the database has another name/password).

I have checked that all PhocaGalleries tables in the database are OK.

Re: PHP errors

Posted: 04 Apr 2013, 15:53
by Benno

Re: PHP errors

Posted: 06 Apr 2013, 12:04
by ingeva
Benno wrote:Hi,
see: https://www.phoca.cz/documents/50-phoca/ ... tic-method

Kind regards,
Benno
Thank you very much! That helped!

It also explained why the same settings work differently on my local computer: The php.ini setting was different.
Since I'm a developer myself, I want php to report errors - but here I can change the Joomla configuration setting and achieve the same result - local and remote.

Re: PHP errors - SOLVED

Posted: 06 Apr 2013, 16:01
by Benno
You`re welcome!

Kind regards,
Benno