Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-28-2008, 12:36 AM
Junior Member
 
Join Date: Apr 2008
Posts: 3
Unhappy Failed opening 'Zend.php' for inclusion

Hi,

I know this will be a dumb question, but I won't be the only one ot ask it, so.....

I'm relatively new to Zend Framework. I had it working fine (with MVC layout, htaccess set etc) and was chooffing through some examples when I happened to upload a sample file onto my server, and I suspect it may have changed something????

Now when I try to get going, all I get is this messgae

Warning: Zend_Loader::include_once(Zend.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in /home/lukechaf/public_html/library/Zend/Loader.php on line 83

Warning: Zend_Loader::include_once() [function.include]: Failed opening 'Zend.php' for inclusion (include_path='/home/lukechaf/public_html/application/controllers:/home/lukechaf/public_html/library') in /home/lukechaf/public_html/library/Zend/Loader.php on line 83

Fatal error: Class 'Zend' not found in /home/lukechaf/public_html/application/controllers/IndexController.php on line 2

Seems to be looking for Zend.php. But as far as I can tell there isn't a Zend.php in the framework library. Is there?

Any help is appreciated.

evildave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-28-2008, 01:54 AM
Junior Member
 
Join Date: Apr 2008
Posts: 3
Smile failed to open Zend.php

Fixed it!

Here's the answer for anyone else who does this.

I was trying out a tutorial, which was available at ibm.com, and obviously using an older version of the framework, they referred to Zend.php (which has been replaced by Zend Loader I believe).

In the file it had
'require once 'Zend.php'
which I correctly changed to
'require once 'Zend_Loader.php'

..but, i had overlooked the next line which tried to load the controller using Zend rather than the loader

ie Zend::loadClass('Zend_Controller_Action');

should have been Zend_Loader::loadClass('Zend_Controller_Action');

New to Zend, but many years of debugging in other areas, still frustrates the crap outta me!

Good luck all!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-29-2008, 05:35 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 100
Default

Yeah, out of date tutorials are kind of a problem with this framework. Try to use tutorials on the newer side.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:14 AM.