Quantcast
Channel: WordPress.org Forums » [Membership Plugin - Restrict Content] Support
Viewing all articles
Browse latest Browse all 73

Undefined function error: rcp_is_paypal_membership() and rcp_has_paypal_ap

$
0
0

Replies: 1

Hi,

I am using this plugin but it seems with PayPal payments I am getting errors.

Fatal error: Uncaught Error: Call to undefined function rcp_has_paypal_api_access() in /wp-content/plugins/restrict-content/core/includes/memberships/class-rcp-membership.php:2593

On that line, the code is

} elseif ( in_array( $this->get_gateway(),$paypal_gateways ) ) {
				if ( rcp_is_paypal_membership( $this ) && rcp_has_paypal_api_access() ) {
					$can_cancel = true;
				}

			}

I tried to check these functions but they are non existent on the plugin:
rcp_is_paypal_membership( $this )
rcp_has_paypal_api_access()

So, I wonder why these functions are called? I also noticed i do not see PayPal as payment option. Is that the issue? In that case also why are these functions checked? Is this for the Pro version?

If you have any solution, that would be very helpful.

Thanks,
Chandra

  • This topic was modified 2 months, 1 week ago by Chandra M.

Viewing all articles
Browse latest Browse all 73

Trending Articles