• Hi guys,

    many thanks for your good work with this plugin, I love it.
    I noticed a strange php notice (backend). What’s the problem with this undefined index?

    NOTICE: wp-content/plugins/load-more-products-for-woocommerce/load-more-products.php:219 - Undefined index: page
    require_once('wp-admin/admin.php'), do_action('admin_init'), WP_Hook->do_action, WP_Hook->apply_filters, BeRocket_LMP::include_admin

    Furthermore I noticed, that the scripts (css + js) are also loaded in the login page. Why that? It should only be loaded on the product archive + shop category page right?

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • daymobrew

    (@daymobrew)

    The include_admin() function should check that ‘page’ is set before looking for its value.

    For example:
    if ( ( array_key_exists( ‘page’, $_GET ) ) && ( $_GET[‘page’] == ‘br-load-more-products’ ) ) {

    daymobrew

    (@daymobrew)

    True, the include_front() function should probably check for is_category() or something similar.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strange PHP Notice – Undefined index: page’ is closed to new replies.