I am trying to run the magmi product import plugin in a Magento application that runs on an aws ec2 instance that has NGINX and HHVM on it. When I try to run the magmi product import application on Magento, I get an error below the server in my hhvm error log .
/var/log/hhvm/error.log
\nCatchable fatal error: Object of class Magmi_ProductImportEngine could not be converted to string in /var/www/qa-hoi/magmi-importer/inc/magmi_mixin.php on line 9
This is magmi_mixin.php file
<?php
class Magmi_Mixin
{
protected $_callers;
public function bind($caller)
{
$this->_callers[]=$caller;
$this->_callers=array_unique($this->_callers);
}
public function unbind($caller)
{
$ks=array_keys($this->_callers,$caller);
if(count($ks)>0)
{
foreach($ks as $k)
{
unset($this->_callers[$k]);
}
}
}
public function __call($data,$arg)
{
if(substr($data,0,8)=="_caller_")
{
$data=substr($data,8);
}
for($i=0;$i<count($this->_callers);$i++)
{
if(method_exists($this->_callers[$i],$data))
{
return call_user_func_array(array($this->_callers[$i],$data), $arg);
}
else
{
die("Invalid Method Call: $data - Not found in Caller");
}
}
}
}
Any idea how I should solve this? Should I update the php.ini file?
Which can cause a fatal error. This does not happen on my local Apache machine.
UPDATE
I installed HHVM on my local machine and ran xdebug. It seems that the object $callerin the magmi file contains several arrays that cannot be evaluated. See screenshot below:
