close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Upgrade from php 5.6 to 7.0 or 7.1 gives error

Thread began 1/04/2017 9:51 am by Stuward | Last modified 1/04/2017 6:56 pm by Ray Borduin | 114 views | 3 replies |

Stuward

Upgrade from php 5.6 to 7.0 or 7.1 gives error

I have a working site with php 5.6 hosted on Digital Ocean. When I switch the php version from current 5.6 to 7.0 or 7.1, I get the next error:
Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in /srv/users/serverpilot/apps/user1/public/Connections/PowerCMSConnection.php:66 Stack trace: #0 /srv/users/serverpilot/apps/tpca/public/index.php(2): require_once() #1 {main} thrown in /srv/users/serverpilot/app/suser1/public/Connections/PowerCMSConnection.php on line 66

Code in this file on PowerCMSConnection.php line 66 is:
$PowerCMSConnection = mysql_pconnect($hostname_PowerCMSConnection, $username_PowerCMSConnection, $password_PowerCMSConnection) or trigger_error(mysql_error(),E_USER_ERROR);

How to solve this?

Sign in to reply to this post

Ray BorduinWebAssist

You cannot upgrade to php7 unless you update all of your pages to use MySQLi Server Behaviors to replace the standard mySQL. I'd suggest not doing that for existing web sites.

Sign in to reply to this post

Stuward

Ok Ray, thanks for your the reply and advice. Will stay with php5.6.

Stuward

Sign in to reply to this post

Ray BorduinWebAssist

You could upgrade to php 6, but php 7 dropped standard MySQL support in favor of MySQLi. (previous versions support both)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...