Fatal error when using shortcode [arm_membership]
-
Hello,
I’m using the free Lite version of ARMember and I’ve encountered a bug related to the
[arm_membership]shortcode.When I place this shortcode on a page (with or without parameters), it works correctly for users who do not have an active membership plan. However, once a user purchases a plan, the page throws a fatal error and becomes inaccessible.
To troubleshoot, I performed the following steps:
- Deactivated all plugins except for ARMember Lite.
- Switched to a default WordPress theme (e.g., Twenty Twenty-Four).
- Cleared cache and checked server logs.
Despite having all of my plugins and theme up to date, the issue still occurs, confirming it’s not caused by a conflict with other plugins or the theme.
Here are my site details:
- WordPress Version: 6.8.1
- PHP Version: 8.2.28
- ARMember Version: (Lite β latest available)
Please visit this page for a example of the problem: https://docs.ownyourgoals.nl/4713-2/
Below is the error I found in my error log:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-content/plugins/armember-membership/core/classes/class.arm_shortcodes.php:2179 Stack trace: #0 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/shortcodes.php(434): ARM_shortcodes_Lite->arm_membership_detail_shortcode_func() #1 [internal function]: do_shortcode_tag() #2 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #3 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/class-wp-hook.php(324): do_shortcode() #4 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #5 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/post-template.php(256): apply_filters() #6 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-content/themes/kadence/template-parts/content/entry_content.php(16): the_content() #7 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/template.php(812): require(‘/home/deb145298…’) #8 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/template.php(745): load_template() #9 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/general-template.php(206): locate_template() #10 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-content/themes/kadence/template-parts/content/single-entry.php(28): get_template_part() #11 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/template.php(812): require(‘/home/deb145298…’) #12 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/template.php(745): load_template() #13 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/general-template.php(206): locate_template() #14 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-content/themes/kadence/inc/template-functions/single-functions.php(27): get_template_part() #15 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/class-wp-hook.php(324): Kadence\single_content() #16 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #17 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #18 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-content/themes/kadence/template-parts/content/single.php(34): do_action() #19 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/template.php(812): require(‘/home/deb145298…’) #20 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/template.php(745): load_template() #21 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/general-template.php(206): locate_template() #22 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-content/themes/kadence/inc/template-functions/single-functions.php(20): get_template_part() #23 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/class-wp-hook.php(324): Kadence\single_markup() #24 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #25 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #26 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-content/themes/kadence/page.php(20): do_action() #27 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-includes/template-loader.php(106): include(‘/home/deb145298…’) #28 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-blog-header.php(19): require_once(‘/home/deb145298…’) #29 /home/deb145298/domains/docs.ownyourgoals.nl/public_html/index.php(17): require(‘/home/deb145298…’) #30 {main} thrown in /home/deb145298/domains/docs.ownyourgoals.nl/public_html/wp-content/plugins/armember-membership/core/classes/class.arm_shortcodes.php on line 2179
Could you please look into this issue? I’m currently considering purchasing the full version of ARMember, but I would like to have this issue resolved first.
Kind regards,
LisanneThe page I need help with: [log in to see the link]
The topic ‘Fatal error when using shortcode [arm_membership]’ is closed to new replies.