• Resolved cakru

    (@cakru)


    Hi, there is a huge Problem with the tables on our page. After the latest Update I cannot open the tables for editing. I only see the dashboard with an empty frame where the table should be.

    Some stuff from word fence:

    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))

    System:

    WordPress version 6.3.2
    Active theme: ColorMag (version 3.0.7)
    Current plugin: TablePress (version 2.2)
    PHP version 8.1.22-he.0

    kind regards Cay

    • This topic was modified 1 year ago by cakru.
    • This topic was modified 1 year ago by cakru.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for that! I already opened a pull request in the TeachPress code repository, which the developer can use to fix the issue in the TeachPress code. I left a link to that in your forums post as well.

    Note that the change is very easy, so that you could already do it now as well, and then continue using both TeachPress and TablePress without issues.

    As for the import: This is hard to tell, but when it happens again, it would be great if you could maybe check the server error log files for more information on that critical error (it could e.g. be the PHP memory consumption or something like that, if it only happens once in a while).

    Best wishes,
    Tobias

    vimoni

    (@vimoni)

    <font style=”vertical-align: inherit;”><font style=”vertical-align: inherit;”>ho lo stesso problema. ho disattivato tutti i plug in ma vedo solo la possibilità di “vedi shorcode” “copia” “esporta” “elimina”</font></font>. non riesco più a<font style=”vertical-align: inherit;”><font style=”vertical-align: inherit;”> modificare</font></font> e lavorare sulle tabelle

    • This reply was modified 1 year ago by vimoni.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi @vimoni,

    if these issues really persist after deactivating all plugins, please get in touch directly, via the email at the bottom of https://tablepress.org/pricing/ so that we can take a look at this. Thanks!

    Regards,
    Tobias

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘cannot edit tables after Update – need help’ is closed to new replies.