• Resolved pixelduk

    (@pixelduk)


    I’m using PHP 7.4 and getting critical error with this plugin and WooCommerce 6.1.

    Has it been tested with WC 6.1 and the latest WordPress (5.8.3)?

    I’ve had to disable it for now. The critical error only appears when I open the page editor in WP Admin.

    The page editor uses elementor.

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function get() on null in plugins/products-per-page-for-woocommerce/includes/class-alg-wc-products-per-page-core.php:456\nStack trace:\n#0 plugins/products-per-page-for-woocommerce/includes/class-alg-wc-products-per-page-core.php(441): Alg_WC_Products_Per_Page_Core->get_products_per_page()\n#1 wp-includes/class-wp-hook.php(305): Alg_WC_Products_Per_Page_Core->set_products_per_page_query_arg()\n#2 wp-includes/plugin.php(189): WP_Hook->apply_filters()\n#3 plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php(235): apply_filters()\n#4 plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php(60): W...', referer: wp-admin/edit.php?post_type=page

    • This topic was modified 3 years, 1 month ago by pixelduk.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Algoritmika

    (@algoritmika)

    Hi @pixelduk,

    Thanks for reporting. I wasn’t able to reproduce it on my server, however, I’ve added some safe-checks to the plugin’s code, so hopefully, the error should be gone now. Could you please update the plugin to the latest v2.0.1, and let me know if it’s ok now?

    Thread Starter pixelduk

    (@pixelduk)

    That has fixed the issue!

    Thanks for your speedy response and fix @algoritmika , it is much appreciated.

    Plugin Author Algoritmika

    (@algoritmika)

    @pixelduk,

    Happy to help ?? Please let me know if you notice anything else.

    And if you like the plugin, please consider leaving me a rating.

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