Jump to content
ListMessenger Support Forum
  • Announcements

    • matt.simpson

      ListMessenger Support Forum Updated   08/08/2017

      We just wanted to mention that we have just upgraded our support forum software to the latest and greatest version of Invision Community. This will translate to a significantly better experience for users and hopefully a huge reduction in the amount of forum spam that pops up. Forum spam is poison to a support forum such as this because it robs support administrators of time which would have other wise went to providing important responses.
Guest Paul

Installation With Php 7.0.21

Recommended Posts

Guest Paul   
Guest Paul

The installation of ListMessenger Light on my server fails with "PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect()"

 

I'm using PHP Version 7.0.21 - the documentation says

 

mysql_connectOpen a connection to a MySQL Server

 

Warning

 

This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used.

 

The Listmessenger Installer says

 

Requirements Check

  • PHP Version: PHP 7.0.21 is supported.
  • PHP Function: ini_get() is enabled.
  • PHP Function: ini_set() is enabled.

So I'm a bit confused. Is PHP 7.0.21 supported, or do I need a version of PHP which provides mysql_connect()?

Share this post


Link to post
Share on other sites
Guest Paul   
Guest Paul

Found the solution in http://forum.listmessenger.com/topic/7752-php-upgrade-to-56/- thank you to whoever posted that.

 

For a new installation, when running setup.php during setup, in the "Database Adapter" field, just choose "MySQLi" instead of "MySQL". It's that simple!

 

If you have an existing installation, just edit includes/config.inc.php and change the second line from

 

define('DATABASE_TYPE', 'mysql')

 

to

 

define('DATABASE_TYPE', 'mysqli')

 

 

 

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum 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...

×