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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2007, 11:38 PM
Junior Member
 
Join Date: Jul 2007
Posts: 3
Default Help with new in ZF

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-18-2007, 02:17 AM
Junior Member
 
Join Date: Jul 2007
Posts: 5
Default In need of help too

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-18-2007, 06:42 AM
Junior Member
 
Join Date: Jul 2007
Location: Brisbane, Australia
Posts: 9
Default

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?
__________________
Brenton Alker
Brisbane, Australia

http://blog.tekerson.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-20-2007, 11:56 PM
SpotSec's Avatar
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

you have your include_path messed up
__________________
Zym Framework - A Zend Framework extension library w/ demo app

SpotSec Blog:
http://spotsec.com/blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-23-2007, 03:13 AM
Junior Member
 
Join Date: Jul 2007
Posts: 3
Default

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
on my http://127.0.0.1/zf this error:

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
Everithing works jusf fine!!!!


What is the difference ?

Thanks for your help guys!!!!

Last edited by celord : 07-23-2007 at 03:43 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-23-2007, 03:28 AM
Junior Member
 
Join Date: Jul 2007
Posts: 3
Send a message via MSN to tlmarker
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-23-2007, 03:44 AM
Junior Member
 
Join Date: Jul 2007
Posts: 3
Default

Thank you tlmarker !!
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 06:06 AM.