Zf configuration error... Solution

Source: Internet
Author: User
Zf configuration error ...... Zf configuration error: Fatalerror: Uncaughtexception 'zend _ Controller_Dispatcher_Exception 'withmessage' Invalidcontrollerspecified (index. php) 'inD zf configuration error ......
Zf configuration error:


Fatal error: Uncaught exception 'zend _ Controller_Dispatcher_Exception 'with message 'invalid controller specified (index. php) 'In D: \ wamp \ Apache2.2 \ htdocs \ zendframework \ library \ Zend \ Controller \ Dispatcher \ Standard. php: 242 Stack trace: #0 D: \ wamp \ Apache2.2 \ htdocs \ zendframework \ library \ Zend \ Controller \ Front. php (954): dispatch-> dispatch (Object (Zend_Controller_Request_Http), Object (Zend_Controller_Response_Http) #1 D: \ wamp \ Apache2.2 \ htdocs \ zendframework \ index. php (29): Zend_Controller_Front-> dispatch () #2 {main} thrown in D: \ wamp \ Apache2.2 \ htdocs \ zendframework \ library \ Zend \ Controller \ Dispatcher \ Standard. php on line 242


In standard. php, row 242:
Require_once 'zend/Loader. php ';

/** Zend_Controller_Dispatcher_Abstract */
Require_once 'zend/Controller/Dispatcher/Abstract. php ';

Warning: require_once (Zend/Loader. php) [function. require-once]: failed to open stream: No such file or directory in D: \ wamp \ Apache2.2 \ htdocs \ zendframework \ library \ Zend \ Controller \ Dispatcher \ Standard. php on line 24

Fatal error: require_once () [function. require]: Failed opening required 'zend/Loader. php '(include_path = '.; c: \ php5 \ pear ') in D: \ wamp \ Apache2.2 \ htdocs \ zendframework \ library \ Zend \ Controller \ Dispatcher \ Standard. php on line 24

------ Solution --------------------
Zendframework configuration method
1: Introduce the path of your zendframework package in the include_path file of php. ini, for example, include_path = ".; D: \ xampp \ php \ PEAR; d: wamp \ library"
2: enable the LoadModule rewrite_module modules/mod_rewrite.so module in the apache configuration file.
3: restart the service.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.