Page 1 of 2

Phoca Download Search Plugin not returning desired url

Posted: 01 Sep 2017, 20:28
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

Re: Phoca Download Search Plugin not returning desired url

Posted: 01 Sep 2017, 23:33
by christine
Hi,

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

Kind regards, Christine

Re: Phoca Download Search Plugin not returning desired url

Posted: 13 Sep 2017, 23:08
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

Re: Phoca Download Search Plugin not returning desired url

Posted: 14 Sep 2017, 13:27
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

Re: Phoca Download Search Plugin not returning desired url

Posted: 14 Sep 2017, 17:44
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

Re: Phoca Download Search Plugin not returning desired url

Posted: 19 Sep 2017, 23:49
by Jan
Hi, does the link to Phoca Download exist? I still see SEF links on the site (with .html suffix) :idea:

Jan

Re: Phoca Download Search Plugin not returning desired url

Posted: 20 Sep 2017, 23:10
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.

Re: Phoca Download Search Plugin not returning desired url

Posted: 21 Sep 2017, 13:38
by Jan
And did you create a menu link to Phoca Download (e.g. to Phoca Download categories view)?

Jan

Re: Phoca Download Search Plugin not returning desired url

Posted: 21 Sep 2017, 19:19
by cgniuses

Re: Phoca Download Search Plugin not returning desired url

Posted: 22 Sep 2017, 14:34
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