Page error when plugin activated
-
Hi, when i activate the plugin, pages contained a payperpost are not accessible with “page error”. Here the server error log:
32151#0: *24 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Cannot use object of type WP_Post as array in /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woocommerce-pay-per-post/public/partials/shortcode-all.php:13 Stack trace: #0 /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-shortcodes.php(127): require() #1 /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/woocommerce-pay-per-post/public/class-woocommerce-pay-per-post-shortcodes.php(57): Woocommerce_Pay_Per_Post_Shortcodes::shortcode_all('all', Array) #2 /var/www/vhosts/mysite.com/httpdocs/wp-includes/shortcodes.php(343): Woocommerce_Pay_Per_Post_Shortcodes::process_shortcode(Array, '', 'woocommerce-pay...') #3 [internal function]: do_shortcode_tag(Array) #4 /var/www/vhosts/mysite.com/httpdocs/wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(woocom...', 'do_shortcode_ta...', '\n<h3>Voici votr...') #5 /var/www/vhosts/l" while reading response header from upstream
I understood that is because of the short code [woocommerce-payperpost template=’all’] inside the page, it crash the page. But the short code [woocommerce-payperpost template=’purchased’] work. So do you know why “ALL” don’t work ?
I use the lastest version of plugin 2.6.8, woocommerce 5.4.1 and wordpress 5.7.2.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Page error when plugin activated’ is closed to new replies.