• In the Classic post editor, when I select any shortcode generation option from the Testimonials widget, there’s a 500 error in the browser console, the below message appears in wp-admin/error_log and nothing more happens.

    [16-Jan-2023 01:54:15 UTC] PHP Fatal error:  Uncaught TypeError: max(): Argument #1 ($value) must be of type array, int given in ROOT/wp-content/plugins/easy-testimonials/include/lib/GP_Media_Button/gold-plugins-media-button.class.php:141
    Stack trace:
     #0 ROOT/wp-content/plugins/easy-testimonials/include/lib/GP_Media_Button/gold-plugins-media-button.class.php(141): max()
     #1 ROOT/wp-includes/class-wp-hook.php(308): Gold_Plugins_Media_Button->output_media_button_page()
     #2 ROOT/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
     #3 ROOT/wp-includes/plugin.php(517): WP_Hook->do_action()
     #4 ROOT/wp-admin/admin-ajax.php(188): do_action()
     #5 {main}
      thrown in ROOT/wp-content/plugins/easy-testimonials/include/lib/GP_Media_Button/gold-plugins-media-button.class.php on line 141

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Gal Baras

    (@galbaras)

    Nothing in 2.5 weeks?

    The line with the problem is:

    $width_rule = ' style="width:' . esc_attr(max($control['width']), 350) . 'px"';

    It should be this instead:

    $width_rule = ' style="width:' . esc_attr(max($control['width'], 350)) . 'px"';

    Please update the plugin with this fix.

    Thanks for the fix!

    Thread Starter Gal Baras

    (@galbaras)

    This should still be released officially into the plugin. It seems to have been introduced by the hardening in the last version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error Classic editor shortcode generator error’ is closed to new replies.