Unable to create new database in Plesk: PHP Notice: Undefined variable dbType

Refers to:

  • Plesk 12.0 for Linux

Created:

2016-11-16 12:54:08 UTC

Modified:

2016-12-21 19:29:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to create new database in Plesk: PHP Notice: Undefined variable dbType

Symptoms

Unable to create new database in Plesk:

        Internal error.
PHP Notice: Undefined variable: dbType
Line: 119
File: /opt/psa/admin/plib/Smb/Form/Final/Database.php
Stack Trace:
#0 Smb_Exception_Syntax::handleError(8, Undefined variable: dbType, /opt/psa/admin/plib/Smb/Form/Final/Database.php, 119, Array ([data] => Array ([general] => Array ([name] => kongirov_testdb,[dbServersList] => {"mysql":{"1":"Local MySQL server (default for MySQL)"}},[dbDefaultServersList] => {"mysql":1}),[user] => Array ([createUser] => 1,[name] => odintestusr,[forgery_protection_token] => 5ce0b3aea27260914298478b222feded,[password] => XXX,[passwordConfirmation] => XXX),[user-password-generate-button] => ,[user-password-show-button] => ,[hidden] => ,[forgery_protection_token] => 5ce0b3aea27260914298478b222feded),[userNameElement] => Smb_Form_Element_Text Object ([helper] => formText,[] => 1,[] => 1,[] => ,[] => Array ([Element] => Array ([decorator] => Element,[options] => ),[ViewScript] => Array ([decorator] => ViewScript,[options] => Array ([viewScript] => partials/database-user-name-element.phtml,[serverControl] => CommonPanel_Form_Element_SimpleText Object ([helper] => formSimpleText,[] => 1,[] => 1,[] => ,[] => Array ([SimpleText] => Array ([decorator] => SimpleText,[options] => )),[] => ,[] => ,[] => Array (),[] => Array (),[] => ; ,[] => Array (),[] => ,[] => ,[] => ,[] => ,[] => Database server,[] => Array ([DECORATOR] => Zend_Loader_PluginLoader Object ([] => Array (),[] => Array (),[] => Array ([Zend_Form_Decorator_] => Array ([0] => Zend/Form/Decorator/),[CommonPanel_Form_Decorator_] => Array ([0] => CommonPanel/Form/Decorator/),[Smb_Form_Decorator_] => Array ([0] => Smb/Form/Decorator/)),[] => )),[] => Array (),[] => dbServer,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Array (),[] => Array (),[] => Local MySQL server (default for MySQL),[] => ,[] => ,[data-value] => 1)))),[] => ,[] => ,[] => Array (),[] => Array (),[] => ; ,[] => Array (),[] => ,[] => ,[] => ,[] => ,[] => Database user name,[] => Array ([DECORATOR] => Zend_Loader_PluginLoader Object ([] => Array (),[] => Array (),[] => Array ([Zend_Form_Decorator_] => Array ([0] => Zend/Form/Decorator/),[CommonPanel_Form_Decorator_] => Array ([0] => CommonPanel/Form/Decorator/),[Smb_Form_Decorator_] => Array ([0] => Smb/Form/Decorator/)),[] => ),[VALIDATE] => Zend_Loader_PluginLoader Object ([] => Array (),[] => Array (),[] => Array ([Zend_Validate_] => Array ([0] => Zend/Validate/),[CommonPanel_Validate_] => Array ([0] => CommonPanel/Validate/),[Smb_Validate_] => Array ([0] => Smb/Validate/)),[] => )),[] => Array (),[] => name,[] => ,[] => 1,[] => ,[] => ,[] => ,[] => Array (),[] => Array (),[] => ,[] => ,[] => ,[prefix] => ,[autocomplete] => off,[class] => input-text))) called at [/opt/psa/admin/plib/Smb/Form/Final/Database.php:119]
#1 Smb_Form_Final_Database->isValid(Array ([general] => Array ([name] => kongirov_testdb,[dbServersList] => {"mysql":{"1":"Local MySQL server (default for MySQL)"}},[dbDefaultServersList] => {"mysql":1}),[user] => Array ([createUser] => 1,[name] => odintestusr,[forgery_protection_token] => 5ce0b3aea27260914298478b222feded,[password] => XXX,[passwordConfirmation] => XXX),[user-password-generate-button] => ,[user-password-show-button] => ,[hidden] => ,[forgery_protection_token] => 5ce0b3aea27260914298478b222feded)) called at [/opt/psa/admin/application/smb/controllers/DatabaseController.php:185]
#2 Smb_DatabaseController->createAction() called at [/opt/psa/admin/externals/Zend/Controller/Action.php:516]
#3 Zend_Controller_Action->dispatch(createAction) called at [/opt/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php:295]
#4 Zend_Controller_Dispatcher_Standard->dispatch(Zend_Controller_Request_Http Object ([] => Array ([0] => _GET,[1] => _POST),[] => /smb/database/create,[] => ,[] => ,[] => /smb/database/create,[] => Array ([module] => smb,[controller] => database,[action] => create),[] => ,[] => Array (),[] => 1,[] => smb,[] => module,[] => database,[] => controller,[] => create,[] => action), Zend_Controller_Response_Http Object ([] => Array (),[] => Array (),[] => Array (),[] => Array (),[] => 200,[] => ,[] => ,[headersSentThrowsException] => 1)) called at [/opt/psa/admin/externals/Zend/Controller/Front.php:954]
#5 Zend_Controller_Front->dispatch() called at [/opt/psa/admin/plib/Application/Web.php:38]
#6 Plesk\\Application_Web->run() called at [/opt/psa/admin/htdocs/application.php:15]

The same error can be found in /usr/local/psa/admin/logs/panel.log .

Cause

This issue has been considered as software issue PPPM-3174 that is fixed in Plesk 12.5.

Display_errors value is set to On in /usr/local/psa/admin/conf/php.ini .

Workaround

Set Display_errors value to Off in /usr/local/psa/admin/conf/php.ini .

Display_errors is a feature to support the development and should never be used on production systems.

http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors

Have more questions? Submit a request
Please sign in to leave a comment.