• Resolved vaperiyadh2

    (@vaperiyadh2)


    Hi.

    I have got the below error

    WordPress version 5.8.2
    Current theme: Envo eCommerce (version 1.1.1)
    Current plugin: Woo Manage Fraud Orders (version 2.5.1)
    PHP version 7.4.14
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 54 of the file /home/dh_vips/gvape.vip/wp-content/plugins/woo-manage-fraud-orders/includes/admin/class-wmfo-bulk-blacklist.php. Error message: Uncaught TypeError: Argument 1 passed to WMFO_Bulk_Blacklist::handle_bulk_blacklisting() must be of the type string, null given, called in /home/dh_vips/gvape.vip/wp-includes/class-wp-hook.php on line 303 and defined in /home/dh_vips/gvape.vip/wp-content/plugins/woo-manage-fraud-orders/includes/admin/class-wmfo-bulk-blacklist.php:54
    Stack trace:
    #0 /home/dh_vips/gvape.vip/wp-includes/class-wp-hook.php(303): WMFO_Bulk_Blacklist->handle_bulk_blacklisting(NULL, 'mark_completed', Array)
    #1 /home/dh_vips/gvape.vip/wp-includes/plugin.php(189): WP_Hook->apply_filters(NULL, Array)
    #2 /home/dh_vips/gvape.vip/wp-admin/edit.php(212): apply_filters('handle_bulk_act...', '/wp-admin/edit....', 'mark_completed', Array)
    #3 {main}
      thrown
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vaperiyadh2

    (@vaperiyadh2)

    please I need your support in this

    Plugin Author prasidhda

    (@prasidhda)

    Hi @vaperiyadh2 ,

    Thanks for trying out the plugin.
    With the default woocommerce, I couldn’t find any such error. May be there is conflict with the some other plugins in your woo setup.

    Can you try by replacing the function “handle_bulk_blacklisting” at line 54 of this file plugins/woo-manage-fraud-orders/includes/admin/class-wmfo-bulk-blacklist.php

    public function handle_bulk_blacklisting(  $redirect_to,  $action,  $post_ids ) {
    			if($redirect_to == null){
    			    return false;
                }
    		    if ( 'blacklist-customer' !== $action ) {
    				return $redirect_to;
    			}
    			foreach ( $post_ids as $post_id ) {
    				$order = wc_get_order( $post_id );
    
    				if ( ! ( $order instanceof WC_Order ) ) {
    					continue;
    				}
    
    				// Get customer's IP address, billing phone and Email Address.
    				$customer = wmfo_get_customer_details_of_order( $order );
    				// update the blacklists.
    				if ( method_exists( 'WMFO_Blacklist_Handler', 'init' ) ) {
    					WMFO_Blacklist_Handler::init( $customer, $order, 'add', 'back' );
    				}
    			}
    			$redirect_to = wp_nonce_url(
    				add_query_arg(
    					array(
    						'bulk_action' => $action,
    						'changed'     => count( $post_ids ),
    						'ids'         => join( ',', $post_ids ),
    					),
    					$redirect_to
    				),
    				'handle_bulk_blacklisting'
    			);
    
    			return $redirect_to;
    		}

    Please let me know if it fixes the issue.

    Thread Starter vaperiyadh2

    (@vaperiyadh2)

    thank you for the help but after the update the whole site stop working and I get the below error

    Howdy!

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Woo Manage Fraud Orders.

    First, visit your website (https://www.gvape.vip/) and check for any visible issues. Next, visit the page where the error was caught (https://www.gvape.vip/wp-admin/edit.php?s=&post_status=wc-processing&post_type=shop_order&_wpnonce=xxxxxxxxxxx&_wp_http_referer=%2Fwp-admin%2Fedit.php%3Fpost_status%3Dwc-processing%26post_type%3Dshop_order&action=mark_completed&m=0&_customer_user=&paged=1&post%5B%5D=11676&action2=mark_completed) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://www.gvape.vip/wp-login.php?action=enter_recovery_mode&rm_token=xxxxxxxx&rm_key=xxxxxxxx

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.8.2
    Current theme: Envo eCommerce (version 1.1.1)
    Current plugin: Woo Manage Fraud Orders (version 2.5.1)
    PHP version 7.4.14

    Error Details
    =============
    An error of type E_ERROR was caused in line 54 of the file /home/dh_vips/gvape.vip/wp-content/plugins/woo-manage-fraud-orders/includes/admin/class-wmfo-bulk-blacklist.php. Error message: Uncaught TypeError: Argument 1 passed to WMFO_Bulk_Blacklist::handle_bulk_blacklisting() must be of the type string, null given, called in /home/dh_vips/gvape.vip/wp-includes/class-wp-hook.php on line 303 and defined in /home/dh_vips/gvape.vip/wp-content/plugins/woo-manage-fraud-orders/includes/admin/class-wmfo-bulk-blacklist.php:54
    Stack trace:
    #0 /home/dh_vips/gvape.vip/wp-includes/class-wp-hook.php(303): WMFO_Bulk_Blacklist->handle_bulk_blacklisting(NULL, 'mark_completed', Array)
    #1 /home/dh_vips/gvape.vip/wp-includes/plugin.php(189): WP_Hook->apply_filters(NULL, Array)
    #2 /home/dh_vips/gvape.vip/wp-admin/edit.php(212): apply_filters('handle_bulk_act...', '/wp-admin/edit....', 'mark_completed', Array)
    #3 {main}
      thrown
    Plugin Author prasidhda

    (@prasidhda)

    Hi @vaperiyadh2 ,

    I would like to personally assist with your issues however I will need the both WP admin and FTP credentials. If you are comfortable with that, please contact me at [email protected]

    Thanks

    Plugin Author prasidhda

    (@prasidhda)

    Hi @vaperiyadh2,

    There is a new version 2.5.3 resolving some fixes related to bulk blacklisting.
    Please try that and I hope it helps for you.

    https://www.ads-software.com/support/topic/fatal-error-when-bulk-printing/#post-15266863

    I am marking this thread as “Resolved” now. Please let me know if your issue still persist.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ERROR in the plugin’ is closed to new replies.