HostOnNet Blog

registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0

Looking for Linux Server Admin or WordPress Expert? We can help.

On a new Zend Framework project created with Zend Studio, accessing the public folder, git following error

Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /usr/local/zend/share/ZendFramework/library/Zend/Loader.php on line 207

This was fixed by editing Initializer.php

Find

require_once "Zend/Loader.php"; 

Replace with

require_once 'Zend/Loader/Autoloader.php';

Find

Zend_Loader::registerAutoload();

Replace with

$loader = Zend_Loader_Autoloader::getInstance();
$loader->registerNamespace('App_');

Posted in PHP

3 Responses to registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.