PHP errors - SOLVED

General Forum
ingeva
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Feb 2013, 13:24

PHP errors - SOLVED

Post 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?
Last edited by ingeva on 06 Apr 2013, 12:04, edited 1 time in total.
ingeva
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Feb 2013, 13:24

Re: PHP errors

Post 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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: PHP errors

Post by Benno »

ingeva
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 12 Feb 2013, 13:24

Re: PHP errors

Post 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.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: PHP errors - SOLVED

Post by Benno »

You`re welcome!

Kind regards,
Benno
Post Reply