cannot edit tables after Update – need help

[ad_1]

Hi @cakru!

Thanks for your post and sorry for the trouble!

That’s strange. It appears that TablePress being more strict about accepted parameter types has uncovered an issue in another plugin or your theme here.

To verify this assumption, can you please try again after temporarily deactivating all other plugins and after switching to a WordPress default theme like Twenty Twenty-Three? That way, we can find what’s causing this.

Regards,
Tobias

Thread Starter
cakru

(@cakru)

Sorry. Here is there complete Error Message:

Error Details
=============
An error of type E_ERROR was caused in line 111 of the file /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-content/plugins/tablepress/views/view-edit.php. Error message: Uncaught TypeError: TablePress_Edit_View::add_screen_options_output(): Argument #1 ($screen_settings) must be of type string, null given, called in /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-includes/class-wp-hook.php on line 310 and defined in /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-content/plugins/tablepress/views/view-edit.php:111
Stack trace:
#0 /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-includes/class-wp-hook.php(310): TablePress_Edit_View->add_screen_options_output(NULL, Object(WP_Screen))
#1 /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)
#2 /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-admin/includes/class-wp-screen.php(1019): apply_filters(‘screen_settings’, ”, Object(WP_Screen))
#3 /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-admin/includes/class-wp-screen.php(959): WP_Screen->show_screen_options()
#4 /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-admin/admin-header.php(281): WP_Screen->render_screen_meta()
#5 /is/htdocs/wp1147550_OBRIRRXVJW/www/Schlumbergera/wp-admin/admin.php(239): require_once(‘/is/htdocs/wp11…’)
#6 {main}
 thrown

Right now I try to replace the new one with the old plug in 2.1.8

Thread Starter
cakru

(@cakru)

Changing the theme does not change anything

Thread Starter
cakru

(@cakru)

Hi Tobias,

after I disable teachpress I was able to edit the tables again. It seems that I cannot use the plugin for the publication page 🙁

We have another problem which appears sometimes. After importing a table (replace existing table) we get critical errors. In that case I have to copy the damaged table. Import again to the fresh copied table. In the last step I delete the old damaged table. Do you have any ideas?

Kind regards

Cay

Hi,

thanks for the more detailed error message. So all this resolves around the screen_settings plugin filter hook in WordPress. This gets passed a string (and is documented as such), and a string is what TablePress expects.

Now, my assumption is that another plugin on your site is also using this filter hook, but maybe leaves the filter hook handler function prematurely, e.g. by using a plain return; statement in PHP.

It’s good to hear that you can already rule out that your theme does this. The next step would be to check the plugins, by temporarily deactivating them one by one, until the error disappears.

Going back to TablePress 2.1.8 will work, but it will only be a short-term solution, as it simply only continues hiding an error and bug in some plugin.

Now, if you want, I can also take a deeper look. For that, please get in touch via the email address from the bottom of https://tablepress.org/pricing/

Regards,
Tobias

Thread Starter
cakru

(@cakru)

Dear Tobias,

thanks for your reply. It was obviously the TeachPress Plug In which causes the trouble.

I´ll inform the owner about paid plans.

Kind regards

Cay

Hi,

nice find! Yes, I can confirm that TeachPress causes the mentioned issue.

In particular, the problem is this line: https://github.com/winkm89/teachPress/blob/d29b5a89cee2470291cbb6715dc0e8588cbb6886/teachpress.php#L204

Instead of return;, this line should be return $current;.

I will let the TeachPress developers know about this. In the meantime, you could already make that change in your copy of the plugin.

Best wishes,
Tobias

P.S.: In case you haven’t, please rate TablePress in the plugin directory. Thanks!

Thread Starter
cakru

(@cakru)

Dear Tobias,

i rate the plug in and in between I also inform in the teachpress forum the people about this issue.

Everything is working fine now and I hope that I can use one day teachpress again.

I just have to find out the problem with importing into an existing table. (critical error) Sometimes it happens (2-3 times a year) that a table is damaged and I have to replace it completely by a new one.

kind regards

Cay

 

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