• Resolved muneca

    (@muneca)


    WordPress 5.9.3 on Local Dev

    When I use the [past_events] shortcode in Gutenberg I get these 2 errors:

    ( ! ) Warning: Illegal string offset ‘order’ in /Users/dcat/Local Sites/dsbmusic2022/app/public/wp-content/plugins/wp-event-manager/shortcodes/wp-event-manager-shortcodes.php on line 1354
    Call Stack
    # Time Memory Function Location
    1 0.0001 367360 {main}( ) …/index.php:0
    2 0.0001 367640 require( ‘/Users/dcat/Local Sites/dsbmusic2022/app/public/wp-blog-header.php’ ) …/index.php:17
    3 0.2207 6655960 require_once( ‘/Users/dcat/Local Sites/dsbmusic2022/app/public/wp-includes/template-loader.php’ ) …/wp-blog-header.php:19
    4 0.3099 6983640 include( ‘/Users/dcat/Local Sites/dsbmusic2022/app/public/wp-includes/template-canvas.php’ ) …/template-loader.php:106
    5 0.3099 6983640 get_the_block_template_html( ) …/template-canvas.php:12
    6 0.3100 6984208 do_blocks( ) …/block-template.php:240
    7 0.3502 7142104 render_block( ) …/blocks.php:921
    8 0.3502 7142800 WP_Block->render( ) …/blocks.php:883
    9 0.3502 7143776 WP_Block->render( ) …/class-wp-block.php:241
    10 0.3503 7144472 render_block_core_post_content( ) …/class-wp-block.php:255
    11 0.3506 7147216 apply_filters( ) …/post-content.php:55
    12 0.3506 7147624 WP_Hook->apply_filters( ) …/plugin.php:189
    13 0.3514 7150176 do_shortcode( ) …/class-wp-hook.php:307
    14 0.3515 7153296 preg_replace_callback ( ) …/shortcodes.php:228
    15 0.3523 7164200 do_shortcode_tag( ) …/shortcodes.php:228
    16 0.3523 7164200 WP_Event_Manager_Shortcodes->output_past_events( ) …/shortcodes.php:356

    ( ! ) Warning: Illegal string offset ‘meta_key’ in /Users/dcat/Local Sites/dsbmusic2022/app/public/wp-content/plugins/wp-event-manager/shortcodes/wp-event-manager-shortcodes.php on line 1356
    Call Stack
    # Time Memory Function Location
    1 0.0001 367360 {main}( ) …/index.php:0
    2 0.0001 367640 require( ‘/Users/dcat/Local Sites/dsbmusic2022/app/public/wp-blog-header.php’ ) …/index.php:17
    3 0.2207 6655960 require_once( ‘/Users/dcat/Local Sites/dsbmusic2022/app/public/wp-includes/template-loader.php’ ) …/wp-blog-header.php:19
    4 0.3099 6983640 include( ‘/Users/dcat/Local Sites/dsbmusic2022/app/public/wp-includes/template-canvas.php’ ) …/template-loader.php:106
    5 0.3099 6983640 get_the_block_template_html( ) …/template-canvas.php:12
    6 0.3100 6984208 do_blocks( ) …/block-template.php:240
    7 0.3502 7142104 render_block( ) …/blocks.php:921
    8 0.3502 7142800 WP_Block->render( ) …/blocks.php:883
    9 0.3502 7143776 WP_Block->render( ) …/class-wp-block.php:241
    10 0.3503 7144472 render_block_core_post_content( ) …/class-wp-block.php:255
    11 0.3506 7147216 apply_filters( ) …/post-content.php:55
    12 0.3506 7147624 WP_Hook->apply_filters( ) …/plugin.php:189
    13 0.3514 7150176 do_shortcode( ) …/class-wp-hook.php:307
    14 0.3515 7153296 preg_replace_callback ( ) …/shortcodes.php:228
    15 0.3523 7164200 do_shortcode_tag( ) …/shortcodes.php:228
    16 0.3523 7164200 WP_Event_Manager_Shortcodes->output_past_events( ) …/shortcodes.php:356`

    Can you let me know how I can resolve this? Also is it possible to change the list title to Past Events?

    Thank you for your help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Past Event Shortcode Error’ is closed to new replies.