Hi I have been looking for an answer to this all over however I cant find an answer that helps.
Whenever I try and reindex all of the data within the admin panel I seem to get this error:
So far I have tried changing the permissions of the 'media' folder to 777 and also tried dropping the core url rewrites table (I'm not sure if this is the correct name of the table but it's close).
Any idea what else I can do that might resolve this issue?
Best Answer
There can be numerous factors for such errors i.e.
Getting Rid Of Magento ReIndexing Errors
If even after trying multiple times Magento Indexer fails to respond or keep throwing same errors you can take the following steps resolve Magento ReIndexing errors.
Locate var/locks directory and remove all files under this directory. This will clear all the locks for re-indexing to take place again.
Now, login to your MysQSL/phpMyAdmin to run the following MySQL query (Ensure that your have taken full backup before committing this MySQL query)
Log back in to your Magento Admin panel and go to System tab > Index Management hit index again and you will notice no such errors will appear again. You can follow these same steps again if re-indexing stops in future to resolve Magento ReIndexing issues.
I would love to hear your experiences and questions about Magento Indexing, ReIndexing and indexing errors. Please leave me a comment and let me know.
The var/locks/ (note the "s") directory is created whenever you start an indexing process. Magento writes out a lock file to this directory. Removing the lock files may resolve issues with reindexing.
Like in previous Magento versions, in Magento 1.9 you can find this directory here:
[your Magento install dir]/var/
If the directory isn't there, Magento hasn't created it. If this is the case, then you should look for other solutions for fixing the reindexing issue.
Maybe your var directory doesn't have the right permissions. Magento needs sufficient permissions to be able to create the var/locks directory and write out the lock files. Try setting permissions for var to (at least) 755.
If this doesn't help, maybe you can reindex via SSH or try restarting your webserver.