• Resolved doogi

    (@doogi)


    Shortcodes dropdown in the editor shows the categories but nothing is displayed when you select one.

    FYI I install Calssic Editor in WordPress 6.1

    https://imgur.com/a/GvCeHWA

    • This topic was modified 2 years, 4 months ago by doogi.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi there @doogi ,

    It seems like a plugin conflict. I just tried with a WordPress 6.1 installation and it is working just fine –> https://snipboard.io/E0Yc7G.jpg
    Please try to disable all your plugins except SportsPress and check again.

    Thanks,
    Savvas

    Thread Starter doogi

    (@doogi)

    Hey @savvasha,

    The only plugin I have installed is the CLASSIC EDITOR.

    Plugin Contributor Savvas

    (@savvasha)

    Unfortunately I am not able to reproduce this issue. Please try to enable DEBUG Mode of WordPress and return any Errors or Warnings you are getting.

    Thanks,
    Savvas

    Thread Starter doogi

    (@doogi)

    [05-Nov-2022 16:11:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/sudburypoker.ca/public_html/wp-content/plugins/sportspress-pro/includes/sportspress/includes/sp-core-functions.php on line 1045
    [05-Nov-2022 16:11:42 UTC] PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/sudburypoker.ca/public_html/wp-content/plugins/sportspress-pro/includes/sportspress/includes/sp-core-functions.php on line 1065
    [05-Nov-2022 16:11:42 UTC] PHP Fatal error:  Uncaught ArgumentCountError: 2 arguments are required, 1 given in /var/www/sudburypoker.ca/public_html/wp-content/plugins/sportspress-pro/includes/sportspress/modules/sportspress-widget-alignment.php:150
    Stack trace:
    #0 /var/www/sudburypoker.ca/public_html/wp-content/plugins/sportspress-pro/includes/sportspress/modules/sportspress-widget-alignment.php(150): printf()
    #1 /var/www/sudburypoker.ca/public_html/wp-includes/class-wp-hook.php(308): SportsPress_Widget_Alignment->ajax_shortcode_form()
    #2 /var/www/sudburypoker.ca/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #3 /var/www/sudburypoker.ca/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /var/www/sudburypoker.ca/public_html/wp-content/plugins/sportspress-pro/includes/sportspress/includes/class-sp-ajax.php(1024): do_action()
    #5 /var/www/sudburypoker.ca/public_html/wp-includes/class-wp-hook.php(308): SP_AJAX->player_details_shortcode()
    #6 /var/www/sudburypoker.ca/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #7 /var/www/sudburypoker.ca/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /var/www/sudburypoker.ca/public_html/wp-admin/admin-ajax.php(188): do_action()
    #9 {main}
      thrown in /var/www/sudburypoker.ca/public_html/wp-content/plugins/sportspress-pro/includes/sportspress/modules/sportspress-widget-alignment.php on line 150
    Thread Starter doogi

    (@doogi)

    sportspress-widget-alignment.php:150

                    function ajax_shortcode_form() {
                            ?>
                    <p>
                            <label>
                                    <?php printf( esc_attr__( 'Alignment: %s', 'sportspress' ), '' ); ?>
                                    <select id="align" name="align">
                                            <?php
                                            foreach ( $this->options as $value => $label ) {
                                                    printf( wp_kses_post( '<option value="%s">%s</option>', $value, $label ) );
                                            }
                                            ?>
                                    </select>
                            </label>
                    </p>
                            <?php
                    }
    Plugin Contributor Savvas

    (@savvasha)

    Hi there @doogi ,

    Try the following change please:
    https://github.com/ThemeBoy/SportsPress/commit/60fee44ebef3496aabb2d4bdb76071fcf081b9d8

    Thanks,
    Savvas

    Thread Starter doogi

    (@doogi)

    It worked.
    Thank you

    Plugin Contributor Savvas

    (@savvasha)

    I am glad you sorted it out ??

    I had the same problem (shortcodes menu not working) and followed this topic.

    Thanks Savas for your solution. I changed sportspress-widget-alignment.php as you showed (line 150). Now everything works as before. I am gratefull.

    Albert Lepoudre

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Shortcodes not working’ is closed to new replies.