Delete the locks files from var/locks or Delete var folder and create it again and give 777 premission
then tried again reindexing problem is solved.
Magento online tutorial, Magento tutorial, Magento Programming. Magento script online, Magento Script, Magento step by step tutorial, Magento tutorial for beginners, Magento tutorial for programmer.
//General Contact
echo
$name
= Mage::getStoreConfig(
'trans_email/ident_general/name'
);
//sender name
echo
$email
= Mage::getStoreConfig(
'trans_email/ident_general/email'
);
//sender email
//Sales Representative
echo
$name
= Mage::getStoreConfig(
'trans_email/ident_sales/name'
);
//sender name
echo
$email
= Mage::getStoreConfig(
'trans_email/ident_sales/email'
);
//sender email
//Customer Support
echo
$name
= Mage::getStoreConfig(
'trans_email/ident_support/name'
);
//sender name
echo
$email
= Mage::getStoreConfig(
'trans_email/ident_support/email'
);
//sender email
//Custom Email 1
echo
$name
= Mage::getStoreConfig(
'trans_email/ident_custom1/name'
);
//sender name
echo
$email
= Mage::getStoreConfig(
'trans_email/ident_custom1/email'
);
//sender email
//Custom Email 2
echo
$name
= Mage::getStoreConfig(
'trans_email/ident_custom2/name'
);
//sender name
echo
$email
= Mage::getStoreConfig(
'trans_email/ident_custom2/email'
);
//sender email
$this->_addButtonLabel = Mage::helper('yourmodulename')->__('Add Report');
Remove ‘Add New’ button
parent::__construct();
$this->_removeButton('add');
If you are after a quick method to get all the category ID’s for your categories for some Excel lookups (for new data imports), then this quick PHP script should help you out:
<?php define('MAGENTO', realpath(dirname(__FILE__))); require_once MAGENTO . '/app/Mage.php'; Mage::app(); $category = Mage::getModel ( 'catalog/category' ); $tree = $category->getTreeModel (); $tree->load (); $ids = $tree->getCollection ()->getAllIds (); if ($ids) { $file = "var/import/catwithid.csv"; file_put_contents($file,"catId, catNamen"); foreach ( $ids as $id ) { $string = $id . ', ' .$category->load($id)->getName() . "n"; file_put_contents($file,$string,FILE_APPEND); } }
?>