Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

After upgrade to 1.2.0.1 search on frontend doesn’t work
 
sanduleak
Jr. Member
 
Total Posts:  8
Joined:  2008-07-26
 

Hello,
I have upgraded my system from 1.1.3 to 1.2 and now the search on frontend doesn’t work.
There appears “Your search returns no results”
Why is that so?

 
Magento Community Magento Community
Magento Community
Magento Community
 
PCGamesPlus
Sr. Member
 
Avatar
Total Posts:  166
Joined:  2008-01-03
Sacramento, CA
 

Go in the backend and go to cache management and select rebuild seach index. That fixed it for me

 
Magento Community Magento Community
Magento Community
Magento Community
 
darryla
Member
 
Total Posts:  52
Joined:  2008-07-08
 

I get the following error:

Fatal error: Call to a member function setAttribute() on a non-object in /home/clinlco/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php on line 351

 
Magento Community Magento Community
Magento Community
Magento Community
 
b*rock
Member
 
Total Posts:  33
Joined:  2009-01-05
 

I get the same error as well…

Fatal error: Call to a member function setAttribute() on a non-object in /home/******/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php on line 351

Can this be fixed?  We wanted to launch our site next week!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Fibo
Sr. Member
 
Avatar
Total Posts:  107
Joined:  2008-06-25
Marseille, France
 

I had similar problem which vanished later when I enabled all cache functions.
Try this (your mileage may vary):
1 - Get a local copy of /var/cache/
2 - Delete all directories in the remote /var/cache
3 - admin / cache: enable all functions, update
Late edit: don’t do what I suggested with : including “layered navigation (beta)”
4 - rebuild search index

NOTE: of course, now you will need to manually force cache update after any chang you will do in your CSS or PHTML etc)

Also, be prepared to upload all files, like for a clean install (of course, you will need a complete backup, specially of /index.php, /.htaccess and, if any, /php.ini)

 
Magento Community Magento Community
Magento Community
Magento Community
 
b*rock
Member
 
Total Posts:  33
Joined:  2009-01-05
 

Hi Fibo,

Thanks for the response and help, I tried as you suggested but it didn’t work for me.  After reading through a few threads I found that this issue has been reported…

http://www.magentocommerce.com/bug-tracking/issue?issue=4631

In addition, I found a manual fix that worked for my site (note: depending on the number of attributes this could be tedious).

1. For each searchable attribute, under front end properties, change the “Use in quick search” drop down menu to No.

2. After this field has been disabled for all attributes, go to system, cache management, and rebuild the search index (this should now be possible and not give the .../Abstract.php on line 351 error).

3. Now go back and change the “Use in quick search” drop down menu to Yes for each attribute.

4. Rebuild the search index again (it should now work without error).

 
Magento Community Magento Community
Magento Community
Magento Community
 
thomasmore
Sr. Member
 
Total Posts:  80
Joined:  2008-10-21
 

After rebuilding the index I get this

Forbidden

You don’t have permission to access /report/ on this server.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lisali
Enthusiast
 
Avatar
Total Posts:  889
Joined:  2008-04-28
London, UK
 
PC Games Plus - 15 January 2009 07:37 AM
Go in the backend and go to cache management and select rebuild seach index. That fixed it for me[/quote

Thanks so much - that fixed it for me too!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top