Upgrade to 2.5 - Fatal error

Phoca Gallery - image gallery extension
Pipey
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 25 Jan 2012, 16:59

Upgrade to 2.5 - Fatal error

Post by Pipey »

Hello

I was not at the most up-to-date version of Gallery before I updated to Joomla 2.5. Now my site has crashed and I cannot access any page, front or admin. My backup will take some time. Is there another way to upgrade to Gallery 3.1.2 (i.e. FTP), or is there a quicker way to restore my site?

Fatal error: Access level to PhocaGalleryLoader::$classes must be protected (as in class JLoader) or weaker in /home/mysite/public_html/administrator/components/com_phocagallery/libraries/loader.php on line 77

Thanks
SonRiab
Phoca Professional
Phoca Professional
Posts: 258
Joined: 02 Jun 2011, 09:29
Contact:

Re: Upgrade to 2.5 - Fatal error

Post by SonRiab »

I would recommend to restore the backup. And before updating a live site to a newer Joomla version, i would test the update on a local server (like xampp) to verify the compatibility of all used extensions. :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upgrade to 2.5 - Fatal error

Post by Jan »

Hi, 3.1.2 is working on 2.5 (I have build it on 2.5)

Check the version again, if it is really 3.1.2, in 3.1.2 the $classes is protected:

Code: Select all

class PhocaGalleryLoader extends JLoader
{
	private static $paths 	= array();
	protected static $classes = array();
Jan
If you find Phoca extensions useful, please support the project
comprensivo
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 29 Nov 2010, 22:51

Re: Upgrade to 2.5 - Fatal error

Post by comprensivo »

Hi

I get the same error!

I have checked several times that i am indeed runing the latest version of Joomla 2.5 and i have downloaded and installed PhocaGallery ver. 3.1.2.

The error seems to only appear when you have updated to Joomla 2.5 without updating PhocaGallery first?!

Please help.

PM me if you need access to the site in question for you to verify the error.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upgrade to 2.5 - Fatal error

Post by Jan »

Hi, then just check this file:
administrator\components\com_phocagallery\libraries\loader.php

and paste there the info about the defined variables:

Code: Select all

private static $paths 	= array();
	protected static $classes = array();
If you find Phoca extensions useful, please support the project
comprensivo
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 29 Nov 2010, 22:51

Re: Upgrade to 2.5 - Fatal error

Post by comprensivo »

It looks already like this:

Code: Select all

class PhocaGalleryLoader extends JLoader
{
	private static $paths 	= array();
	protected static $classes = array();
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upgrade to 2.5 - Fatal error

Post by Jan »

Hi, then I don't understand how you can get this error:
Fatal error: Access level to PhocaGalleryLoader::$classes must be protected (as in class JLoader) or weaker in /home/mysite/public_html/administrator/components/com_phocagallery/libraries/loader.php on line 77

$classes must be protected ??? x protected static $classes = array(); :idea:
If you find Phoca extensions useful, please support the project
RMone
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 31 Jan 2012, 01:09

Re: Upgrade to 2.5 - Fatal error

Post by RMone »

Hi folks,

I have also had some strange things happening when updating to 2.5 and running the database-update.
The Frontend just loaded white pages (Error 500).
First I did not realize the reason because I had disabled php error reporting by .htaccess file.
But later I have also seen a message like Pipey has had.

I have also had massive problems in the Backend. A lot of menue items did not work any more!

So then I removed Phoca Gallery completely and the site became live again, also the Backend is still working now.

Ok afterwards I reinstalled Phoca Gallery (newest versions from this site) and most of its Plugins. But this caused still some smaller trouble in the Backend. When I was editing an article and then save / save & exit I get a white page! (Sorry php error reporting is off again).
Until I disabled Phoca Gallery Diashow Plugin and Phoca Gallery Simple Plugin the problem was still present.

Do you have an idea why this happens?

Oh and just another question: Do you have an idea how to restore the missing Gallery categories? All folders and pics are still on the page...

Thanks for your great work :twisted: and best regards,
Roland
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upgrade to 2.5 - Fatal error

Post by Jan »

Hi, will be great to get info about error message :-( (I am now working on Phoca Gallery Plugin, where the JSite can make the problems, so maybe this will be the case, please check Phoca News to new version of plugins)

Jan
If you find Phoca extensions useful, please support the project
comprensivo
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 29 Nov 2010, 22:51

Re: Upgrade to 2.5 - Fatal error

Post by comprensivo »

Me neither?! i am baffled...

I have now tried with the new ver. 3.1.4. I deinstalled the old version - Even looked through the database for old references to Phoca Gallery and removed the few i could find. Looked through the files in joomla but found nothing. When upload the Gallery component and hit the install button it comes up with the error mentioned below. its like it gets some of the install done, but not all of it... the menu for the component is there, but going to the admin page of PG produces the error?

Are there any rights that is wrong after the update? What can i check?
Jan wrote:Hi, then I don't understand how you can get this error:
Fatal error: Access level to PhocaGalleryLoader::$classes must be protected (as in class JLoader) or weaker in /home/mysite/public_html/administrator/components/com_phocagallery/libraries/loader.php on line 77

$classes must be protected ??? x protected static $classes = array(); :idea:
Post Reply