SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict dr_dumb99's Avatar
    Join Date
    Sep 2004
    Location
    Pakistan
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Zend Framework 500 Error

    Hi!
    Iam using WAMP. Following are created alias details :

    Code:
    Alias /zf/ "D:\main\test\zf\/" 
    <Directory "D:\main\test\zf\/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
            Order allow,deny
        Allow from all
    </Directory>
    Following is .HTACCESS code :

    Code:
    RewriteBase /zf
    
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
    
    RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
    My default index controller is accessed easily by following url:
    http://localhost/zf/


    My Account controller file name is AccountController.php and it has following code:

    Code:
    class AccountController extends Zend_Controller_Action{
        
        public function init(){
    
        }
    
        public function indexAction(){
            
        }
    }

    but when I try to access another created controller named as account, then I find 500 error.
    http://localhost/zf/account





    In WAMP's apache access log (not error log), I found following entries :

    127.0.0.1 - - [21/Oct/2009:15:09:19 +0200] "GET /zf/account HTTP/1.1" 500 378
    127.0.0.1 - - [21/Oct/2009:15:24:40 +0200] "GET /zf/account HTTP/1.1" 500 378
    127.0.0.1 - - [21/Oct/2009:15:27:33 +0200] "GET /zf/account HTTP/1.1" 500 378


    Can some one guide me how to solve this problem.

    Thanks in advance

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    What do your PHP error logs state?
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Addict dr_dumb99's Avatar
    Join Date
    Sep 2004
    Location
    Pakistan
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is no entry in WAMP's php error log.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •