SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot matches's Avatar
    Join Date
    Aug 2006
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zend Framework Question

    Hello, I am working on a project using the Zend Framework. Currently everything is working fine locally. I am having issues though when I try to run on our staging server. I am getting the following error when I navigate to the site index.

    Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index)' in /var/opt/library/Zend/Controller/Dispatcher/Standard.php:241 Stack trace: #0 /var/opt/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /var/opt/html/index.php(32): Zend_Controller_Front->dispatch() #2 {main} thrown in /var/opt/library/Zend/Controller/Dispatcher/Standard.php on line 241
    It appears that's trying to tell me that I don't have a index controller, but I do and I have made sure that all paths are correct.

    Thanks for any help

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Please check that you have zend support enabled on your staging server and it has all the libraries configure. You can do this uploading a php file with the following code: -

    <?
    phpinfo();
    ?>

    Cheers,
    Maneet Puri
    Lexolution IT Services

  3. #3
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    heaven
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you post your IndexController file as well as your bootstrap file?
    Creativity knows no other restraint than the
    confines of a small mind.
    - Me
    Geekly Humor
    Oh baby! Check out the design patterns on that framework!

  4. #4
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    I think this error is dealt with at the start of the ZF screencast #3 on this page.


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
  •