Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #1425578

    Hi Kriesi-Team,

    The Appearance > Widgets panel on our page is not loading/working correct. The complete right side of the panel, where the widgets content should appear, remains empty.
    This error is already a year old, but it hasn’t bothered me so far since the frontend is not affected. I searched your support page but was not lucky this time.
    Please find the Error message below:

    WordPress version 6.4.1
    Active theme: Enfold 5.6.8 child
    PHP version 8.0.30
    ————–
    An error of type E_ERROR was caused in line 368 of the file /XXX/wordpress/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-newsbox.php. Error message: Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array given in /XXX/wordpress/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-newsbox.php:368
    Stack trace:
    #0 /XXX/wordpress/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-newsbox.php(368): strip_tags()
    #1 /XXX/wordpress/wp-includes/class-wp-widget.php(535): aviaFramework\widgets\avia_newsbox->form()
    #2 /XXX/wordpress/wp-admin/includes/widgets.php(276): WP_Widget->form_callback()
    #3 /XXX/wordpress/wp-includes/widgets.php(837): wp_widget_control()
    #4 /XXX/wordpress/wp-admin/includes/widgets.php(119): dynamic_sidebar()
    #5 /XXX/wordpress/wp-admin/widgets-form.php(477): wp_list_widget_controls()
    #6 /XXX/wordpress/wp-admin/widgets.php(34): require(‘…’)
    #7 {main}
    thrown
    ——————–

    I’ve added link and login in private
    Thanks for your help.
    Thomas

    #1425634

    Hi Thomas,

    Thanks for giving us admin access.
    Where can we see the error appear? you don’t have any widgets used at the moment, so I’m not sure where the error appears.

    Best regards,
    Nikko

    #1425753

    Hi Nikko,

    Thanks for your quick answer.
    There are a few widgets in use on this site. You can access them via customize.
    However, when I try to review the widget areas via the backend “appearance > widgets” the page is empty on the right side (where the areas/sidebars should appear).
    appearance - widget

    Every time I click on a widget shown left, I get the E_Error message by email.

    Best regards,
    Thomas

    #1425795

    Hi Thomas,

    I could not view the image link, however, I have made changes on class-avia-newsbox.php
    Please review your site and see if the error still appears.

    Best regards,
    Nikko

    #1425826

    Hi Nikko,
    Great job! Now the widget areas and also all the inactive widgets are back again on the widgets page.
    Thanks a lot for your help.

    Best regards,
    Thomas

    #1425848

    Hi Thomas,

    I’m glad that we could help you :)
    Have a great weekend!

    Best regards,
    Nikko

    #1447999

    Hi Kriesi Team,
    I have exact the same error as last November AGAIN ….
    Since I don’t know, what Nikko exactly did last November to get the Widgets-page running again, I have to contact you again and ask for help.

    Meanwhile version numbers changed to
    WordPress version 6.5.3
    Active theme: Enfold 5.7.1 child
    PHP version 8.1.28

    The error message I receive from the website is exactly the same as last November (see post #1425578).
    I recently added a new Post Category … maybe it has to do with that?

    #1448068

    Hi,

    Thanks for the update. Does it make any difference if you temporarily deactivate all plugins and activate the parent theme?

    Best regards,
    Rikard

    #1448457

    Hi Rikard,

    Thanks for taking care.
    As suggested, I deactivated all plugins … no difference on the widgets page.
    Next, I switched to original Enfold (all plugins still deactivated) … also no difference.

    Any ideas? As mentioned, unfortunately I don’t know which changes were made on class-avia-newsbox.php last year, but the error was gone.

    Best regards,
    Thomas

    P.S. I also re-installed WP 6.5.3 … also not successful

    • This reply was modified 3 weeks ago by Thomas.
    #1448480

    Hi,

    Thanks for the update. Could you please try to overwrite the theme files with a fresh copy from your Themeforest account via FTP to see if that helps? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update

    Best regards,
    Rikard

    #1448527

    Hi Rikard,
    I followed your suggestion and uploaded a new Enfold copy via ftp.
    Unfortunately still no changes …

    Best regards,
    Thomas

    #1448549

    Hi,

    Thanks for for the update. Are we allowed to temporarily deactivate plugins and themes for testing purposes?

    Best regards,
    Rikard

    #1448552

    Hi Rikard,

    please go ahead and do so.

    Best regards,
    Thomas

    #1448628

    Hi,

    Thanks for that. Please share FTP login details with us in private as well.

    Best regards,
    Rikard

    #1448772

    Hi Rikard,
    see private content.
    Thanks
    Thomas

    #1448903

    Hi,

    Not sure what caused the problem but I added a fix to ../enfold/framework/php/widgets/widget-classes/class-avia-newsbox.php: line 368:

    
    'std'		=> is_string( $instance['cat'] ) ? strip_tags( $instance['cat'] ) : '',
    

    It seems to work now.

    I will add this fix also to the next release 6.0.

    Best regards,
    Günter

    #1449002

    Hi Günter & Team,

    PERFECT!! Thanks a lot.
    I really appreciate your quick and professional problem-solving approach and your way of working.

    Best regards,
    Thomas

    #1449011

    Hi,
    Glad Günter was able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘E_ERROR on Newsbox Widget / Widget panel not working’ is closed to new replies.