critical error related to capabilities.php

[ad_1]

Hi Tobias

I am running WP 6.3.1 and TablePress 2.1.8 on my test system.
Although all works fine, when I selected a preview of theme twenty twenty three (although I do not use this theme), I get the message:
There has been a critical error on this website. Please check your site admin email inbox for instructions.
The error log indicates:
PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /home/patgennz/public_html/wp2021/wp-includes/capabilities.php:877

The problem goes away if I deactivate tablepress.
Alternatively, another solution is to add the following code at the start of configurations.php:
include_once(ABSPATH . ‘wp-includes/pluggable.php’);

I should add that there are two other plugins which cause the same problem if activated,

The problem does not interfere with normal operation, but I thought you might be able to point me towards a longer-term solution.

Regards

Andy

 

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