• Resolved chandraanupama

    (@chandraanupama)


    Hey Tobias,

    I have about 23 tables on tablepress which I am trying to display in my wordpress blog.

    However when I try to display the tables using the tablepress block on the gutenberg editor, THIS is the error I get –

    Error loading block:
    There has been a critical error on this website.
    Learn more about troubleshooting WordPress.

    I could not find anything in the documentation or the forums. I cannot change the editor because gutenberg brings a lot of features.

    I also don’t want to change to another table plugin. Please help.

    Regards,
    Anu.

    P.S. Everything runs smoothly as soon as I remove the tablepress block from the gutenberg editor.

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Where exactly are you seeing this error? Can you maybe take a screenshot of that (you can create one by pressing “Print” on the keyboard on Windows, or Cmd+Shift+3 on a Mac, and then upload it to a service like https://imgur.com/) and post the link here?

    Also, please try to find out more about this error. For that, please set the WP_DEBUG constant to true in your site’s “wp-config.php” file, see https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug , or maybe check the server’s error log file (if you don’t have access to that your self, you web host company’s support team should have access).

    Regards,
    Tobias

    Thread Starter chandraanupama

    (@chandraanupama)

    Thanks for the prompt reply Tobias. I am simply blown away by how much you care!

    Here is the link to the screenshot of my error.
    https://imgur.com/gallery/wonnfGx

    After the error the page goes down.
    Kindly note – only the particular blog page goes down, not the entire site.

    Also as you suggested I turned on the wp_debug to “true”, here is what it spat out:

    Warning: Undefined array key “rows” in /www/vitsupp_987/public/wp-content/plugins/tablepress/classes/class-render.php on line 255

    Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /www/vitsupp_987/public/wp-content/plugins/tablepress/classes/class-render.php:255 Stack trace: #0 /www/
    vitsupp_987/public/wp-content/plugins/tablepress/classes/class-render.php(255): array_keys(NULL, 0, true) #1 /www/vitsupp_987/public/wp-content/plugins/tablepress/classes/class-render.php(136): TablePress_Render->_prepare_render_data() #2 /www/vitsupp_987/public/wp-content/plugins/tablepress/controllers/controller-frontend.php(666): TablePress_Render->get_output() #3 /www/vitsupp_987/public/wp-content/plugins/tablepress/controllers/controller-frontend.php(985): TablePress_Frontend_Controller->shortcode_table(Array) #4 /www/vitsupp_987/public/wp-includes/class-wp-block.php(258): TablePress_Frontend_Controller->table_block_render_callback(Array, ‘\n[table id=15 /…’, Object(WP_Block)) #5 /www/vitsupp_987/public/wp-includes/blocks.php(1051): WP_Block->render() #6 /www/vitsupp_987/public/wp-includes/blocks.php(1089): render_block(Array) #7 /www/vitsupp_987/public/wp-includes/class-wp-hook.php(308): do_blocks(‘<!– wp:paragra…’) #8 /www/vitsupp_987/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<!– wp:paragra…’, Array) #9 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php(611): apply_filters(‘the_content’, ‘<!– wp:paragra…’) #10 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(415): WP_REST_Revisions_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request)) #11 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php(308): WP_REST_Autosaves_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request)) #12 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Autosaves_Controller->get_items(Object(WP_REST_Request)) #13 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/wp/v2/posts/(?…’, Array, NULL) #14 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-includes/rest-api.php(535): WP_REST_Server->dispatch(Object(WP_REST_Request)) #15 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-includes/rest-api.php(2889): rest_do_request(Object(WP_REST_Request)) #16 [internal function]: rest_preload_api_request(Array, ‘/wp/v2/posts/17…’) #17 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-includes/block-editor.php(634): array_reduce(Array, ‘rest_preload_ap…’, Array) #18 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context)) #19 /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-admin/post.php(187): require(‘/www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_98…’) #20 {main} thrown in /www/<meta http-equiv=”content-type” content=”text/html; charset=utf-8″></meta>vitsupp_987/public/wp-content/plugins/tablepress/classes/class-render.php on line 255

    That’s all I got. Do let me know if there is anything else I can do at my end. Any suggestions are welcome.

    Thanks a lot!
    Anu.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks a lot for that, this is really helpful! From what I can see, the table is somehow not fully saved to the database. In particular, the “visibility” information is missing. To fix this, please try going to the “Edit” screen of this table, and if rows/columns appear with a red background color use the “Unhide” button to again show them (the red color indicates that they are hidden). Then, save changes and try again.

    Regards,
    Tobias

    Thread Starter chandraanupama

    (@chandraanupama)

    Dear Tobias,

    Its fixed! Everything working as smooth as butter!
    Absolutely fantastic.

    Love tablepress. It is without doubt the No. 1 tables plugin – as it should be!

    Thanks for fixing my problem so promptly.

    warm regards,
    Anupama.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Tables Fail to Load on Gutenberg Editor’ is closed to new replies.