Hello,
Screenshot: https://chandoo.org/assets/convertkit-wishlist-settings.png
The full stack trace of the error in wp-content/debug.log
file…
[02-Aug-2024 05:23:16 UTC] PHP Fatal error: Uncaught TypeError: ConvertKit_API_V4::add_subscriber_to_form(): Argument #1 ($form_id) must be of type int, string given, called in /private/wp-content/plugins/convertkit/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api-v4.php on line 517 and defined in /private/wp-content/plugins/convertkit/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api-traits.php:253
Stack trace:
0 /private/wp-content/plugins/convertkit/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api-v4.php(517): ConvertKit_API_V4->add_subscriber_to_form(‘default’, 2836704309)
1 /private/wp-content/plugins/convertkit/includes/integrations/wishlist/class-convertkit-wishlist.php(161): ConvertKit_API_V4->form_subscribe(‘default’, ‘pothi+20240802_…’, ”)
2 /private/wp-content/plugins/convertkit/includes/integrations/wishlist/class-convertkit-wishlist.php(64): ConvertKit_Wishlist->member_resource_subscribe(Array, ‘default’)
3 /private/wp-includes/class-wp-hook.php(326): ConvertKit_Wishlist->add_user_levels(12778, Array)
4 /private/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
5 /private/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
6 /private/wp-content/plugins/wishlist-member/classes/class-member-methods.php(1268): do_action(‘wishlistmember_…’, 12778, Array, Array, Array)
7 /private/wp-content/plugins/wishlist-member/classes/class-registration-methods.php(605): WishListMember->set_membership_levels(12778, Array, Array)
8 /private/wp-content/plugins/wishlist-member/classes/wishlist-member3-actions.php(1749): WishListMember->wpm_register(Array, ”, false, false)
9 /private/wp-content/plugins/wishlist-member/classes/wishlist-member3-actions.php(134): WishListMember3_Actions->add_user(Array)
10 /private/wp-content/plugins/wishlist-member/classes/wishlist-member3-hooks.php(342): WishListMember3_Actions->process_admin_ajax_actions(‘add_user’, Array)
11 /private/wp-includes/class-wp-hook.php(324): WishListMember3_Hooks->admin_actions(”)
12 /private/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
13 /private/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
14 /private/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_admin_a…’)
15 {main}
thrown in /private/wp-content/plugins/convertkit/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api-traits.php on line 253
Due to privacy reasons, I can’t provide a screen recording. Used the same method as in the screen recording shared by you. However, the issue might arise when used with other plugins that we use in our specific environment / site. Here’s the list of plugins used in our side…
wp plugin status
A akismet
A block-bad-queries
UA convertkit 2.4.9.1
A coursecure
A elementor
A elementor-pro
A really-simple-captcha
A simple-history
A ultimate-addons-for-gutenberg
A ssl-insecure-content-fixer
A subscribe-to-comments
A wishlist-audio-player
A wishlist-member
A wishlist-variables
A wishlist-welcome
D object-cache.php
PHP is at 8.1.x. WP core is at 6.6.1.
Thanks for looking into this.