Support » Localhost Installs » PHP Fatal error: Uncaught Error: call to undefined function mysql_connect() in
darkedeneurope.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 MySQL 5.6+ or MariaDB 10+.
Please kiểm tra your wp-config.php tệp tin for the following line:
If you find it, delete the line. Your problem should be fixed.
Bạn đang xem: Call to undefined function mysql_connect() php 5
If you still have 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 & the above line isn’t in wp-config.php.
Installing Mariadb 10.3 fixed this.
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 khổng lồ localhost. So, I’m currently trying to login khổng lồ the darkedeneurope.com dashboard, but it doesn’t give me that option. Any ideas?
For what is worth, I encountered the same error và the issue was solved by enabling the nd_mysqli extension in the PHP 7 configuration, and 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 PHP 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 PHP 7 while having the W3 Total Cache “Database cache” enabled.
Maybe you’ve played around with W3TC today?
See for reference: https://darkedeneurope.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.
I’m creating my first site và came upon the error below.i had created a first page on my domain & i was stuck somewhere unable to edit it, so i deleted all my files on that và started a new website on the same domain.The problem is, the new website is not accessible. I have not downloaded anything else apart from darkedeneurope.com so i dont think the error i have is related to lớn the php download described above
I’m seeing lots of delete.wpm…stuff in here and i’m not sure how khổng lồ proceed
The error is:
PHP Fatal error: Uncaught Error: call to undefined function get_transient() in /home/upku9mvvkvf0/public_html/deleteme.wpmfgw.php:16Stack 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: gọi to 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 to undefined function get_transient() in /home/upku9mvvkvf0/public_html/deleteme.wppsmo.php:16Stack 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 lớn linux hosting with cpanel (on godaddy)….while my pc is on windowsoh well!!!!let me now try to resolve the new problem :/