|
|||
|
Hi, I am following this tutorial to start in the zf-world:
Naneau » Setting up the Zend Framework but I always get this error Warning: require_once(Zend/Controller/Front.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/sword.com/zf/index.php on line 19 Fatal error: require_once() [function.require]: Failed opening required 'Zend/Controller/Front.php' (include_path='.:./application/library/:./application/models/') in /var/www/sword.com/zf/index.php on line 19 I am a newbie, what could I be doing wrong. I do not know if that is enough info for you guys, so let me know if you need more for helping me. Thanks |
|
|||
|
Hi,
i too and a novice in zend. I have been trying to familiar myself with this framework and have been using this site Akra’s DevNotes » Tutorial: Getting Started with the Zend Framework as my north star. However, i have had this error: Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster. Error 500 localhost 07/18/07 10:03:10 Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.1 and have no idea what am i doing wrong to prompt this error.Please do help. |
|
|||
|
I haven't read the tutorial you mentioned, but just by looking at the error messages you posted it appears that there is a problem with your include paths.
Does the file: /var/www/sword.com/zf/Zend/Controller/Front.php or /var/www/sword.com/zf/application/library/Zend/Controller/Front.php or /var/www/sword.com/zf/application/include/Zend/Controller/Front.php exist on your server, and if it does, does the web user (usually nobody, or www-data) have read access to it? |
|
||||
|
you have your include_path messed up
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
|
|||
|
ok I corrected the write permit ions on those folders and now I have a quetion
Why using this .htaccess file: Code:
RewriteEngine on RewriteBase .* index.php php_flag magic_quotes_gpc off php_flag register_globals off HTML Code:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, none@sword.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. and on my error.log : Code:
[Sun Jul 22 20:55:00 2007] [alert] [client 127.0.0.1] /var/www/sword.com/zf/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context And if I change my .htaccess to this Code:
RewriteEngine on RewriteBase /zf/ RewriteRule !\.(js|css|ico|gif|jpg|png)$ index.php What is the difference ? Thanks for your help guys!!!! ![]() Last edited by celord : 07-23-2007 at 03:43 AM. |
|
|||
|
The Zend_View_Exception error is telling you that there is a view script missing. Version 1.0 of ZF uses a helper call viewRenderer to automatically call view scripts based on the controller and action names. You can learn more about the viewRenderer here:
Zend Framework: Documentation I hope that helps. Troy |
![]() |
| Thread Tools | |
| Display Modes | |
|
|