Problem with popup to show picture with plugin

Phoca Gallery plugins - plugins for Phoca Gallery extension
coolsteph
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 20 May 2008, 21:46
Location: France
Contact:

Problem with popup to show picture with plugin

Post 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:
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Problem with popup to show picture with plugin

Post 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
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
coolsteph
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 20 May 2008, 21:46
Location: France
Contact:

Re: Problem with popup to show picture with plugin

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with popup to show picture with plugin

Post 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
If you find Phoca extensions useful, please support the project
coolsteph
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 20 May 2008, 21:46
Location: France
Contact:

Re: Problem with popup to show picture with plugin

Post by coolsteph »

Ok,

Thank for yours answers and for the good worf of phoca team :wink:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with popup to show picture with plugin

Post by Jan »

there is no team :(
If you find Phoca extensions useful, please support the project
keepitfrozen
Phoca Member
Phoca Member
Posts: 22
Joined: 13 May 2008, 01:25
Location: United States of America

Re: Problem with popup to show picture with plugin

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with popup to show picture with plugin

Post 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
If you find Phoca extensions useful, please support the project
keepitfrozen
Phoca Member
Phoca Member
Posts: 22
Joined: 13 May 2008, 01:25
Location: United States of America

Re: Problem with popup to show picture with plugin

Post 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
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Problem with popup to show picture with plugin

Post 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).
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Post Reply