Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. 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
  2.  
  3. <?php
  4. // Define path to application directory
  5. defined('APPLICATION_PATH')
  6. || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
  7.  
  8. // Define application environment
  9. defined('APPLICATION_ENV')
  10. || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
  11.  
  12. // Ensure library/ is on include_path
  13. set_include_path(implode(PATH_SEPARATOR, array(
  14. realpath(APPLICATION_PATH . '../library'),
  15. get_include_path(),
  16. )));
  17.  
  18. /** Zend_Application */
  19. require_once 'Zend/Application.php';
  20.  
  21. // Create application, bootstrap, and run
  22. $application = new Zend_Application(
  23. APPLICATION_ENV,
  24. APPLICATION_PATH . '/configs/application.ini'
  25. );
  26. $application->bootstrap()
  27. ->run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement