• Resolved Dora

    (@dorabaltea)


    When i go to customization( wordpress admin topbar) i see the errors:

    Warning: Illegal string offset 'std' in 
    */public_html/wp-content/plugins/glossary-by-codeat/vendor/wpbp/widgets-helper/class.wph-widget.php on line 353
    
    Warning: Cannot assign an empty string to a string offset in 
    */public_html/wp-content/plugins/glossary-by-codeat/vendor/wpbp/widgets-helper/class.wph-widget.php on line 353
    
    Warning: Illegal string offset 'id' in */public_html/wp-content/plugins/glossary-by-codeat/vendor/wpbp/widgets-helper/class.wph-widget.php on line 355
    
    Fatal error: Uncaught Error: Cannot unset string offsets in */public_html/wp-content/plugins/glossary-by-codeat/vendor/wpbp/widgets-helper/class.wph-widget.php:360 Stack trace: 
    #0 */public_html/wp-content/plugins/glossary-by-codeat/vendor/wpbp/widgets-helper/class.wph-widget.php(308): WPH_Widget->create_field('') 
    #1 */public_html/wp-content/plugins/glossary-by-codeat/vendor/wpbp/widgets-helper/class.wph-widget.php(85): WPH_Widget->create_fields() #2 /home/customer/www/dorabaltea.com/public_html/wp-includes/class-wp-widget.php(534): WPH_Widget->form(Array) 
    #3*/public_html/wp-admin/includes/widgets.php(274): WP_Widget->form_callback(Array) 
    #4 */public_html/wp-includes/class-wp-customize-widgets.php(1127): wp_widget_control(Array, Array) 
    #5 */public_html/wp-includes/class-wp-customize-widgets.php(1075): WP_Customize_Widgets->get_widget in */public_html/wp-content/plugins/glossary-by-codeat/vendor/wpbp/widgets-helper/class.wph-widget.php on line 360

    Version of plugin 2.1.17

Viewing 5 replies - 1 through 5 (of 5 total)
  • The file it’s the same since november 2021 so it is very strange.
    What php version are you using?

    Thread Starter Dora

    (@dorabaltea)

    PHP 7.4.30

    I am not able to replicate the issue on the customizer and in other pages.
    My guess is that you are using a visual builder or a theme that create this issue.
    I can try to provide a fix but as I am not able to replicate I don’t know if will fix it.

    You can try patching the file /public_html/wp-content/plugins/glossary-by-codeat/vendor/wpbp/widgets-helper/class.wph-widget.php on line 308 and replace with this code.

    
    if ( is_array($key) ) {
    	$out .= $this->create_field($key);
    }

    Maybe there is a corrupted widget.

    Thread Starter Dora

    (@dorabaltea)

    Thank you, your modification helped.

    Thank you for a quick support!

    Perfect I will close the ticket and update the plugin the next week with this tiny chage 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Critical E_ERROR’ is closed to new replies.