• Hello,

    While Convertkit plugin works as expected as a standalone plugin, it doesn’t work as expected when used with Wishlist Member plugin. While trying to add a member in Wishlist Member plugin interface, a generic error message was displayed… “An error occurred while processing your request. Please try again“.

    Upon enabling WP debugging, the following message is shown in wp-content/debug.log…

    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 /removed_for_privacy/wp-content/plugins/convertkit/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api-v4.php on line 517 and defined in /removed_for_privacy/wp-content/plugins/convertkit/vendor/convertkit/convertkit-wordpress-libraries/src/class-convertkit-api-traits.php:253

    This started happening since Convertkit plugin version 2.5.0. Can you please fix it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kit

    (@convertkit)

    Not replicating, observing members are added successfully with no error when using ConvertKit 2.5.2:
    https://www.loom.com/share/43a256c4a0c54859b576ceddb4ee11ca?sid=750b1c5f-a0e3-4a55-8e5c-d45a43a9a12d

    Please provide:

    1. Screenshot of settings at Settings > ConvertKit > Wishlist Member
    2. Full wp-content/debug.log file (or at the very least, the full stack trace of the fatal error)
    3. (Optional, but helpful) A brief screencast video showing the steps taken to replicate the error (or, if steps taken differ from the above video, steps we need to take to replicate).

    Thanks.

    Thread Starter Pothi Kalimuthu

    (@pothi)

    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.

    Plugin Author Kit

    (@convertkit)

    1. Click Save Changes on screen at https://chandoo.org/assets/convertkit-wishlist-settings.png
    2. Repeat steps to add a member to confirm if the error still persists.
    Thread Starter Pothi Kalimuthu

    (@pothi)

    That worked. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.