{"id":17682102,"date":"2024-04-12T09:56:15","date_gmt":"2024-04-12T09:56:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-function-error-11\/"},"modified":"2024-04-12T09:57:17","modified_gmt":"2024-04-12T09:57:17","slug":"undefined-function-error-11","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-function-error-11\/","title":{"rendered":"Undefined function error: rcp_is_paypal_membership() and rcp_has_paypal_ap"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<br \/><br \/>I am using this plugin but it seems with PayPal payments I am getting errors.<br \/><br \/><strong>Fatal error<\/strong>: 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<br \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On that line, the code is<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>} elseif ( in_array( $this-&gt;get_gateway(),$paypal_gateways ) ) {\n\t\t\t\tif ( rcp_is_paypal_membership( $this ) &amp;&amp; rcp_has_paypal_api_access() ) {\n\t\t\t\t\t$can_cancel = true;\n\t\t\t\t}\n\n\t\t\t}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I tried to check these functions but they are non existent on the plugin: <br \/>rcp_is_paypal_membership( $this )<br \/>rcp_has_paypal_api_access()<br \/><br \/>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?<br \/><br \/>If you have any solution, that would be very helpful.<br \/><br \/>Thanks,<br \/>Chandra<\/p>\n","protected":false},"template":"","class_list":["post-17682102","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17682102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17682102\/revisions"}],"predecessor-version":[{"id":17682106,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17682102\/revisions\/17682106"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17682102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}