Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Search problems - returning incorrect URLs
(1 viewing) (1) Guest
Document management system (DMS) component for Joomla!

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Search problems - returning incorrect URLs

Search problems - returning incorrect URLs 11 years, 2 months ago #36385

I have four folders within JoomDOC3 root:
- Annual Accounts
- Magazines
- Member Files
- Public Files

When I search for documents using Joomla Search any document that is in Magazines that appears in the results list works, but documents in other folders don't and I get an error when I try to click on the link.

For example, the generated link for a magazine would be:
- www.mysite.com/magazine/mytestmagazine/detail

But the generated link for a
- www.mysite.com/about-us/annual-accounts-...ytestdocument/detail

See how it seems to have added in some strange additional directories?

The error I get is:
403 - JERROR_ALERTNOAUTHOR /var/www/vhosts/mysite.com/secure/documents/Annual Accounts/public-files/mytestdocument /var/www/vhosts/mysite.com/secure/documents/Annual Accounts

I've tried disabling the search engine friendly URLs and although the generated URL is different I still get the same error.

Non SEO URLs:
- www.mysite.com/index.php?option=com_joom...gazine&Itemid=40
- www.mysite.com/index.php?option=com_joom...ument&Itemid=279

Interesting how the magazine does not include the path bit the public file document does - I still get the same error from the public files document though.

Finally, if I create and article and use the JoomDOC plugin to add a document the links generated are as follows:
- www.mysite.com/index.php?option=com_joom...nes/testmagazine.pdf
- www.mysite.com/index.php?option=com_joom...les/testdocument.pdf

And both of these links work.

Definitely looks like a search plugin issue

Any ideas / suggestions?
The topic has been locked.

Re: Search problems - returning incorrect URLs 11 years, 2 months ago #36441

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

I make some tests with mod_joomdoc_explorer module and simulated same error.

Component contains some functionality to compare path you are trying to get and paths from menu links. First, check if you have some menu links to main root of documents (no of your main subfolders is selected). If not, you have to add it or add links to every main subfolder you created.

I have 2 subfolders in my test site, but at start, there was only one menu link to one subfolder (called 'First'). This subfolder was correct, but link to second subfolder (called 'Second') was incorrect and ends with same error you post here. Problem was in comparing two paths, where first path pointed to Second subfolder (path you are trying to get), but second path pointed to First subfolder (path to First subfolder found by system in menu) and that is problem. System thinks that subfolder you are trying to show is not a part of JoomDOC component.

When you have menu links (they can be also hidden in menu which will be not used in frontend) to all subfolders or main root folder, it should work for you.

Next problem can be in SEF url. I had problem with JoomSEF remembering old Itemids to links and there was used incorrect Itemid for Second subfolder. So problem was definitely solved after Purge all SEF urls and generating new by new settings of menu.


I will try to discuss this problem with development, but this functionality is there probably for security reasons. I hope, my short info about problem will help you to solve it on your site.
ARTIO Support Team
Last Edit: 11 years, 2 months ago by maju.
The topic has been locked.

Re: Search problems - returning incorrect URLs 11 years, 2 months ago #36517

Hi there,.
That has helped me sort my problem, but it really is something that needs looking at.
I tried adding additional entries in hidden menu but it still caused problems as I do have two entries in the main menu.
The final workaround/fix was for me to remove all menu items that use the joomdoc link and then add the menu item as an external link to take me to the folder and the search then works.
There is definitely some odd inconsistent results there which want to be sorted, but at least my sites working again now.
Many thanks for your help!
Now if I could just sort the performance on displaying a directory of items in the folder I'd be a really happy bunny :)
Derek...
The topic has been locked.
  • Page:
  • 1
User Login Empty