【发布时间】:2018-03-28 16:26:13
【问题描述】:
我有 magebridge 的 magento 从 Joomla 进入该站点。 Magebridge.php 导致此错误:
注意:mysite/magebridge.php 第 54 行中的数组到字符串的转换
注意:mysite/magebridge.php 第 55 行中的数组到字符串转换
// Determine the Mage::app() arguments from the bridge
$app_value = (string) $magebridge->getMeta('app_value');
$app_type = (string) $magebridge->getMeta('app_type');
// Doublecheck certain values
if($app_type == 'website' && $app_value != 'admin') $app_value = (int)$app_value;
if($app_value == 'admin') $app_type = null;`
我该如何解决这个问题?有人有想法可以帮助我前进吗?谢谢!
【问题讨论】:
-
检查
$magebridge->getMeta('app_value')返回的内容。我想它是数组。 -
感谢您的快速回答,我对此很陌生,所以我不确定如何准确检查?
-
print_r,var_dump, 谷歌。