-
AuthorPosts
-
November 14, 2023 at 3:44 pm #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.
ThomasNovember 15, 2023 at 4:13 am #1425634Hi 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,
NikkoNovember 16, 2023 at 1:19 pm #1425753Hi 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).
Every time I click on a widget shown left, I get the E_Error message by email.
Best regards,
ThomasNovember 17, 2023 at 6:31 am #1425795Hi 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,
NikkoNovember 17, 2023 at 12:12 pm #1425826Hi 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,
ThomasNovember 17, 2023 at 4:34 pm #1425848Hi Thomas,
I’m glad that we could help you :)
Have a great weekend!Best regards,
NikkoJune 4, 2024 at 4:27 pm #1447999Hi 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.28The 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?June 4, 2024 at 6:39 pm #1448068Hi,
Thanks for the update. Does it make any difference if you temporarily deactivate all plugins and activate the parent theme?
Best regards,
RikardJune 5, 2024 at 9:43 am #1448457Hi 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,
ThomasP.S. I also re-installed WP 6.5.3 … also not successful
- This reply was modified 6 months, 2 weeks ago by Thomas.
June 5, 2024 at 4:23 pm #1448480Hi,
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,
RikardJune 6, 2024 at 11:28 am #1448527Hi Rikard,
I followed your suggestion and uploaded a new Enfold copy via ftp.
Unfortunately still no changes …Best regards,
ThomasJune 6, 2024 at 3:31 pm #1448549Hi,
Thanks for for the update. Are we allowed to temporarily deactivate plugins and themes for testing purposes?
Best regards,
RikardJune 6, 2024 at 4:10 pm #1448552Hi Rikard,
please go ahead and do so.
Best regards,
ThomasJune 7, 2024 at 6:54 pm #1448628Hi,
Thanks for that. Please share FTP login details with us in private as well.
Best regards,
RikardJune 10, 2024 at 10:31 am #1448772Hi Rikard,
see private content.
Thanks
ThomasJune 11, 2024 at 5:00 pm #1448903Hi,
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ünterJune 12, 2024 at 11:27 am #1449002Hi Günter & Team,
PERFECT!! Thanks a lot.
I really appreciate your quick and professional problem-solving approach and your way of working.Best regards,
ThomasJune 12, 2024 at 11:44 am #1449011Hi,
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 -
AuthorPosts
- The topic ‘E_ERROR on Newsbox Widget / Widget panel not working’ is closed to new replies.