Update php. Forma version 2.4.2

Install and configure FormaLMS and DoceboCE
Post Reply
Graeme59
FormaLms User
Posts: 46
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Update php. Forma version 2.4.2

Post 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.
Attachments
10-01-2020 direction training.png

alfa24
Senior Boarder
Posts: 1006
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Update php. Forma version 2.4.2

Post by alfa24 »

in /config.php

change:

Code: Select all

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

Code: Select all

$cfg['db_type'] = 'mysqli';
I'm Jasmines, the One. If you need, you can contact me.

Graeme59
FormaLms User
Posts: 46
Joined: Thu May 05, 2016 6:53 am
Version: forma.lms 2.0
Location: UK
Contact:

Re: Update php. Forma version 2.4.2

Post by Graeme59 »

Brilliant! thank you fore your help

Post Reply