Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @anjanphukan?

    Thanks for the advice. The rollback really helped.
    There was a similar error on the site. Disabling plugins and changing the theme didn’t help. Thank you.

    in the main topic, open this very file:

    /wp-content/themes/electro/inc/woocommerce/functions.php.

    on line 86 insert the new code (the old one is just disabled)

        /**
         * Sets no of products per page
         */
         /*
             function electro_set_loop_shop_per_page() {
    
            if ( isset( $_REQUEST['wppp_ppp'] ) ) :
                $per_page = intval( $_REQUEST['wppp_ppp'] );
                WC()->session->set( 'products_per_page', intval( $_REQUEST['wppp_ppp'] ) );
            elseif ( isset( $_REQUEST['ppp'] ) ) :
                $per_page = intval( $_REQUEST['ppp'] );
                WC()->session->set( 'products_per_page', intval( $_REQUEST['ppp'] ) );
            elseif ( WC()->session->__isset( 'products_per_page' ) ) :
                $per_page = intval( WC()->session->__get( 'products_per_page' ) );
            else :
                $per_page = electro_set_loop_shop_columns() * 4;
                $per_page = apply_filters( 'electro_loop_shop_per_page', $per_page );
            endif;
            
            return $per_page;
        }
         */
        function electro_set_loop_shop_per_page( $cols ) {
    
              $cols = 15;
              return $cols;
    
        }

    everything will work

    Thread Starter lvnaumova

    (@lvnaumova)

    Thanks for finding the problem. The plugin gives the error – Advanced Custom Fields PRO. installed on one of the network sites.
    Sorry, I can’t turn it off.
    I will solve problems with other methods. Thanks for the support and help.

    Thread Starter lvnaumova

    (@lvnaumova)

    could it be a multisite issue with subdomains?
    I have your plugin with this set of themes and plugins and there are no problems with them on other sites. There is your premium plugin on the same topic, there are no such problems there either. The only difference is multisite. Therefore, I think that there may be a problem in the correctness of the plug-in with the network

    Thread Starter lvnaumova

    (@lvnaumova)

    thanks
    deleted the old folder completely and replaced it with a new folder with the downloaded files.
    did not help

Viewing 5 replies - 1 through 5 (of 5 total)