• PHP Notice: add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.) in \wp-includes\functions.php on line 5225

Viewing 1 replies (of 1 total)
  • Thread Starter forgetme

    (@forgetme)

    Since this plug-in doesn’t appear to be supported anymore the fix for this is to go to \wp-content\plugins\checkout-address-sugessions-for-woocommerce\lib\class.cas.woocommerce.php

    Change:

    
    	/* 
    		Admin Settings Menu
    	*/
    	public function cas_rkc_show_menu(){
    	  add_submenu_page( 'woocommerce', 'Checkout Address Sugessions for WooCommerce',
    					'Checkout Address Sugessions', 
    					'manage_options', 
    					'cas_rkc_googlemap', 
    					array($this,'cas_rkc_googlemap_page'), 
    					'dashicons-location', 
    					1000 );
    	  add_action( 'admin_init',  array($this,'cas_rkc_menu') );
    	}
    

    To:

    
    	/* 
    		Admin Settings Menu
    	*/
    	public function cas_rkc_show_menu(){
    	  add_submenu_page( 'woocommerce', 'Checkout Address Sugessions for WooCommerce',
    					'Checkout Address Sugessions', 
    					'manage_options', 
    					'cas_rkc_googlemap', 
    					array($this,'cas_rkc_googlemap_page'), 
    					1000 );
    	  add_action( 'admin_init',  array($this,'cas_rkc_menu') );
    	}
    
Viewing 1 replies (of 1 total)
  • The topic ‘add_submenu_page called incorrectly’ is closed to new replies.