Critical error with new plugin install
-
Hi, just installed the plugin and connected to a new Constant Contact account to test before using on a live site with client account. When I try to connect to a list and save changes I get a critical error page, and also if I try to use the generated shortcode on a page, a critical error on the front end. I’ll paste the errors in below, replaced the real file paths with /[path-to-files]/ since this is public. Any thoughts or suggestions? Thanks!
PHP version 8.2.29
Error Details
=============
An error of type E_ERROR was caused in line 300 of the file /[path-to-files]/public_html/wp-content/plugins/constant-contact-forms/includes/class-client.php. Error message: Uncaught TypeError: ConstantContact_Client::post(): Argument #3 ($body) must be of type array, Ctct\Components\Contacts\ContactList given, called in /[path-to-files]/public_html/wp-content/plugins/constant-contact-forms/includes/class-client.php on line 223 and defined in /[path-to-files]/public_html/wp-content/plugins/constant-contact-forms/includes/class-client.php:300
Stack trace:
#0 /[path-to-files]/public_html/wp-content/plugins/constant-contact-forms/includes/class-client.php(223): ConstantContact_Client->post('contact_lists', Array, Object(Ctct\Components\Contacts\ContactList))
#1 /[path-to-files]/public_html/wp-content/plugins/constant-contact-forms/includes/class-api.php(621): ConstantContact_Client->add_list(Object(Ctct\Components\Contacts\ContactList))
#2 /[path-to-files]/public_html/wp-content/plugins/constant-contact-forms/includes/class-lists.php(492): ConstantContact_API->add_list(Array)
#3 /[path-to-files]/public_html/wp-content/plugins/constant-contact-forms/includes/class-lists.php(452): ConstantContact_Lists->add_list(Object(WP_Post))
#4 /[path-to-files]/public_html/wp-includes/class-wp-hook.php(326): ConstantContact_Lists->save_or_update_list(2431)
#5 /[path-to-files]/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#6 /[path-to-files]/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /[path-to-files]/public_html/wp-includes/post.php(5099): do_action('save_post_ctct_...', 2431, Object(WP_Post), true)
#8 /[path-to-files]/public_html/wp-includes/post.php(5212): wp_insert_post(Array, false, true)
#9 /[path-to-files]/public_html/wp-admin/includes/post.php(453): wp_update_post(Array)
#10 /[path-to-files]/public_html/wp-admin/post.php(227): edit_post()
#11 {main}
thrown
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Critical error with new plugin install’ is closed to new replies.