• I know notices are information only – and only should be displayed on dev sites – but, when re visiting a widget

    Notice: Undefined variable: widget_title in /var/www/html/wp-content/plugins/beaver-builder-lite-version/modules/widget/includes/settings-general.php on line 50

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Simon Prosser

    (@pross)

    Thread Starter fullworks

    (@fullworks)

    <span class="fl-builder-settings-title-text-wrap"><?php echo $widget_title; ?></span>

    Here is the full log

    [08-Apr-2020 15:19:25 UTC] PHP Notice:  Undefined variable: widget_title in /var/www/html/wp-content/plugins/beaver-builder-lite-version/modules/widget/includes/settings-general.php on line 50
    [08-Apr-2020 15:19:25 UTC] PHP Stack trace:
    [08-Apr-2020 15:19:25 UTC] PHP   1. {main}() /var/www/html/index.php:0
    [08-Apr-2020 15:19:25 UTC] PHP   2. require() /var/www/html/index.php:17
    [08-Apr-2020 15:19:25 UTC] PHP   3. wp() /var/www/html/wp-blog-header.php:16
    [08-Apr-2020 15:19:25 UTC] PHP   4. WP->main() /var/www/html/wp-includes/functions.php:1274
    [08-Apr-2020 15:19:25 UTC] PHP   5. do_action_ref_array() /var/www/html/wp-includes/class-wp.php:748
    [08-Apr-2020 15:19:25 UTC] PHP   6. WP_Hook->do_action() /var/www/html/wp-includes/plugin.php:544
    [08-Apr-2020 15:19:25 UTC] PHP   7. WP_Hook->apply_filters() /var/www/html/wp-includes/class-wp-hook.php:311
    [08-Apr-2020 15:19:25 UTC] PHP   8. FLBuilderAJAX::run() /var/www/html/wp-includes/class-wp-hook.php:287
    [08-Apr-2020 15:19:25 UTC] PHP   9. FLBuilderAJAX::call_action() /var/www/html/wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-ajax.php:42
    [08-Apr-2020 15:19:25 UTC] PHP  10. FLBuilderUISettingsForms::render_legacy_settings() /var/www/html/wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-ajax.php:232
    [08-Apr-2020 15:19:25 UTC] PHP  11. include() /var/www/html/wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-ui-settings-forms.php:791
    [08-Apr-2020 15:19:25 UTC] PHP Notice:  Undefined variable: widget_form in /var/www/html/wp-content/plugins/beaver-builder-lite-version/modules/widget/includes/settings-general.php on line 57
    [08-Apr-2020 15:19:25 UTC] PHP Stack trace:
    [08-Apr-2020 15:19:25 UTC] PHP   1. {main}() /var/www/html/index.php:0
    [08-Apr-2020 15:19:25 UTC] PHP   2. require() /var/www/html/index.php:17
    [08-Apr-2020 15:19:25 UTC] PHP   3. wp() /var/www/html/wp-blog-header.php:16
    [08-Apr-2020 15:19:25 UTC] PHP   4. WP->main() /var/www/html/wp-includes/functions.php:1274
    [08-Apr-2020 15:19:25 UTC] PHP   5. do_action_ref_array() /var/www/html/wp-includes/class-wp.php:748
    [08-Apr-2020 15:19:25 UTC] PHP   6. WP_Hook->do_action() /var/www/html/wp-includes/plugin.php:544
    [08-Apr-2020 15:19:25 UTC] PHP   7. WP_Hook->apply_filters() /var/www/html/wp-includes/class-wp-hook.php:311
    [08-Apr-2020 15:19:25 UTC] PHP   8. FLBuilderAJAX::run() /var/www/html/wp-includes/class-wp-hook.php:287
    [08-Apr-2020 15:19:25 UTC] PHP   9. FLBuilderAJAX::call_action() /var/www/html/wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-ajax.php:42
    [08-Apr-2020 15:19:25 UTC] PHP  10. FLBuilderUISettingsForms::render_legacy_settings() /var/www/html/wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-ajax.php:232
    [08-Apr-2020 15:19:25 UTC] PHP  11. include() /var/www/html/wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-ui-settings-forms.php:791
    Plugin Author Simon Prosser

    (@pross)

    Exactly what widget are you adding? Some of them the options will only work in wp-admin because of the way they are coded, we have to block a few of them for these reasons.

    Thread Starter fullworks

    (@fullworks)

    I was investigating a report from one of my plugin users that the widget kept disappearing, I couldn’t replicate the issue specifically – as far as a know it is coded correctly when I noticed the notice.

    So I then tested with the standard ‘search’ widget and that had the same notice.

    But what is really strange is I created and tested several variations and now there is no notice at all – so I expect it is an edge case when it is first used.

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @fullworks,

    Just wondering if you had a chance to recreate the issue?

    I did some testing on a fresh WP install on my local and didn’t encounter the notice after dropping all default widgets to a page. ??

    Ben

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Notice’ is closed to new replies.