Fatal Error in `migrator.php` | WordPress.org

[ad_1]

While deploying the latest version of the plugin to production via github action, the following error temporarily took down one of our websites.

PHP Fatal error: Access level to UpdraftPlus_Addons_Migrator::$old_content must be protected (as in class UpdraftPlus_Migrator_Lite) or weaker in /public_html/wp-content/plugins/updraftplus/addons/migrator.php on line 15

I’ve fixed it manually for now by updating the $old_content variable to be protected instead of private

I’ve also updated $old_uploads and $uploads as a precaution during my hotfix, though I am not sure its needed.

Server is running PHP 7.4

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer