Best Premium and Free WordPress Themes › Forums › ProlificPro › Customizer not working – PHP Error
Tagged: customizer, error, php, ProlificPro
- This topic has 3 replies, 2 voices, and was last updated 9 months, 3 weeks ago by
acmesupports.
-
AuthorPosts
-
December 1, 2022 at 1:11 am #105083
Radek Wagner
ParticipantWhen seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.1.1
Active theme: ProlificPro (version 3.0.3)
Current plugin: (version )
PHP version 8.0.26Error Details
=============
An error of type E_ERROR was caused in line 127 of the file /homepages/6/d69889053/htdocs/dsa/wp-content/themes/prolificpro/acmethemes/sidebar-widget/acme-gallery-filter.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /homepages/6/d69889053/htdocs/dsa/wp-content/themes/prolificpro/acmethemes/sidebar-widget/acme-gallery-filter.php:127
Stack trace:
#0 /homepages/6/d69889053/htdocs/dsa/wp-content/themes/prolificpro/acmethemes/sidebar-widget/acme-gallery-filter.php(127): in_array(1, ”)
#1 /homepages/6/d69889053/htdocs/dsa/wp-includes/class-wp-widget.php(535): Prolific_gallery_filter->form(Array)
#2 /homepages/6/d69889053/htdocs/dsa/wp-admin/includes/widgets.php(274): WP_Widget->form_callback(Array)
#3 /homepages/6/d69889053/htdocs/dsa/wp-includes/class-wp-customize-widgets.php(1128): wp_widget_control(Array, Array)
#4 /homepages/6/d69889053/htdocs/dsa/wp-includes/class-wp-customize-widgets.php(1076): WP_Customize_Widgets->get_widget_control(Array)
#5 /homepages/6/d69889053/htdocs/dsa/wp-includes/class-wp-customize-widgets.php(714): WP_Customize_Widgets->get_available_widgets()
#6 /homepages/6/d69889053/htdocs/dsa/wp-includes/class-wp-hook.php(308): WP_Customize_Widgets->enqueue_scripts(”)
#7 /homepages/6/d69889053/htdocs/dsa/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#8 /homepages/6/d69889053/htdocs/dsa/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /homepages/6/d69889053/htdocs/dsa/wp-admin/customize.php(123): do_action(‘customize_contr…’)
#10 {main}
thrownDecember 1, 2022 at 5:22 am #105086acmesupports
ModeratorDear Radek,
Could you please provide a screenshot of the issue or email us about it at [email protected]?Best Regards!
December 3, 2022 at 2:56 pm #105104Radek Wagner
ParticipantOK
I fixed it myself.
In line 87 of prolificpro/acmethemes/sidebar-widget/acme-gallery-filter.phpit needs to be
$prolific_selected_cat = array();instead of
$prolific_selected_cat = ”;
THX to myself
December 5, 2022 at 1:06 pm #105113acmesupports
ModeratorDear Radek,
Ok, that’s good to know 🙂
Best Regards! -
AuthorPosts
- You must be logged in to reply to this topic.