Install Phoca Gallery PLG 3.04 = Backend unavailable

Phoca Gallery plugins - plugins for Phoca Gallery extension
AnSoTeC
Phoca Member
Phoca Member
Posts: 13
Joined: 07 Jan 2012, 19:49
Location: Selm, Germany
Contact:

Re: Install Phoca Gallery PLG 3.04 = Backend unavailable

Post by AnSoTeC »

Jan wrote:Hi, then try to see the html source - Sometimes when error is rendered in javascript area or in head, it will be not displayed on the site but in source code of the site, just click right button on mouse and check the html source, if the error is not displayed in javascript output. :idea:

Jan
Jan,

as far as i have figured out the problem seem to be in these two lines in the plugin source ... if i comment them out the backend is accessible

perhaps this helps

$gid = $user->get('aid', 0);

$menu = &JSite::getMenu();

i figured out through commenting out each line and functions until i got the two lines which make the backend disapear

hopefully you can help because i hava no experiences with php coding and cannot figure out on my own what is the problem with this two lines.

Regards and thanks,

Andreas
AnSoTeC
Phoca Member
Phoca Member
Posts: 13
Joined: 07 Jan 2012, 19:49
Location: Selm, Germany
Contact:

Re: Install Phoca Gallery PLG 3.04 = Backend unavailable

Post by AnSoTeC »

Hi,

seems it has to be $gid = $user->get('gid', 0); for J1.7 and not
$gid = $user->get('aid', 0); as it is in the current version of the plugin

this seems to solve the first error :twisted: ..... but i found nothing that helps with the second ...

$menu = &JSite::getMenu();

but .... as far as i see the $menu variable will never be used in the plugin ... so i left it as a comment and - TADA - everything works fine ... :twisted:

perhaps if i found out right it would be nice to add this within the next update.

Regards and Thanks,

Andreas
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Install Phoca Gallery PLG 3.04 = Backend unavailable

Post by Jan »

Hi, thank you for this info, I have tested new version of this plugin and seems this will be fixed, I hope I will find time to release it asap.

Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Install Phoca Gallery PLG 3.04 = Backend unavailable

Post by Jan »

Do you get the problem with 3.1.2 version?
If you find Phoca extensions useful, please support the project
Post Reply