Zend Framework

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

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9.6
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Tool
  • Labels:
    None

Description

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 http://forums.zend.com/viewtopic.php?f=69&t=813&p=16266#p16266. 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.

Thanks.

Issue Links

Activity

Hide
Ralf Eggert added a comment -

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"

Show
Ralf Eggert added a comment - 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"
Hide
Ralph Schindler added a comment -

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

Show
Ralph Schindler added a comment - This was fixed as part of the 1.10.x release series.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: