WordPress and PHP 7 issues on Windows
-
Hi,
due to paypal security changes it seems that I would need to run wordpress with php 7 since php 7 comes with one of the latest versions of openssl bundled in.
After upgrading php from 5.4 to 7.0.4, wordpress would not run anymore with the following error:
[28-Mar-2016 12:40:36 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_error() in C:\inetpub\wwwroot\wp-content\plugins\revslider\inc_php\framework\db.class.php:29
Stack trace:
#0 C:\inetpub\wwwroot\wp-content\plugins\revslider\inc_php\framework\db.class.php(127): UniteDBRev->checkForErrors(‘fetch’)
#1 C:\inetpub\wwwroot\wp-content\plugins\revslider\inc_php\revslider_params.class.php(42): UniteDBRev->fetch(‘wp_revslider_se…’)
#2 C:\inetpub\wwwroot\wp-content\plugins\revslider\inc_php\revslider_operations.class.php(1275): RevSliderParams->getFieldFromDB(‘general’)
#3 C:\inetpub\wwwroot\wp-content\plugins\revslider\revslider_front.php(42): RevOperations::getGeneralSettingsValues()
#4 C:\inetpub\wwwroot\wp-includes\plugin.php(525): RevSliderFront->onAddScripts(”)
#5 C:\inetpub\wwwroot\wp-includes\script-loader.php(1046): do_action(‘wp_enqueue_scri…’)
#6 C:\inetpub\wwwroot\wp-includes\plugin.php(525): wp_enqueue_scripts(”)
#7 C:\inetpub\wwwroot\wp-includes\general-template.php(2434): do_action(‘wp_head’)
#8 C:\inetpub\wwwroot\wp in C:\inetpub\wwwroot\wp-content\plugins\revslider\inc_php\framework\db.class.php on line 29Apparently with PHP7 you need to use PDO or mysqli and neither of these are supported by WordPress ??
Can you please confirm that wordpress runs or not runs with php 7 on Windows ?
I am running on Windows Server on IIS.
I noticed on 5.4 I have the following extensions available:
extension=php_mysql.dll
extension=php_mysqli.dllOn 7.0.4 I only see:
extension=php_pdo_mysql.dll
extension=php_mysqli.dllAny advise would be appreciated.
thanks,
Moz
- The topic ‘WordPress and PHP 7 issues on Windows’ is closed to new replies.