• Resolved gratefuldiver

    (@gratefuldiver)


    Is WP 5.4.2 core stable on PHP 7.4? (Or, is PHP 7.4 stable enough for WP?)

    Just to preface, I haven’t dove into the weeds of the errors I get. I’m just curious at this point if its worth the time to debug/reinstall from scratch or if I should just wait till 7.3 gets closer to EOL.

    For my current install, upgrading to PHP 7.4 (from 7.3, disabling all plugins, changing default theme to the standard / non-customized twentytwenty) causes:

    Fatal error: Uncaught Error: Call to undefined function current_time() in /var/www/html/wp-includes/functions.php:2416 Stack trace: #0 /var/www/html/wp-includes/functions.php(2275): _wp_upload_dir() #1 /var/www/html/wp-includes/functions.php(2226): wp_upload_dir() #2 /var/www/html/wp-includes/post.php(503): wp_get_upload_dir() #3 /var/www/html/wp-includes/post.php(6044): get_attached_file() #4 /var/www/html/wp-includes/post.php(6095): wp_attachment_is() #5 /var/www/html/wp-includes/media.php(193): wp_attachment_is_image() #6 /var/www/html/wp-includes/media.php(954): image_downsize() #7 /var/www/html/wp-includes/media.php(1094): wp_get_attachment_image_src() #8 /var/www/html/wp-includes/general-template.php(872): wp_get_attachment_image_url() #9 /var/www/html/wp-includes/general-template.php(913): get_site_icon_url() #10 /var/www/html in /var/www/html/wp-includes/functions.php on line 2416

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • That error is odd, because the call to current_time is in the same file that the definition of current_time is in, and the definition is on line 71 and the call is on line 2416. I’m not sure how that happens.

    I would say pursue the debugging effort or reinstall. I have several 5.4.2 sites running on PHP 7.4 without any issues. None of them use default themes; they all use various premium themes and plugins.

    Thread Starter gratefuldiver

    (@gratefuldiver)

    Thank you, both.

    @joyously, I’m wondering if there isn’t some odd permissions issue going on. I’ve run into similar looking php errors with a fully custom coded site and moving from php5 to 7.

    Thanks again!

    We are getting:
    We are getting this exception:

    Fatal error: Uncaught Error: Call to undefined function current_time() in /var/www/html/wp-includes/functions.php:2428 Stack trace: #0 /var/www/html/wp-includes/functions.php(2287): _wp_upload_dir() #1 /var/www/html/wp-content/plugins/redux-framework/redux-core/class-redux-core.php(267): wp_upload_dir() #2 /var/www/html/wp-content/plugins/redux-framework/redux-core/class-redux-core.php(170): Redux_Core->init() #3 /var/www/html/wp-content/plugins/redux-framework/redux-core/framework.php(29): Redux_Core::instance() #4 /var/www/html/wp-content/plugins/redux-framework/class-redux-framework-plugin.php(158): require_once(‘/var/www/html/w…’) #5 /var/www/html/wp-content/plugins/redux-framework/class-redux-framework-plugin.php(95): Redux_Framework_Plugin->includes() #6 /var/www/html/wp-content/plugins/redux-framework/redux-framework.php(40): Redux_Framework_Plugin::instance() #7 /var/www/html/wp-settings.php(382): include_once(‘/var/www/html/w…’) #8 /var/www/html/wp-config.php(80): require_once(‘/var/www/html/w…’) #9 /var/ww in /var/www/html/wp-includes/functions.php on line 2428

    We are using php 7.4.

    Did you fix the issue? If so what is the word around?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Errors updating from PHP 7.3 to 7.4’ is closed to new replies.