Magento 1.3 на PHP 5.4- Проблеми и случки

magentoИдеята е по- стара версия на Magento да работи на php 5.4 :). От тук идват и следните проблеми 🙂 :

Грешка: Fatal error: Method Varien_Object::__tostring() cannot take arguments in /lib/Varien/Object.php

1) /lib/Varien/Object.php (Line 484)
заменете __toString
със __invoke

2) /app/code/core/Mage/Core/Controller/Request/Http.php (Line 274)
заменете split
със explode

3) app/code/core/Mage/Admin/Model/User.php (Line 374)
заменете split
със explode

Грешка:Can’t retrieve entity config: core/store_group

Решение: Заменяме файловете в папката lib/Varien/SimpleXML с новите файлове от последната версия на Magento

Грешка:
PHP Fatal error: Call-time pass-by-reference has been removed in …

Решение/Пример:

//Грешно
myFunc(&$arg);               # Deprecated pass-by-reference argument
function myFunc($arg) { }

//Правилно
myFunc($var);                # pass-by-value argument
function myFunc(&$arg) { }

Категория: ,

Logged in as {{omniform_current_user_display_name}}. Edit your profile. Log out? Required fields are marked *

Your email address will not be published. Required fields are marked *

Comments are closed.

You must be logged in to post a comment.