Phoca Download Search Plugin not returning desired url

Phoca Download - download manager
cgniuses
Phoca Member
Phoca Member
Posts: 13
Joined: 04 May 2017, 21:20

Phoca Download Search Plugin not returning desired url

Post by cgniuses »

Joomla!: 3.7.5
Phoca Download: 3.1.2
PHP: 7.0.22
Phoca Download Search Plugin: 3.1.0

I installed the latest search plugin with the latest phoca download component and when I search for any of my files, instead of returning the menu URL in the search, it is pulling the component link instead. Is there any solution to stopping this behavior from happening?

instead of the below result
myurl/public-policy/resolutions/category/4-2017-ratified-policy-resolutions.html

I am getting the below
myurl/component/phocadownload/category/4-2017-ratified-policy-resolutions.html

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Phoca Download Search Plugin not returning desired url

Post by christine »

Hi,

for your information: https://www.phoca.cz/documents/16-jooml ... -in-joomla

Kind regards, Christine
cgniuses
Phoca Member
Phoca Member
Posts: 13
Joined: 04 May 2017, 21:20

Re: Phoca Download Search Plugin not returning desired url

Post by cgniuses »

Hi,

There is already a menu item created for the downloads and categories and the result is that only in search results, it uses the component link instead of the SEF link.

Please see link to the download files
http://new.nbcsl.org/public-policy/resolutions.html

Search any present download file ie RESOLUTION BED-17-10

SEF link to file is
http://new.nbcsl.org/public-policy/reso ... 17-10.html

Search result URL is
http://new.nbcsl.org/component/phocadow ... 17-10.html
Clicking this link returns the error below

Code: Select all

0 - Call to a member function get() on null
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Search Plugin not returning desired url

Post by Jan »

Hi, which version of Phoca Download and which version of Phoca Download serch plugin do you use? Is there a link to some page of your site where the search module is displayed?

What happens when you disable the suffix .html in SEF options?

Jan
If you find Phoca extensions useful, please support the project
cgniuses
Phoca Member
Phoca Member
Posts: 13
Joined: 04 May 2017, 21:20

Re: Phoca Download Search Plugin not returning desired url

Post by cgniuses »

My install specifications are as follows
Joomla!: 3.7.5
Phoca Download: 3.1.2
PHP: 7.0.22
Phoca Download Search Plugin: 3.1.0

The search is available on all pages of the site but you can specifically go to the page below and there is a search field there also
http://new.nbcsl.org/public-policy/resolutions.html

I have disabled each SEF option one at a time and the result is the same and even if I disable SEF alltogether, clicking the search result still gives me an error from the search results
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Search Plugin not returning desired url

Post by Jan »

Hi, does the link to Phoca Download exist? I still see SEF links on the site (with .html suffix) :idea:

Jan
If you find Phoca extensions useful, please support the project
cgniuses
Phoca Member
Phoca Member
Posts: 13
Joined: 04 May 2017, 21:20

Re: Phoca Download Search Plugin not returning desired url

Post by cgniuses »

Hi, I enabled SEF links because I was getting the same results when I disabled SEF links. Whether the option is on or off, I am getting the same result when I click the search result link.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Search Plugin not returning desired url

Post by Jan »

And did you create a menu link to Phoca Download (e.g. to Phoca Download categories view)?

Jan
If you find Phoca extensions useful, please support the project
cgniuses
Phoca Member
Phoca Member
Posts: 13
Joined: 04 May 2017, 21:20

Re: Phoca Download Search Plugin not returning desired url

Post by cgniuses »

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Search Plugin not returning desired url

Post by Jan »

Do you use some specific SEF solution? Can I see the URLs without SEF enabled? Maybe there is some system plugin or specific extension or specific SEF which changes the links :idea: Really hard to say :-(

The search plugin just get the SEF link by the component - by the menu link :idea:

Maybe you can test what happens when you create a menu link to categories view of Phoca Download - if the link will be accepted by the search plugin :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply