• I have been having problems with displaying and editing pages containing the Events Calendar block. The error being generated is:

    [22-May-2024 13:08:41 UTC] PHP Fatal error:  Uncaught Error: Object of class stdClass could not be converted to string in /home/nepetash/public_html/develop/wp-content/plugins/the-events-calendar-shortcode/block/init.php:140
    Stack trace:
    #0 /home/nepetash/public_html/develop/wp-includes/class-wp-block.php(463): ecs_render_block(Array, '', Object(WP_Block))
    #1 /home/nepetash/public_html/develop/wp-includes/blocks.php(1705): WP_Block->render()
    #2 /home/nepetash/public_html/develop/wp-includes/blocks.php(1743): render_block(Array)
    #3 /home/nepetash/public_html/develop/wp-includes/class-wp-hook.php(324): do_blocks('<!-- wp:events-...')
    #4 /home/nepetash/public_html/develop/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:events-...', Array)
    #5 /home/nepetash/public_html/develop/wp-includes/blocks/post-content.php(48): apply_filters('the_content', '<!-- wp:events-...')
    #6 /home/nepetash/public_html/develop/wp-includes/class-wp-block.php(463): render_block_core_post_content(Array, '<!-- wp:events-...', Object(WP_Block))
    #7 /home/nepetash/public_html/develop/wp-includes/class-wp-block.php(443): WP_Block->render()
    #8 /home/nepetash/public_html/develop/wp-includes/blocks.php(1705): WP_Block->render()
    #9 /home/nepetash/public_html/develop/wp-includes/blocks.php(1743): render_block(Array)
    #10 /home/nepetash/public_html/develop/wp-includes/block-template.php(260): do_blocks('<!-- wp:templat...')
    #11 /home/nepetash/public_html/develop/wp-includes/template-canvas.php(12): get_the_block_template_html()
    #12 /home/nepetash/public_html/develop/wp-includes/template-loader.php(106): include('/home/nepetash/...')
    #13 /home/nepetash/public_html/develop/wp-blog-header.php(19): require_once('/home/nepetash/...')
    #14 /home/nepetash/public_html/develop/index.php(17): require('/home/nepetash/...')
    #15 {main}
      thrown in /home/nepetash/public_html/develop/wp-content/plugins/the-events-calendar-shortcode/block/init.php on line 140

    I have isolated the error to a conflict with the Widget Options plugin (by running with only Twenty Twenty-One/ Twenty Twenty-Three, The Events Calendar, The Events Calendar Shortcode and Block and Widget Options). When I disable Widget Options, the page can be dispalyed and edited without a problem.

    There does not appear to be a problem if I use the shortcode (but it does not have all the options the client needs).

    I have another site which is running The Events Calendar Shortcode and Block Pro and the page renders fine with Widget Options active.

    It happens regardless of whether I have Widget Options Classic Widgets enabled and Gutenberg Blocks disabled and the other way round.

    I have raised the issue with the developer of Widget Options but they cannot reproduce the problem and suggested I contact you (https://www.ads-software.com/support/topic/conflict-with-teh-events-calendar-shortcode-block/?view=all#post-17769522)

    Could you please take a look?

Viewing 1 replies (of 1 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hi @mandynepeta !

    The shortcode does have all of the options that the block has (the block only has a small part of the options displayed by default), so using the shortcode instead would be a good workaround. Behind the scenes the block uses the shortcode to display the events. If the developers of Widget Options are not able to replicate the issue it may be something unique to the data or set up of your site.

    Is there a particular option you’re using in the block that you can’t find as a shortcode option? The full documentation on available options can be found here:

    https://eventcalendarnewsletter.com/events-calendar-shortcode-pro-options/?free=1

    If you let me know which one(s) are missing I can try to point you in the right direction ??

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Conflict with Widget Option’ is closed to new replies.