I’ve been trying to use your plugin to export Paid Memberships Pro user data data in order to make bulk changes and import them back, but I’ve been having some issues. I’m mainly trying to manually update expired members so I need to add membership to their accounts and change the end date.
Any ideas what the issue can be? I would be very grateful for the answer.
Many thanks for working on this plugin.
Aleks
]]>We baught a plan but since we needed to use a VAT EU feature
on our store, and already had a plugin for that, and your VAT EU was not
functioning as the one we have, we decided to use payment with Woo.
And we installed the “Woocommerce integration plugin”
created a product and linked it to the membership we created.
We were also refunded by PMPro as we did not need the extra features.
For the recurring payments we were forced to use a subscription plugin.
We encountered many issues and crashes trying multiple plugins,
then we got a log with error messages indicating that our website crashes
due to the PMPRO Woo Integration addon.
I am attachig the message, and hopefully you will be able to help and advise what can we do or where the issue comes from exactly and how to solve it.
We really wish to continue using PMPro and not move to another plugin.
Please advise.
this is the log:
Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /home/mindfu19/public_html/wp-content/plugins/pmpro-woocommerce/pmpro-woocommerce.php:497 Additional context{ “error”: { “type”: 1, “file”: “/home/mindfu19/public_html/wp-content/plugins/pmpro-woocommerce/pmpro-woocommerce.php”, “line”: 497 }, “backtrace”: [ “”, “#0 /home/mindfu19/public_html/wp-content/plugins/pmpro-woocommerce/pmpro-woocommerce.php(497): array_keys(NULL)”, “#1 /home/mindfu19/public_html/wp-includes/class-wp-hook.php(324): pmprowoo_get_membership_price(’42’, Object(WC_Product_Variation))”, “#2 /home/mindfu19/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(’42’, Array)”, “#3 /home/mindfu19/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(884): apply_filters(‘woocommerce_pro…’, ’42’, Object(WC_Product_Variation))”, “#4 /home/mindfu19/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(282): WC_Data->get_prop(‘price’, ‘view’)”, “#5 /home/mindfu19/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php(572): WC_Product->get_price()”, “#6 /home/mindfu19/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php(550): WC_Product_Variation->variation_is_visible()”, “#7 /home/mindfu19/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(175): WC_Product_Variation->is_purchasable()”, “#8 /home/mindfu19/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(606): WC_Cart_Session->get_cart_from_session()”, “#9 /home/mindfu19/public_html/wp-content/plugins/woocommerce-subscriptions-pro/public/class-woocommerce-subscriptions-pro-public.php(1198): WC_Cart->get_cart()”, “#10 /home/mindfu19/public_html/wp-includes/class-wp-hook.php(324): Woocommerce_Subscriptions_Pro_Public->wps_wsp_enable_shipping_subscription(true)”, “#11 /home/mindfu19/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(true, Array)”, “#12 /home/mindfu19/public_html/wp-content/plugins/woocommerce/includes/wc-conditional-functions.php(355): apply_filters(‘wc_shipping_ena…’, true)”, “#13 /home/mindfu19/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1537): wc_shipping_enabled()”, “#14 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-blocks/services.php(55): WC_Cart->needs_shipping()”, “#15 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php(117): WooCommerce\PayPalCommerce\Blocks\BlocksModule::WooCommerce\PayPalCommerce\Blocks\{closure}(Object(WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer))”, “#16 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php(56): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer->invokeFactory(Object(Closure))”, “#17 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CompositeContainer.php(53): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer->get(‘blocks.method’)”, “#18 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php(61): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CompositeContainer->get(‘blocks.method’)”, “#19 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php(161): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer->WooCommerce\PayPalCommerce\Vendor\Dhii\Container\{closure}()”, “#20 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php(128): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer->invokeGenerator(Object(Closure))”, “#21 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php(62): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer->getCached(‘blocks.method’, Object(Closure))”, “#22 /home/mindfu19/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-blocks/src/BlocksModule.php(63): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer->get(‘blocks.method’)”, “#23 /home/mindfu19/public_html/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\Blocks\BlocksModule->WooCommerce\PayPalCommerce\Blocks\{closure}(Object(Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry))”, “#24 /home/mindfu19/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)”, “#25 /home/mindfu19/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “#26 /home/mindfu19/public_html/wp-content/plugins/woocommerce/src/Blocks/Integrations/IntegrationRegistry.php(50): do_action(‘woocommerce_blo…’, Object(Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry))”, “#27 /home/mindfu19/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry->initialize(”)”, “#28 /home/mindfu19/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)”, “#29 /home/mindfu19/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”, “#30 /home/mindfu19/public_html/wp-settings.php(700): do_action(‘init’)”, “#31 /home/mindfu19/public_html/wp-config.php(92): require_once(‘/home/mindfu19/…’)”, “#32 /home/mindfu19/public_html/wp-load.php(50): require_once(‘/home/mindfu19/…’)”, “#33 /home/mindfu19/public_html/wp-blog-header.php(13): require_once(‘/home/mindfu19/…’)”, “#34 /home/mindfu19/public_html/index.php(17): require(‘/home/mindfu19/…’)”, “#35 {main}”, “thrown” ] }
]]>I’m encountering a fatal error with the Paid Memberships Pro plugin and would appreciate your assistance in resolving it.
Error Details:
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class PMProGateway_paypalexpress does not have a method "pmpro_checkout_after_form" in /Applications/MAMP/htdocs/wp-includes/class-wp-hook.php:324 Stack trace: #0 /Applications/MAMP/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #1 /Applications/MAMP/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #2 /Applications/MAMP/htdocs/wp-content/plugins/paid-memberships-pro/pages/checkout.php(628): do_action('pmpro_checkout_…') #3 /Applications/MAMP/htdocs/wp-content/plugins/paid-memberships-pro/includes/page-templates.php(100): include('/Applications/M…') #4 /Applications/MAMP/htdocs/wp-content/plugins/paid-memberships-pro/includes/init.php(85): pmpro_loadTemplate('checkout', 'local', false) #5 /Applications/MAMP/htdocs/wp-includes/shortcodes.php(433): pmpro_pages_shortcode(Array, '', 'pmpro_checkout') #6 [internal function]: do_shortcode_tag(Array) #7 /Applications/MAMP/htdocs/wp-includes/shortcodes.php(273): preg_replace_callback('/\[(\[?)(pmpro_…', 'do_shortcode_ta…', '[pmpro_checkout…') #8 /Applications/MAMP/htdocs/wp-includes/class-wp-hook.php(324): do_shortcode('[pmpro_checkout…') #9 /Applications/MAMP/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters('[pmpro_checkout…', Array) #10 /Applications/MAMP/htdocs/wp-includes/post-template.php(256): apply_filters('the_content', '[pmpro_checkout…') #11 /Applications/MAMP/htdocs/wp-content/themes/base-wp/inc/render/structure/page.php(46): the_content() #12 /Applications/MAMP/htdocs/wp-includes/class-wp-hook.php(324): igthemes_page_content('') #13 /Applications/MAMP/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #14 /Applications/MAMP/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /Applications/MAMP/htdocs/wp-content/themes/base-wp/template-parts/content-page.php(17): do_action('igthemes_single…') #16 /Applications/MAMP/htdocs/wp-includes/template.php(812): require('/Applications/M…') #17 /Applications/MAMP/htdocs/wp-includes/template.php(745): load_template('/Applications/M…', false, Array) #18 /Applications/MAMP/htdocs/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #19 /Applications/MAMP/htdocs/wp-content/themes/base-wp/page.php(23): get_template_part('template-parts/…', 'page') #20 /Applications/MAMP/htdocs/wp-includes/template-loader.php(106): include('/Applications/M…') #21 /Applications/MAMP/htdocs/wp-blog-header.php(19): require_once('/Applications/M…') #22 /Applications/MAMP/htdocs/index.php(17): require('/Applications/M…') #23 {main} thrown in /Applications/MAMP/htdocs/wp-includes/class-wp-hook.php on line 324
Description:
It seems that the PMProGateway_paypalexpress
class does not have a method named pmpro_checkout_after_form
. This is causing the call_user_func_array()
function to fail when it tries to call this method.
Steps to Reproduce:
Environment:
Paid Memberships Pro Extensions:
Temporary Solution Attempted:
I attempted to resolve the issue by looking for a method named pmpro_checkout_after_form
in the PMProGateway_paypalexpress
class but couldn’t find it. I believe this method might be missing or there might be a typo in the callback.
Could you please provide guidance on how to resolve this issue? Is there a patch or update available that includes the missing method, or is there a recommended workaround?
Thank you for your assistance!
Best regards,
]]>I have only one membership level active
Thanks in advance
]]>Thanks in advance.
]]>One other question, I was told for recurring subscriptions to set the membership_enddate to “never”, but it gives me an error importing this way, and instead I left the field blank on the CSV for recurring subscriptions and it seems to import fine on a test, but I haven’t redirected the IPN to the new website yet. Does that sound correct?
]]>Since PMPRo 3.0 there are custom fields which will display in the profile with a neat CMS type layout. However, Pods fields don’t show,
]]>