Plugin causing critical error on site
-
I was doing maintenance on a clients site. They are using a shortcode to insert the form in a sidebar. The pages with this sidebar are experiencing a critical error and the form with not display, and the page itself is not formatted correctly. When I went to go investigate in the Widgets page on the backend I couldn’t, and got a full page critical error message. This was sent to my email:
Howdy!
WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, Constant Contact Forms for WordPress.
First, visit your website (https://www.northandovermerchants.org/) and check for any visible issues. Next, visit the page where the error was caught (https://www.northandovermerchants.org/wp-admin/widgets.php) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
[removed by moderator - DO NOT POST LOGIN LINKS]
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.8.1
Active theme: NAMA (version 1.08.1624905223)
Current plugin: Constant Contact Forms for WordPress (version 2.11.1)
PHP version 8.1.31
Error Details
=============
An error of type E_ERROR was caused in line 1260 of the file /home/northandovermerchants/dev.northandovermerchants.org/wp-content/plugins/constant-contact-forms/includes/class-display.php. Error message: Uncaught TypeError: ConstantContact_Display::checkbox(): Argument #3 ($value) must be of type array, string given, called in /home/northandovermerchants/dev.northandovermerchants.org/wp-content/plugins/constant-contact-forms/includes/class-display.phpΒ on line 835 and defined in /home/northandovermerchants/dev.northandovermerchants.org/wp-content/plugins/constant-contact-forms/includes/class-display.php:1260
Stack trace:
#0 /home/northandovermerchants/dev.northandovermerchants.org/wp-content/plugins/constant-contact-forms/includes/class-display.php(835): ConstantContact_Display->checkbox('Select list(s) ...', 'lists___29c04f9...', '', '', true, false, 3523, 'top', 0)
#1 /home/northandovermerchants/dev.northandovermerchants.org/wp-content/plugins/constant-contact-forms/includes/class-display.php(562): ConstantContact_Display->field(Array, Array, Array, 3523, 'top', 0)
#2 /home/northandovermerchants/dev.northandovermerchants.org/wp-content/plugins/constant-contact-forms/includes/class-display.php(407): ConstantContact_Display->build_form_fields(Array, Array, Array, 0)
#3 /home/northandovermerchants/dev.northandovermerchants.org/wp-content/plugins/constant-contact-forms/includes/class-display-shortcode.php(111): ConstantContact_Display->form(Array, '3523', false, 0)
#4 /home/northandovermerchants/dev.northandovermerchants.org/wp-content/plugins/constant-contact-forms/includes/class-display-shortcode.php(82): ConstantContact_Display_Shortcode->get_form(3523, false)
#5 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/shortcodes.php(434): ConstantContact_Display_Shortcode->render_shortcode(Array, '', 'ctct')
#6 [internal function]: do_shortcode_tag(Array)
#7 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(ctct)(...', 'do_shortcode_ta...', '[ctct form="352...')
#8 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/class-wp-hook.php(326): do_shortcode('[ctct form="352...')
#9 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/plugin.php(205): WP_Hook->apply_filters('[ctct form="352...', Array)
#10 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/widgets/class-wp-widget-custom-html.php(150): apply_filters('widget_text', '[ctct form="352...', Array, Object(WP_Widget_Custom_HTML))
#11 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/class-wp-widget.php(394): WP_Widget_Custom_HTML->widget(Array, Array)
#12 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/widgets.php(2041): WP_Widget->display_callback(Array, Array)
#13 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(708): wp_render_widget('custom_html-6', 'sidebar-1')
#14 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(159): WP_REST_Widgets_Controller->prepare_item_for_response(Array, Object(WP_REST_Request))
#15 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Widgets_Controller->get_items(Object(WP_REST_Request))
#16 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wp/v2/widgets', Array, NULL)
#17 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/rest-api.php(586): WP_REST_Server->dispatch(Object(WP_REST_Request))
#18 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/rest-api.php(2973): rest_do_request(Object(WP_REST_Request))
#19 [internal function]: rest_preload_api_request(Array, '/wp/v2/widgets?...')
#20 /home/northandovermerchants/dev.northandovermerchants.org/wp-includes/block-editor.php(757): array_reduce(Array, 'rest_preload_ap...', Array)
#21 /home/northandovermerchants/dev.northandovermerchants.org/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context))
#22 /home/northandovermerchants/dev.northandovermerchants.org/wp-admin/widgets.php(32): require('/home/northando...')
#23 {main}
thrownThe page I need help with: [log in to see the link]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘Plugin causing critical error on site’ is closed to new replies.
