Autor Subiect: Uncaught Error: Function name must be a string in /var/web/mage/app/code/core/Ma  (Citit de 18273 ori)

Admin

  • Administrator
  • guru
  • *****
  • Mesaje postate: 58
  • Karma: +0/-0
In caz ca incercati sa instalati magento si apare eroarea:
Uncaught Error: Function name must be a string in /var/web/mage/app/code/core/Mage/Core/Model/Layout.php:555\n

mergeti in home-ul mage si de acolo:
app\code\core\Mage\Core\Model\Layout.php:555 ...

Iar in layout.php
in loc de
$out .= $this->getBlock($callback[0])->$callback[1]();
puneti:
$out .= $this->getBlock($callback[0])->{$callback[1]}();

&& done!