Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'parse_ini_file(/configs/application.ini): failed to open stream: No such file or directory' in /home/pricebishop/public_html/bishopdealer/library/Zend/Config/Ini.php:182 Stack trace: #0 /home/pricebishop/public_html/bishopdealer/library/Zend/Config/Ini.php(202): Zend_Config_Ini->_parseIniFile('/configs/applic...') #1 /home/pricebishop/public_html/bishopdealer/library/Zend/Config/Ini.php(126): Zend_Config_Ini->_loadIniFile('/configs/applic...') #2 /home/pricebishop/public_html/bishopdealer/library/Zend/Application.php(386): Zend_Config_Ini->__construct('/configs/applic...', 'production') #3 /home/pricebishop/public_html/bishopdealer/library/Zend/Application.php(85): Zend_Application->_loadConfig('/configs/applic...') #4 /home/pricebishop/public_html/bishopdealer/public/index.php(23): Zend_Application->__construct('production', '/configs/applic...') #5 {main} thrown in /home/pricebishop/public_html/bishopdealer/library/Zend/Config/Ini.php on line 182
- <?php
- // Define path to application directory
- defined('APPLICATION_PATH')
- || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
- // Define application environment
- defined('APPLICATION_ENV')
- || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
- // Ensure library/ is on include_path
- set_include_path(implode(PATH_SEPARATOR, array(
- realpath(APPLICATION_PATH . '../library'),
- get_include_path(),
- )));
- /** Zend_Application */
- require_once 'Zend/Application.php';
- // Create application, bootstrap, and run
- $application = new Zend_Application(
- APPLICATION_ENV,
- APPLICATION_PATH . '/configs/application.ini'
- );
- $application->bootstrap()
- ->run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement