close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error: Call to undefined function mysql_pconnect() ....

Thread began 10/20/2015 12:52 am by Jamie | Last modified 1/04/2019 11:39 am by Ray Borduin | 1991 views | 6 replies |

Jamie

Fatal error: Call to undefined function mysql_pconnect() ....

Hi Ray

Have a site that, up until a couple of days ago, was working absolutely fine.

Now all the pages are blank. When I turn on error reporting I get

Fatal error: Call to undefined function mysql_pconnect() in /home/sewarrbt/public_html/Connections/PowerCMSConnection.php on line 25



I have checked the connections files, the database conenction details (am able to successfully connect to it using heidi sql)

Done some searching on the forum and cant find anything that specifically references this...

Not sure what I need to do to rectify this?

Cheers

Jamie

Sign in to reply to this post

Jamie

Got this sorted. Seems to have been a hosting issue,

Sign in to reply to this post

Ray BorduinWebAssist

Yes, it means the mysql module isn't enabled in the php.ini file.

Sign in to reply to this post
Did this help? Tips are appreciated...

rikaG_510

Hi, I am experiencing the same thing and this is my error code: Fatal error: Call to undefined function mysql_pconnect() in /big/dom/MyDomain/www/Connections/localhost.php on line 9.

I'm not understanding "the mysql module isn't enabled in the php.ini file" very well, does this mean adding some lines or fixing some lines on php.ini would fix the issue? Not the connection file's issue then?

Sign in to reply to this post

Ray BorduinWebAssist

You may be running php7, which doesn't support standard MySQL connections. You would have to use MySQLi or downgrade your php version to 6 or lower.

Sign in to reply to this post
Did this help? Tips are appreciated...

rikaG_510

Hi Ray, thank you for your reply.

I checked PHP versions and they are:
Mamp: 5.5.26
Terminal: 5.5.38
Browser: 5.6.29

None of them says that I use php7...

Still tho, I could start using MySQLi, what would be the fastest solution? Can I use MySQLi Server Behaviors on top of my shopping site with mysql?

Rika

Sign in to reply to this post

Ray BorduinWebAssist

You could just need to enable mysql in your php.ini file if you are using a version previous to php7.

You can use the MySQLi server behaviors. You would just have to create a MySQLi connection and then start using those server behaviors on your pages. DataBridge v2 includes functionality to update existing MySQL pages to MySQLi as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...