Runtime errors activating maintenance mode
-
When I activate maintenance mode in LightStart (running on Local), QueryMonitor reports the following error. However, the maintenance mode is active.
Uncaught Error: Call to a member function get_author_permastruct() on null
in C:\Users\ravib\Local Sites\ravibdinky\app\public\wp-includes\author-template.php on line 368Call stack:
get_author_posts_url(1)
wp-content/plugins/wp-optimize/cache/class-wpo-cache-rules.php:262WPO_Cache_Rules::purge_archive_pages_on_post_update(4727)
wp-includes/class-wp-hook.php:326WP_Hook::apply_filters(NULL, array)
wp-includes/class-wp-hook.php:348WP_Hook::do_action(array)
wp-includes/plugin.php:517do_action('save_post', 4727, WP_Post, true)
wp-includes/post.php:5284wp_publish_post(WP_Post)
wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php:105WP_Maintenance_Mode::__construct()
wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php:171WP_Maintenance_Mode::get_instance('')
wp-includes/class-wp-hook.php:324WP_Hook::apply_filters(NULL, array)
wp-includes/class-wp-hook.php:348WP_Hook::do_action(array)
wp-includes/plugin.php:517do_action('plugins_loaded')
wp-settings.php:578require_once('C:\Users\ravib\Local...blic\wp-settings.php')
wp-config.php:103require_once('C:\Users\ravib\Local...public\wp-config.php')
wp-load.php:50require_once('C:\Users\ravib\Local...p\public\wp-load.php')
wp-admin/admin.php:35
When I preview the Local site in incognito mode, the dedicated maintenance mode page (which uses a template with no header and no footer) displays, but shows the following PHP errors in the header and footer areas:
Header:
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ‘;’ in Entity, line: 204 in C:\Users\ravib\Local Sites\ravibdinky\app\public\wp-content\plugins\wp-maintenance-mode\includes\classes\wp-maintenance-mode.php on line 1122
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ‘;’ in Entity, line: 205 in C:\Users\ravib\Local Sites\ravibdinky\app\public\wp-content\plugins\wp-maintenance-mode\includes\classes\wp-maintenance-mode.php on line 1122
Footer:
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ‘;’ in Entity, line: 69 in C:\Users\ravib\Local Sites\ravibdinky\app\public\wp-content\plugins\wp-maintenance-mode\includes\classes\wp-maintenance-mode.php on line 1140
Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ‘;’ in Entity, line: 70 in C:\Users\ravib\Local Sites\ravibdinky\app\public\wp-content\plugins\wp-maintenance-mode\includes\classes\wp-maintenance-mode.php on line 1140
Deactivating maintenance mode doesn’t cause an error and makes the site display normally.
The topic ‘Runtime errors activating maintenance mode’ is closed to new replies.