• Blog pages are being displayed at tablet size. Disable the plugin and they are at desktop size. Causing a critical error on the site as follows:

    [17-Oct-2021 20:59:10 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_price() on bool in /var/www/wp-content/plugins/woocommerce/includes/wc-product-functions.php:1108
    Stack trace:
    #0 /var/www/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php(1867): wc_get_price_to_display(false)
    #1 /var/www/wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.php(1215): WC_Gateway_Afterpay->render_placement('product-pages', false)
    #2 /var/www/wp-includes/shortcodes.php(356): WC_Gateway_Afterpay->shortcode_afterpay_paragraph(Array, '', 'afterpay_paragr...')
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /var/www/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(afterp...', 'do_shortcode_ta...', '[afterpay_parag...')
    #5 /var/www/wp-includes/class-wp-hook.php(303): do_shortcode('[afterpay_parag...')
    #6 /var/www/wp-includes/plugin.php(189): WP_Hook->apply_filters('[afterpay_parag...', Array)
    #7 /var/www/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php(1091) in /var/www/wp-content/plugins/woocommerce/includes/wc-product-functions.php on line 1108
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Afterpay

    (@afterpayit)

    Hi @webmatters,

    Thank you for your message.

    It appears that the Afterpay shortcode has been used on non-WooCommerce pages. Whilst the engineering team is investigating and looking to improve the plugin, please try deactivating the Afterpay plugin temporarily. Then remove the shortcode from the pages in question, before re-activating the Afterpay plugin again.

    Thank you.

    Thread Starter Michelle

    (@webmatters)

    As far as I’m aware, it’s only been put onto products.

    Are you able to provide more information?

    Plugin Author Afterpay

    (@afterpayit)

    Hi @webmatters,

    Thank you for your message.

    The team would be happy to investigate further. To facilitate this please submit a support request including a link to this post using the following web form: https://help.afterpay.com/hc/requests/new?ticket_form_id=193406

    A member of the team will then reach out to you within 1 business day.

    Thank you.`

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Causing critical error on site’ is closed to new replies.