Template Functions Error
-
After activating the plugin and using the template functions mentioned on the help page (https://pramadillo.com/plugins/woocommerce-pay-per-post/), I encountered the following errors.
Template Function:
<?php if(Woocommerce_Pay_Per_Post_Helper::has_access()): ?> This is the content that a user should see if they paid for the post <?php else: ?> <?php echo Woocommerce_Pay_Per_Post_Helper::get_no_access_content(); ?> <?php endif; ?>
Errors:
Warning: Trying to access array offset on value of type null in /sites/***/files/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-restrict-content.php on line 60 Warning: Trying to access array offset on value of type null in /sites/***/files/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-restrict-content.php on line 63 Warning: Trying to access array offset on value of type null in /sites/***/files/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-restrict-content.php on line 227 Warning: Trying to access array offset on value of type null in /sites/***/files/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-restrict-content.php on line 229 Warning: Trying to access array offset on value of type null in /sites/***/files/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-restrict-content.php on line 134 Warning: Trying to access array offset on value of type null in /sites/***/files/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-restrict-content.php on line 227 Warning: Trying to access array offset on value of type null in /sites/***/files/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-restrict-content.php on line 229 Warning: Trying to access array offset on value of type null in /sites/***/files/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-restrict-content.php on line 134
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Template Functions Error’ is closed to new replies.