Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[Solved] Search module bug - not working when index page is displayed
(1 viewing) (1) Guest
Userguide, Report bugs, New Ideas...
  • Page:
  • 1
  • 2

TOPIC: [Solved] Search module bug - not working when index page is displayed

[Solved] Search module bug - not working when index page is displayed 9 years, 9 months ago #19751

  • rymy
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 39
  • Karma: 0
There is a bug in "search module" of SJNews template. Searching is not working on index page (main page) of the website, but works fine when you use it when some article is displayed. Please check it out.
Precisely: Put some word to search field, push search button and there is no effect, just main page is reloading.

To encounter this problem just follow these steps:

Go to menu position: "Search"
Administration panel -> Menus -> About Joomla -> Using Joomla -> Components -> Search Component -> Search
Change "Parent Item" from "Search Component" to "Using Joomla" and then try to search something using search module from index page of the website -> It's not working - just main page is reloading after search button is pushed.

Search module is not working EVEN when I put menu position "Search" to its original position (Parent Item = Search Component)! Now I have broken search module on my website. Please help!

Additional info:
Address bar of my browser after put "someword" for search looks like:
127.0.0.1/test/index.php/component/search/?searchword=someword&searchphrase=all&Itemid=435

Problem is this "Itemid=435"! After cut it out, searching is doing well. What is Itemid=435?
Last Edit: 9 years, 9 months ago by rymy.
The topic has been locked.

Re: Search module bug - not working when index page is displayed 9 years, 9 months ago #19752

  • SA Thuy
The topic has been locked.

Re: Search module bug - not working when index page is displayed 9 years, 9 months ago #19756

  • rymy
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 39
  • Karma: 0
I did what You suggested but it doesn't help.

I did:

/* $fields .= '<input type="hidden" name="Itemid" value="' . JFactory::getApplication()->input->get('Itemid', '0', 'int') . '" />'; */

in "your_site\modules\mod_finder\helper.php"

One thing is strange. When I did:
component manager -> smart search -> click Index button
progress bar stops on 6%. What can be wrong?

More info:
It seems like
file: "your_site\modules\mod_finder\helper.php"
doesn't corrersponds with my search module, because I can do anything with this file including delete it and nohing happen, of course my problem still exist.
Last Edit: 9 years, 9 months ago by rymy. Reason: more info
The topic has been locked.

Re: Search module bug - not working when index page is displayed 9 years, 9 months ago #19766

  • SA Thuy
Dear rymy,

After you changed the file, please delete all cache of Joomla.

Thanks
The topic has been locked.

Re: Search module bug - not working when index page is displayed 9 years, 9 months ago #19774

  • rymy
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 39
  • Karma: 0
Cache is cleaned and problem still exist.

In fresh installation of SJNews, after putting word "test" for search, browser address bar looks like:
127.0.0.1/mywebpage2/index.php/using-joomla/components/search-component/search?searchword=test&searchphrase=all


On my site in this case, browser address bar looks like:
127.0.0.1/mywebpage/index.php/component/search/?searchword=test&searchphrase=all&Itemid=435

Wondering about "Itemid=435"? Where it came from?

Thank You for your patience.
The topic has been locked.

Re: Search module bug - not working when index page is displayed 9 years, 9 months ago #19805

  • SA Thuy
Dear rymy,

It seems you haven't edited the file your_site\modules\mod_finder\helper.php yet or your site still run the cache. I tested on localhost, comment the code line and it works well:

if ($needId)
		{
			$fields .= '<input type="hidden" name="Itemid" value="' . JFactory::getApplication()->input->get('Itemid', '0', 'int') . '" />';
		}

=>Edit to:

if ($needId)
		{
			/* $fields .= '<input type="hidden" name="Itemid" value="' . JFactory::getApplication()->input->get('Itemid', '0', 'int') . '" />'; */
		}


Thanks
Last Edit: 9 years, 9 months ago by .
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.22 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes