• Resolved mandy@nepeta

    (@mandynepeta)


    I am getting critical errors when running Widget Options with The Events Calendar Shortcode & Block plugin. the error occurs both on the front of the site and in the editor. The page just contains the block from the Shortcode & Block plugin and I am not using any Widget Options on the page.

    The error I am getting is:

    [13-May-2024 13:29:08 UTC] PHP Fatal error:  Uncaught Error: Object of class stdClass could not be converted to string in xxx\wp-content\plugins\the-events-calendar-shortcode\block\init.php:140
    Stack trace:
    #0 xxx\wp-includes\class-wp-block.php(463): ecs_render_block(Array, '', Object(WP_Block))
    #1 xxx\wp-includes\blocks.php(1705): WP_Block->render()
    #2 xxx\wp-includes\blocks.php(1743): render_block(Array)
    #3 xxx\wp-includes\class-wp-hook.php(324): do_blocks('<!-- wp:paragra...')
    #4 xxx\wp-includes\plugin.php(205): WP_Hook->apply_filters('<!-- wp:paragra...', Array)
    #5 xxx\wp-includes\rest-api\endpoints\class-wp-rest-posts-controller.php(1865): apply_filters('the_content', '<!-- wp:paragra...')
    #6 xxx\wp-includes\rest-api\endpoints\class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request))
    #7 xxx\wp-includes\rest-api\class-wp-rest-server.php(1230): WP_REST_Posts_Controller->get_item(Object(WP_REST_Request))
    #8 xxx\wp-includes\rest-api\class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/pages/(?...', Array, NULL)
    #9 xxx\wp-includes\rest-api.php(555): WP_REST_Server->dispatch(Object(WP_REST_Request))
    #10 xxx\wp-includes\rest-api.php(2922): rest_do_request(Object(WP_REST_Request))
    #11 [internal function]: rest_preload_api_request(Array, '/wp/v2/pages/30...')
    #12 xxx\wp-includes\block-editor.php(753): array_reduce(Array, 'rest_preload_ap...', Array)
    #13 xxx\wp-admin\edit-form-blocks.php(77): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))
    #14 xxx\wp-admin\post.php(187): require('C:\\xampp\\htdocs...')
    #15 {main}
      thrown in xxx\wp-content\plugins\the-events-calendar-shortcode\block\init.php on line 140

    The site is running WP 6.5.3. I have reverted to Twenty-Twenty-One theme and have only 3 plugins active:

    • The Events Calendar Version 6.4.0.1 by The Events Calendar
    • The Events Calendar Shortcode & Block Version 2.8.5 by Event Calendar Newsletter
    • Widget Options Version 4.0.6 by Widget Options Team

    The problem occurs both when I have Classic Widgets option enabled and Gutenberg disabled, and the other way round.

    Could you please have a look?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mej de Castro

    (@mej)

    Hi @mandynepeta ,

    Thank you for letting us know about this issue. We are now reviewing the conflict with The Events Calendar Shortcode & Block and will get back to you.

    Regards,
    Mej, from Widget Options team

    Plugin Author Mej de Castro

    (@mej)

    Hi @mandynepeta ,

    We tried to install both Widget Options and The Events Calendar Shortcode & Block plugins but failed to replicate the issue.

    I would suggest coordinating this case to the The Events Calendar Shortcode & Block plugin author.

    Thank you,
    Mej

    Thread Starter mandy@nepeta

    (@mandynepeta)

    Hi @mej

    I have caused the error on a site with Twenty-Twenty-One active and The Events Calendar, The Events Calendar Shortcode and Block and Wisget Options active.

    Running Widget Options V4.0.6.1, Add a page and then Add the Events Calendar Shortcode and Block Block. Try to save and the save fails. (Actually, I think the save may have worked but the post-save render fails)If you do the same with version 4.0.1 active, the page will save and display successfully.

    If you already have a post set up and try to access it with version 4.0.6.1, there is a critical error on the Edit while the page renders but the calendar does not show.

    Note that it is the block that causes the problem: the shortcode works OK.

    I hope this helps.

    Mandy

    Plugin Author Mej de Castro

    (@mej)

    Hi dear user @mandynepeta,

    I am sorry to hear that you still ran into an issue. May we request that you provide screenshots of the issues? This will help us to troubleshoot further.

    You may use this website https://snipboard.io/ to create a link for your screenshots and you can paste it here on the thread.

    Thanks and I am waiting for your update.

    Regards,
    Mej, from Widget Options team

    Thread Starter mandy@nepeta

    (@mandynepeta)

    Hi there

    Reverting to V4.0.1 the edit page looks like https://snipboard.io/MwujFr.jpg and the front of site https://snipboard.io/MV1WYs.jpg.

    When I update to V4.0.6.1and try to edit the age I get the critical error message:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress.

    Looking at the front of the site, I get https://snipboard.io/vXJPmu.jpg

    The error message sent by email is:

    WordPress version 6.5.4
    
    Active theme: Twenty Twenty-One (version 2.2)
    
    Current plugin: The Events Calendar Shortcode & Block (version 2.8.5)
    
    PHP version 8.1.28
    
    Error Details
    
    =============
    
    An error of type E_ERROR was caused in line 140 of the file /home/.../wp-content/plugins/the-events-calendar-shortcode/block/init.php. Error message: Uncaught Error: Object of class stdClass could not be converted to string in /home/.../wp-content/plugins/the-events-calendar-shortcode/block/init.php:140
    
    Stack trace:
    
    #0 /home/.../wp-includes/class-wp-block.php(463): ecs_render_block(Array, '', Object(WP_Block))
    
    #1 /home/.../wp-includes/blocks.php(1705): WP_Block->render()
    
    #2 /home/.../wp-includes/blocks.php(1743): render_block(Array)
    
    #3 /home/.../wp-includes/class-wp-hook.php(324): do_blocks('
    
    I did get in touch with the other developer and they advised me to use the shortcode (which does work but not a simple for the client).
    Plugin Author Mej de Castro

    (@mej)

    Hi @mandynepeta,

    Thanks for sharing us screenshots of the issues. We have tried replicating the issues on our end and it seems that it is indeed giving an error when using the plugin with Widget Options. We have now relayed this to our development team and we will let you know once we have found a patch.

    We apologize for the inconvenience and thank you for your patience.

    Regards,
    Mej, from Widget Options team

    Plugin Author Mej de Castro

    (@mej)

    Hi @mandynepeta,

    I hope you’re doing well. We have now released a new version of Widget Options that includes a patch with the conflict with The Events Calendar shortcode & Block plugin.

    We recommend updating to this latest version to resolve the issue. If you need any assistance or have questions, please don’t hesitate to contact us.

    Best regards,
    Mej, from the Widget Options Team

    Thread Starter mandy@nepeta

    (@mandynepeta)

    Hi @mej

    Thanks for letting me know. I have checked the new version out in test and it is no longer giving me critical errors. I will apply it to the live site shortly.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.