magento更新索引报错的解决办法

 magento更新索引时,如果报错:

“PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 140 bytes) in /var/www/vhosts/mywebsite.com/httpdocs/app/code/core/Mage/Index/Model/Mysql4/Process/Collection.php on line 32”

可以通过以下办法解决:

把php.ini 和 .htaccess 文件中的max_memory_limit及memory_limit的值设置为256M或者512M,然后执行命令:

sudo php /298sd/magento/shell/indexer.php — reindexall

/298sd/magento为你的magento安装根目录。

标签


Warning: error_log(/www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/#log/log-0211.txt): failed to open stream: No such file or directory in /www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/spider.class.php on line 2900