Page 1 of 2
Upgrade to 2.5 - Fatal error
Posted: 25 Jan 2012, 17:05
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
Re: Upgrade to 2.5 - Fatal error
Posted: 25 Jan 2012, 18:38
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.

Re: Upgrade to 2.5 - Fatal error
Posted: 26 Jan 2012, 01:23
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
Re: Upgrade to 2.5 - Fatal error
Posted: 30 Jan 2012, 00:11
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.
Re: Upgrade to 2.5 - Fatal error
Posted: 30 Jan 2012, 22:50
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();
Re: Upgrade to 2.5 - Fatal error
Posted: 30 Jan 2012, 23:04
by comprensivo
It looks already like this:
Code: Select all
class PhocaGalleryLoader extends JLoader
{
private static $paths = array();
protected static $classes = array();
Re: Upgrade to 2.5 - Fatal error
Posted: 31 Jan 2012, 00:12
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();

Re: Upgrade to 2.5 - Fatal error
Posted: 31 Jan 2012, 01:28
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

and best regards,
Roland
Re: Upgrade to 2.5 - Fatal error
Posted: 31 Jan 2012, 19:36
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
Re: Upgrade to 2.5 - Fatal error
Posted: 06 Feb 2012, 00:51
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();
