ZF-8588: Fatal error: Cannot redeclare class Zend_Loader in /path-to-zend/Loader.php on line 31

Issue Type: Bug Created: 2009-12-20T11:35:40.000+0000 Last Updated: 2010-09-07T07:12:13.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Michael Stelly (mjstelly) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: - ZF-8098



While following Rob Allen's "Getting Started with Zend Framework for version 1.9.0" tutorial, section "Setting up the Controller", he instructs the user to perform the following tasks:

zf create action add index zf create action edit index zf create action delete index

After inputting the first line, the CLI returns: Fatal error: Cannot redeclare class Zend_Loader in /path-to-zend/Loader.php on line 31

Scouring the online forums for dozens of hours, I finally stumbled upon this link…. Commenting out the include_path line in the DEFAULT applications.ini solved the problem.

The folks on IRC @ zftalk said that line should never be included in applications.ini. I suggest that Zend Tool be fixed so that it doesn't do that anymore.



Posted by Ralf Eggert (ralf) on 2010-05-29T05:46:09.000+0000

I think, this issue can be closed. The fatal error mentioned in the report is not thrown any more with ZF 1.10.5. The issue should only stay open if this line should not be added to the application.ini when creating a new project through Zend_Tool:

includePaths.library = APPLICATION_PATH "/../library"

Posted by Ralph Schindler (ralph) on 2010-09-07T07:12:10.000+0000

This was fixed as part of the 1.10.x release series.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.