I want to suggest to add more controls to Magmi_ReindexingPlugin class
In the function updateIndexes the row of code
$out = $this->_mdh->exec_cmd($cl,"--reindex $idx", $this->_mdh->getMagentoDir());
can return false meaning that the execution of shell_exec goes wrong.
In this case it would be useful to show a message.. so the user of this plugin can understand that this command has some problems...
So this code can control the shell_exec problems
$this->log("Reindexing $idx error","error");//added
$this->log($out,"info"); //original code
$tend=microtime(true); //original code
$this->log("done in ".round($tend-$tstart,2). " secs","info"); //original code
} //original code
In the attacments there is the file.
Log in to post a comment.