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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2008, 08:17 AM
Junior Member
 
Join Date: May 2008
Posts: 2
Default Class 'Zend_Exception' not found

Hi,

I am trying out the sample provided in Zend Framework. However I had these errors:

"
Fatal error: Class 'Zend_Exception' not found in C:\dev\phpdev\Zend\Search\Exception.php on line 34

Fatal error: Class 'Zend_Search_Exception' not found in C:\dev\ZendFramework-1.5.1\library\Zend\Search\Lucene\Exception.php on line 34
"


I have also tried 2 other search samples, but I got the same class 'Zend_Search_Exception' errors.

Can anyone tell me how I can solve the errors?

Thanks!


Cinto
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-12-2008, 06:24 PM
Junior Member
 
Join Date: May 2008
Posts: 2
Default

I had this same problem and in my case it was because I removed that class from the file tree -- you'll need to make sure that Zend/Exception.php exists and that it is included at some point --

Code:
include('Zend/Exception.php');
providing that dir is in your include_path
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-12-2008, 07:22 PM
Junior Member
 
Join Date: Jan 2008
Posts: 16
Default

Zend_Loader should include that class if it's not loaded yet.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-15-2008, 12:56 AM
Junior Member
 
Join Date: May 2008
Posts: 2
Default

Hi,

Thanks for your replies.

I have added the path of Zend Framework inside PHP.ini file as follows:

Code:
include_path = ".;C:\dev\ZendFramework-1.5.1\library"
I have copied the whole zend framework and did not remove any files, and I did not change any links inside the scripts. 'Zend/Exception.php' is included inside Zend/Search/Exception.php.

I am using require_once. Will changing that to Zend_Loader helps to solve the errors?

Do I need to add any other scripts or codes to clear the errors?


Cinto
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 09:12 PM.