Page 1 of 2

Problem with popup to show picture with plugin

Posted: 20 Aug 2008, 00:32
by coolsteph
Hi,

After the update of my site with Joomla 1.5.6 (url rewriting activated), Phoca Gallery to 1.8.8, I try to use Phoca Gallery Plugin.

I've just add in my article {phocagallery view=category|categoryid=7}, and the good thumbails are shown, but when I clic on the each one, I've got the error in the popup windows :

Code: Select all

404 - Ressource non trouvée

Ressource non trouvée

Call stack
# 	Function 	Location
1 	JSite->dispatch() 	D:\www\coolsteph.net\index.php:68
2 	JComponentHelper->renderComponent() 	D:\www\coolsteph.net\includes\application.php:124
3 	require_once() 	D:\www\coolsteph.net\libraries\joomla\application\component\helper.php:162
4 	JController->execute() 	D:\www\coolsteph.net\components\com_phocagallery\phocagallery.php:33
5 	PhocaGalleryController->display() 	D:\www\coolsteph.net\libraries\joomla\application\component\controller.php:236
6 	JController->display() 	D:\www\coolsteph.net\components\com_phocagallery\controller.php:32
7 	PhocaGalleryViewCategory->display() 	D:\www\coolsteph.net\libraries\joomla\application\component\controller.php:310
8 	JView->get() 	D:\www\coolsteph.net\components\com_phocagallery\views\category\view.html.php:158
9 	PhocagalleryModelCategory->getCategory() 	D:\www\coolsteph.net\libraries\joomla\application\component\view.php:364
10 	JError->raiseError() 	D:\www\coolsteph.net\components\com_phocagallery\models\category.php:230
11 	JError->raise() 	D:\www\coolsteph.net\libraries\joomla\error\error.php:173
12 	JException->__construct() 	D:\www\coolsteph.net\libraries\joomla\error\error.php:138
When I create a link in the menu to this category of phocagallery (shown by phoca module), I can see all the pictures in this category correctly, and see pictures in the article shown with the plugin. If I only un-published the link, the problem is the same. But, I don't want to create the link in the menu to the category :?

Someone have an idea ? Is this a bug, or an error in my configuration ? :idea:

Thanks.
CoolSteph

PS:Sorry for my bad english. :oops:

Re: Problem with popup to show picture with plugin

Posted: 20 Aug 2008, 09:29
by caro84g
Hi,

solution:
  • create a new menu module (in extensions >> modules and then copy the main menu i.e.)
  • set this module unpublished
  • in menu >> 'your created menu' create a menulink with categories layout
  • set this link to published and to public
In your website the menu link isn't visible, but the plugin uses this menu link to create the URL to the detailpictures.

See FAQ 2: https://www.phoca.cz/documentation/index ... ent/24-faq (this is about the random image module, but it works the same for the plugin)

Good luck!

Carolien

Re: Problem with popup to show picture with plugin

Posted: 20 Aug 2008, 12:45
by coolsteph
Thank for your solution, I create an unpublished menu module with links on the categories that I want to use only with the plugin and it works fine. But, do you think is it normal or is it a bug that will be corrected in future ?

CoolSteph.

Re: Problem with popup to show picture with plugin

Posted: 21 Aug 2008, 00:29
by Jan
Hi, this is not a bug, ... Plugins and modules doesn't have Itemid which is needed for SEO. If you go from plugin to component, you will need parameters which are binded with Itemid. Plugin or Module need the Itemid's information for correctly created link... so works the joomla framework

Re: Problem with popup to show picture with plugin

Posted: 21 Aug 2008, 09:58
by coolsteph
Ok,

Thank for yours answers and for the good worf of phoca team :wink:

Re: Problem with popup to show picture with plugin

Posted: 21 Aug 2008, 23:30
by Jan
there is no team :(

Re: Problem with popup to show picture with plugin

Posted: 16 Sep 2008, 19:39
by keepitfrozen
ok, I'm still kind of confused on this issue. If i have a module for my main menu now and my main menu already has links to every category that I use the phoca plugin for then why would i have to create a new module that is unpluished to fix the broken links for the popup window? Only way i can get the popup images to show is to turn off SEO.

thanks,

MJ

Re: Problem with popup to show picture with plugin

Posted: 16 Sep 2008, 23:13
by Jan
If you have one, then you don't need other... Only one is needed to copy the settings for plugins and modules which don't have Itemid for getting menu link settings, see:

Question 2, FAQ:
https://www.phoca.cz/documentation/index ... ent/24-faq

Jan

Re: Problem with popup to show picture with plugin

Posted: 17 Sep 2008, 14:41
by keepitfrozen
I guess that is what is throwing me off because this worked fine until i upgraded to version 2.0 and now it doesn't. I have links to every category in a public visible menu but as soon as i turn SEO on the detail image view breaks with 404. All of my galleries are in articles using the plugin, so maybe i should recreate each one in a new article?

MJ

Re: Problem with popup to show picture with plugin

Posted: 17 Sep 2008, 15:22
by caro84g
Have you tried to resave your menu-items from which the plugin takes the links? (In the newest upgrade I found out it wasn't necessary anymore for the component, but it might be necessary for the plugin).