Page 2 of 2

Re: Install Phoca Gallery PLG 3.04 = Backend unavailable

Posted: 21 Jan 2012, 20:37
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

Re: Install Phoca Gallery PLG 3.04 = Backend unavailable

Posted: 21 Jan 2012, 20:48
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

Re: Install Phoca Gallery PLG 3.04 = Backend unavailable

Posted: 27 Jan 2012, 19:30
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

Re: Install Phoca Gallery PLG 3.04 = Backend unavailable

Posted: 01 Feb 2012, 12:53
by Jan
Do you get the problem with 3.1.2 version?