Page 1 of 1

Update php. Forma version 2.4.2

Posted: Thu Oct 01, 2020 10:43 am
by Graeme59
Hi,
I have an issue upgrading my version of PHP, I am having to run my 2.42 version of Forma on 5.56. anything above that crashes the site.
My VPS host is requesting we upgrade to later versions.

See error.

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/dtascco/public_html/db/drivers/docebodb.mysql.php:28 Stack trace: #0 /home/dtascco/public_html/db/lib.docebodb.php(80): Mysql_DbConn->connect('localhost', 'dtascco_db', 'a[6r9KrB5fz}', 'dtascco_db') #1 /home/dtascco/public_html/appCore/models/PluginmanagerAdm.php(25): DbConn::getInstance() #2 /home/dtascco/public_html/lib/lib.pluginmanager.php(40): PluginmanagerAdm->__construct() #3 /home/dtascco/public_html/lib/lib.forma.php(39): PluginManager::get_all_plugins() #4 /home/dtascco/public_html/lib/lib.docebo.php(141): Forma::inc('lib/lib.utils.p...') #5 /home/dtascco/public_html/lib/lib.bootstrap.php(233): Docebo::inc('/home/dtascco/p...') #6 /home/dtascco/public_html/lib/lib.bootstrap.php(81): Boot::utility() #7 /home/dtascco/public_html/appCore/index.php(26): Boot::init(11) #8 {main} thrown in /home/dtascco/public_html/db/drivers/docebodb.mysql.php on line 28

Any assistance would be appreciated.

Re: Update php. Forma version 2.4.2

Posted: Thu Oct 01, 2020 11:00 am
by alfa24
in /config.php

change:

Code: Select all

$cfg['db_type'] = 'mysql';
to:

Code: Select all

$cfg['db_type'] = 'mysqli';

Re: Update php. Forma version 2.4.2

Posted: Thu Oct 01, 2020 11:06 am
by Graeme59
Brilliant! thank you fore your help