Jump to content

Recommended Posts

I am getting this type of error when I connect to my database . Please can any body help.

 

Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Error parsing /home/narjisfatima/zend.systechcs.com/application/configs/application.ini on line 13 ' in /home/narjisfatima/Zend_framework/library/Zend/Config/Ini.php:182 Stack trace: #0 /home/narjisfatima/Zend_framework/library/Zend/Config/Ini.php(202): Zend_Config_Ini->_parseIniFile('/home/narjisfat...') #1 /home/narjisfatima/Zend_framework/library/Zend/Config/Ini.php(126): Zend_Config_Ini->_loadIniFile('/home/narjisfat...') #2 /home/narjisfatima/Zend_framework/library/Zend/Application.php(386): Zend_Config_Ini->__construct('/home/narjisfat...', 'development') #3 /home/narjisfatima/Zend_framework/library/Zend/Application.php(85): Zend_Application->_loadConfig('/home/narjisfat...') #4 /home/narjisfatima/zend.systechcs.com/public/index.php(24): Zend_Application->__construct('development', '/home/narjisfat...') #5 {main} thrown in /home/narjisfatima/Zend_framework/library/Zend/Config/Ini.php on line 182

 

 

 

Here is my application.ini

[production]

phpSettings.display_startup_errors = 0

phpSettings.display_errors = 0

includePaths.library =

 

APPLICATION_PATH "/../library"

bootstrap.path = APPLICATION_PATH "/Bootstrap.php"

bootstrap.class

 

= "Bootstrap"

appnamespace = "Application"

resources.frontController.controllerDirectory =

 

APPLICATION_PATH "/controllers"

resources.frontController.params.displayExceptions = 0

 

 

resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"

resources.layout.layoutPath

 

= APPLICATION_PATH "/layouts/scripts/"resources.view.doctype ="XHTML1_STRICT"

 

resources.db.adapter = mysqli

 

resources.db.params.host = localhost

resources.db.params.username = vffgg

 

resources.db.params.password = xxxxxx

 

resources.db.params.dbname = ibbhhb

resources.db.isDefaultTableAdapter = true

[staging : production]

 

 

 

[testing : production]

phpSettings.display_startup_errors = 1

phpSettings.display_errors = 1

 

 

phpSettings.date.timezone = "Asia/Karachi"[development : production]

phpSettings.display_startup_errors

 

= 1

phpSettings.display_errors = 1

resources.frontController.params.displayExceptions = 1

 

Link to comment
https://forums.phpfreaks.com/topic/255413-error-unable-to-detect/
Share on other sites

wrap your config settings in speec marks:


resources.db.adapter =" mysqli"

resources.db.params.host = "localhost"
resources.db.params.username = "vffgg"

resources.db.params.password = "xxxxxx"

resources.db.params.dbname ="ibbhhb"
resources.db.isDefaultTableAdapter = "true"

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.