Penyebab dan cara mengatasi call to undefined function mysql

Support » Localhost Installs » PHPhường Fatal error: Uncaught Error: Hotline khổng lồ undefined function mysql_connect() in


*
Joy

(

nguyenminhchau.com itself supports PHP 7.2 (at least I assume you are using a fairly recent version of WP). Make sure your environment has either MySquốc lộ 5.6+ or MariaDB 10+.


*
Dion

(

Please kiểm tra your wp-config.php file for the following line:

define('WP_USE_EXT_MYSQL', true);

If you find it, delete the line. Your problem should be fixed.

Bạn đang xem: Penyebab dan cara mengatasi call to undefined function mysql

If you still have sầu the problem, then you incorrectly installed PHP 7.2.x. The error you reported is not possible if you are using PHP. 7.2.x và the above sầu line isn’t in wp-config.php.


Thread Starter
*
sbsmain

(

Installing Mariadb 10.3 fixed this.

Xem thêm: Bảng Giá Quảng Cáo Google Adwords ), Bảng Giá Quảng Cáo Google Adwords

I can now view my webpage in localhost & access it from other computers on my domain, but the graphics don’t disply on the other computers. The problem is my path is pointed lớn localhost. So, I’m currently trying lớn login khổng lồ the nguyenminhchau.com dashboard, but it doesn’t give sầu me that option. Any ideas?


Thread Starter
*
sbsmain

(

*
Francesco

(

For what is worth, I encountered the same error & the issue was solved by enabling the nd_mysqli extension in the PHP 7 configuration, & disabling the mysqli one.


Thanks Francesco! I did as you said & the error was solved (enabled nd_mysqli, the mysqli was already disabled).I was using PHPhường. 7 since months, so I don’t know why the error happened (today) in the first place?


Glad it helped!

I encountered the error when I upgraded to PHPhường 7 while having the W3 Total Cabịt “Database cache” enabled.

Xem thêm: Hướng Dẫn Tìm Ký Tự Trong Chuỗi Php Mới Nhất 2020, Hàm Tìm Kiếm Chuỗi Strpos() Trong Php

Maybe you’ve played around with W3TC today?

See for reference: https://nguyenminhchau.com/support/topic/database-cache-causing-503-errors-when-upgrading-to-php-7/


Thanks Francesco! This fixed the issue for me as well. I had a caching plugin installed when updating WP.


Hi

I’m creating my first site và came upon the error below.i had created a first page on my domain và i was stuông xã somewhere unable to lớn edit it, so i deleted all my files on that và started a new trang web on the same domain name.The problem is, the new website is not accessible. i have sầu not downloaded anything else apart from nguyenminhchau.com so i dont think the error i have sầu is related to the php tải về described above

I’m seeing lots of delete.wpm…stuff in here and i’m not sure how lớn proceed

The error is:

PHP Fatal error: Uncaught Error: hotline lớn undefined function get_transient() in /home/upku9mvvkvf0/public_html/deleteme.wpmfgw.php:16Stachồng trace:#0 main thrown in /home/upku9mvvkvf0/public_html/deleteme.wpmfgw.php on line 16<14-Apr-2019 04:29:43 UTC> PHP Fatal error: Uncaught Error: Hotline lớn undefined function get_transient() in /home/upku9mvvkvf0/public_html/deleteme.wpkq1x.php:16Stack trace:#0 main thrown in /home/upku9mvvkvf0/public_html/deleteme.wpkq1x.php on line 16<14-Apr-2019 04:29:43 UTC> PHP Fatal error: Uncaught Error: gọi lớn undefined function get_transient() in /home/upku9mvvkvf0/public_html/deleteme.wppsmo.php:16Staông chồng trace:#0 main thrown in /home/upku9mvvkvf0/public_html/deleteme.wppsmo.php on line 16

please assist me to solve this.Kind Regards

UPDATEi just realized that i signed up to lớn linux hosting with cpanel (on godaddy)….while my pc is on windowsoh well!!!!let me now try khổng lồ resolve sầu the new problem :/


Chuyên mục: Lỗi Kỹ Thuật