Jump to content

Question

Posted

Hi Guys,

 

This morning i started getting this error. i havent done any updates yet and i was using version 3.4.0

 

Call to Model::makeDSN with invalid parameters, required array('driver'=>,'database'=>,'host'=>) on line 226 in /chroot/home/icadmin/inodecloud.com/html/manage/lib/model.php 

Printing Stack Trace:
#0 /chroot/home/icadmin/inodecloud.com/html/manage/lib/model.php(256): Model::makeDSN(NULL)
#1 /chroot/home/icadmin/inodecloud.com/html/manage/lib/model.php(57): Model->makeConnection(NULL)
#2 /chroot/home/icadmin/inodecloud.com/html/manage/app/app_model.php(0): Model->__construct()
#3 /chroot/home/icadmin/inodecloud.com/html/manage/app/models/currencies.php(17): AppModel->__construct()
#4 [internal function]: Currencies->__construct()
#5 [internal function]: ReflectionClass->newInstance()
#6 /chroot/home/icadmin/inodecloud.com/html/manage/lib/loader.php(73): call_user_func_array(Array, Array)
#7 /chroot/home/icadmin/inodecloud.com/html/manage/helpers/currency_format/currency_format.php(33): Loader::loadModels(Object(CurrencyFormat), Array)
#8 [internal function]: CurrencyFormat->__construct()
#9 [internal function]: ReflectionClass->newInstance()
#10 /chroot/home/icadmin/inodecloud.com/html/manage/lib/loader.php(211): call_user_func_array(Array, Array)
#11 /chroot/home/icadmin/inodecloud.com/html/manage/lib/loader.php(95): Loader::loadAndInitialize(Object(Main), 'helper', Array)
#12 /chroot/home/icadmin/inodecloud.com/html/manage/lib/controller.php(127): Loader::loadHelpers(Object(Main), Array)
#13 /chroot/home/icadmin/inodecloud.com/html/manage/lib/controller.php(99): Controller->helpers(Array)
#14 /chroot/home/icadmin/inodecloud.com/html/manage/app/app_controller.php(0): Controller->__construct()
#15 /chroot/home/icadmin/inodecloud.com/html/manage/lib/dispatcher.php(85): AppController->__construct('main', 'index', false)
#16 /chroot/home/icadmin/inodecloud.com/html/manage/index.php(21): Dispatcher::dispatch('/')
#17 {main}

8 answers to this question

Recommended Posts

  • 0
Posted

I tried visiting your site and I was faced with the error bellow a lot of times, but on refreshing it sometimes went away. http://inodecloud.com/products/customhostingsolutions/

 

Is your server running ok?

Warning: require(/chroot/home/icadmin/inodecloud.com/html/wp-includes/post-formats.php): failed to open stream: No such file or directory in /chroot/home/icadmin/inodecloud.com/html/wp-settings.php on line 129 Fatal error: require(): Failed opening required '/chroot/home/icadmin/inodecloud.com/html/wp-includes/post-formats.php' (include_path='.:/usr/share/pear:/usr/share/php') in /chroot/home/icadmin/inodecloud.com/html/wp-settings.php on line 129
  • 0
Posted

Its pointing to something in this code.

 

/**
* Build a DSN string using the given array of parameters
* @param array $db An array of parameters
* @return string The DSN string
* @throws Exception Thrown when $db contains invalid parameters
*/
public static function makeDSN($db) {
if (!isset($db['driver']) || !isset($db['database']) || !isset($db['host']))
Line 226: throw new Exception("Call to Model::makeDSN with invalid parameters, required array('driver'=>,'database'=>,'host'=>)");
 
return $db['driver'] . ":dbname=" . $db['database'] . ";host=" . $db['host'] . (isset($db['port']) ? ";port=" . $db['port'] : "");
}

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...