Page 1 of 1

wordpress cant start with php.ini-development

PostPosted: 16. February 2018 21:25
by erickdeoliveiraleal
hello, i replaced php.ini content with the one from php.ini-development and after that wordpress cant start. I already fixed the problem here, but it would be nice if in next version it is fixed, I compared both content and it looks very different, maybe it is outdated.

The error is like: Uncaught Error: Call to undefined function mysql_connect()

Re: wordpress cant start with php.ini-development

PostPosted: 17. February 2018 12:05
by Nobbie
That cannot be fixed. mysql funcions have been removed by PHP 7.x, you must use mysqli oder PDO instead.

Re: wordpress cant start with php.ini-development

PostPosted: 22. February 2018 15:11
by erickdeoliveiraleal
I know it, and I changed it on my server. I'm asking to better new defaults, so anyone don't have to face the same problem in the future.

Re: wordpress cant start with php.ini-development

PostPosted: 22. February 2018 20:29
by Nobbie
erickdeoliveiraleal wrote:I know it, and I changed it on my server. I'm asking to better new defaults, so anyone don't have to face the same problem in the future.


The question remains, is it a problem of php.ini or of WordPress? Why does WordPress go for outdated mysql functions, which part of php.ini triggers WordPress to go for mysql functions and is it a problem of php.ini or of WordPress?? I dont know.