Error after updating PHP & MariaDB: Warning: Undefined variable

[ad_1]

I’ve just updated my server to PHP version 8.1 and MariaDB version 10.6

After doing so, the Maintenance plugin works fine on the home page of my website but on any of the other pages it displays the following:

Warning: Undefined variable $curr_id in (mysiteurl)/public_html/wp-content/plugins/maintenance/includes/functions.php on line 969

Please help!

 

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