Errors updating from PHP 7.3 to 7.4
-
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!
- The topic ‘Errors updating from PHP 7.3 to 7.4’ is closed to new replies.