Page 1 of 2
Search and Phoca not working properly
Posted: 20 Jul 2009, 16:21
by cal
Hi
The interplay between phoca gallery v2.5/phoca search v2.5 with my joomla 1.5.9 site is very strange. The gallery itself works fine - no issues. However, when I use the search function the link result adds:
component/phocagallery/category/1-1850-1866 when it should read:
early-years-1850-1866
Basically, I get taken to the component/phocagallery/category/1-1850-1866 page, lose my side bar navigation and the thumbnails thereon link to 404 errors.
Strangely when I look for some images in the above 'early years' gallery I get taken to a correctly formatted page (e.g. with side bar menu) but the page that is served is from a different gallery category (here the pop up images work fine)
I'm a most confused, please help.
Cheers
Callum
Re: Search and Phoca not working properly
Posted: 21 Jul 2009, 19:17
by Jan
Hi, try to remove numbers from your aliases, it seems like this can be problem during correctly creation of urls on your server.
Jan
Re: Search and Phoca not working properly
Posted: 24 Jul 2009, 14:55
by cal
Hi Jan
Thanks for replying. I have removed all numbers from the aliases, renamed all the images so that no numbers appear and yet still the problem persists. I would really like to get this sorted as the website will be used by many influential people, and if I can't get it working, Iguess I'll just have to switch off this functionality.
Do you have anymore ideas as to why when searching using the Phoca Gallery Search plug-in, the results take you here:
component/phocagallery/category/1-1850-1866
which results in loss of the sidebar menu and a 404 when the thumbnail is clicked
instead of here:
early-years-1850-1866 which is where the gallery actually is?
Any help would be greatly appreciated.
Cheers
Callum
Re: Search and Phoca not working properly
Posted: 24 Jul 2009, 15:00
by Jan
Hi, no idea why the characters are missed?
see the aliases of images and categories. Are they correct?
Re: Search and Phoca not working properly
Posted: 24 Jul 2009, 17:06
by cal
Hi Jan
Not sure what you mean by 'are the aliases of the images and categories correct' - could you elaborate?
The search finds the text in the description of the iamges fine as can be seen here:
Early Years 1850-1866: RLS, mother and cousin
(Phoca Gallery / RLS, mother and cousin)
RLS, mother and cousin: YEAR: 1863 LOCATION: Germany DETAIL: Cousin is Bessie Stevenson Photograph by Hermann Noack (Berlin) Image courtesy of The Writers' Museum ...
Read more...
But when you click the Read more... button you get taken to the wrong page here:
http://www.robert-louis-stevenson.org/c ... arly-years
which is minus the sidebar and the thumbnails go to 404's.
If I just do a search for 'early years' then the read more link takes me to the right page, but when i do a search for more specific details that I've included in the image description and title then the wrong page gets served....
Just can't get my head around it....any help as ever mucho appreciated
Cheers
Callum
Re: Search and Phoca not working properly
Posted: 28 Jul 2009, 14:03
by cal
Hi Jan
When I switch off: Search Engine Friendly URLs in Global Configuration then the search works properly.
However, i do NOT want to do this as the site needs to be optimized for SEO.
Do you know of any other fixes that might remedy this problem? I've searched throughoout the forum and can't find anything suitable.
Cheers
Callum
Re: Search and Phoca not working properly
Posted: 29 Jul 2009, 14:32
by netnuvo
***BUMP*** Having the exact same issue.
Is there a fix for that coming?
Thank you!
Math
Re: Search and Phoca not working properly
Posted: 29 Jul 2009, 19:11
by Jan
Hi, which SEF method do you use?
I am using standard SEF and have checked it on my test servers (winxp, suse, freebsd) and get no such problem
this link:
http://www.robert-louis-stevenson.org/c ... arly-years
is not correctly created as correctly creation of category link doesn't include component/phocagallery
see these links on demo:
https://www.phoca.cz/demo/gallery-catego ... wasserloch
Correctly created SEF link doesn't include "components/phocagallery" but instead of this it includes the alias of the menu link, in this example this alias is called: "gallery-categories"
Did you created menu link to Phoca Gallery, so some Itemid exists and can be used for the SEF links?
see:
https://www.phoca.cz/documents/2-phoca-g ... _displayed
Jan
Re: Search and Phoca not working properly
Posted: 31 Jul 2009, 10:40
by cal
Hi Jan
Thanks for the reply
I think we're strating to get somewhere, but I'm having problems understanding the instructions for correctly setting a SEF link.
I just can't understand this:
'Did you created menu link to Phoca Gallery, so some Itemid exists and can be used for the SEF links?
see:
https://www.phoca.cz/documents/2-phoca-g ... _displayed '
can you be clearer (set out exactly what you have to do to create the above link tot he Phoca Gallery, so that some ItemID exists' as I am sure that once I understand this the links will be created correctly. Reading the FAQ does not make it clearer to me as to what to do - I think detailed instructions would help massively.
Thanks for your effort thus far, I really do appreaciate it.
Cheers
Callum
Re: Search and Phoca not working properly
Posted: 31 Jul 2009, 23:18
by Jan
Hi, I cannot explain it better as in the FAQ is described.
For creating SEF link, you need to have an Itemid. Itemid are created only for menu links. SEF is correctly created only in case some menu link is created (because menu link creates Itemid). In Joomla! SEF links are created with help of menu link aliases.
It means, you will create a menu link to e.g. Phoca Gallery Component. Joomla! will know this link has id=1 (this id is called Itemid) and Joomla! knows too, that the Itemid=1 has the following alias: gallery so it will create a menu link to Phoca Gallery and this is displayed as:
www. your site . com/gallery (Joomla! knows, it is Itemid=1). If such link doesn't exists, there is no Itemid and there can be not created correctly SEF link because Joomla! doesn't have any alias.
Modules and Plugins doesn't have any Itemid, so they try to find some in the menu link to component. If they find it they can do correctly SEF link, if they don't find it they cannot (if the menu link doesn't exist, they cannot create correctly menu link)
See:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
Jan