• Resolved Pierre Lannoy

    (@pierrelannoy)


    Hello!
    I’m the plugin author of Weather Station. Some of my users warned me they’re not able to use widgets provided by Weather Station with the widgets “wrapper” provided by your builder.

    After some investigation, I’ve found your wrapper are not able to properly use class names with full namespace when displaying the widget (settings) form. For example, one of my widget is from class \WeatherStation\UI\Widget\Fire but your wrapper try to instanciate \\WeatherStation\\UI\\Widget\\Fire to display the form, which results in a 500 error:

    PHP Fatal error:  Uncaught Error: Class '\\WeatherStation\\UI\\Widget\\Fire' not found in /*****/wp-content/plugins/themify-builder/modules/module-widget.php:185
    Stack trace:
    #0 /*****/wp-includes/class-wp-hook.php(286): TB_Widget_Module->widget_get_form('')
    #1 /*****/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #2 /*****/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /*****/wp-admin/admin-ajax.php(167): do_action('wp_ajax_module_...')
    #4 {main}
      thrown in /*****/wp-content/plugins/themify-builder/modules/module-widget.php on line 185

    So, obviously there’s something which modify the classname of widgets in your plugin, or maybe something which doesn’t correctly escape the string.

    Could you, please, tell me if you can provide a fix for this?

    Thanks for all.
    Pierre

    • This topic was modified 5 years, 9 months ago by Pierre Lannoy.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Widget Error.’ is closed to new replies.