Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Okay thanks Andrew!

    Hi Andrew, I’ve encountered the same error. When Yoast 14.9+ is active and you click the Download Layout button, the following JS error occurs:

    
    Uncaught TypeError: wp.data.select(...) is null
        getCurrentBlockPosition wp-content/plugins/siteorigin-panels/js/siteorigin-panels.min.js?ver=2.11.4:1
        displayImportExport wp-content/plugins/siteorigin-panels/js/siteorigin-panels.min.js?ver=2.11.4:1
        jQuery 9
        displayImportExport wp-content/plugins/siteorigin-panels/js/siteorigin-panels.min.js?ver=2.11.4:1
        tabClickHandler wp-content/plugins/siteorigin-panels/js/siteorigin-panels.min.js?ver=2.11.4:1
        jQuery 2
    siteorigin-panels.min.js:1:9630
        getCurrentBlockPosition wp-content/plugins/siteorigin-panels/js/siteorigin-panels.min.js?ver=2.11.4:1
        displayImportExport wp-content/plugins/siteorigin-panels/js/siteorigin-panels.min.js?ver=2.11.4:1
        jQuery 9
        displayImportExport wp-content/plugins/siteorigin-panels/js/siteorigin-panels.min.js?ver=2.11.4:1
        tabClickHandler wp-content/plugins/siteorigin-panels/js/siteorigin-panels.min.js?ver=2.11.4:1
        tabClickHandler self-hosted:1171
    
    Brave Michael

    (@brave-michael)

    I’ve JUST spent an hour tracking down this specific issue.
    Wordpress hooks into the ‘lostpassword_url’ filter with a priority of 10.

    This maintenance plugin hooks into that filter with a priority of 999 and it’s ALWAYS active, no matter if maintenance mode is enabled or not.

    Fix for now is to disable the Maintenance plugin unless you really need to use it.

    Thread Starter Brave Michael

    (@brave-michael)

    I added a fix for this issue myself in my theme:

    
    	function ensure_unique_username($username)
    	{
    		if (\username_exists($username))
    		{
    			$username = ensure_unique_username($username. zeroise(wp_rand(0, 99), 2));
    		}
    
    		return $username;
    	}
    
    	add_filter('woocommerce_new_customer_data', function($data){
    
    		//Fix for Wordfence tampering with usernames and then not checking if they are still unique afterwards.
    		$data['user_login'] = ensure_unique_username($data['user_login']);
    
    		return $data;
    	}, 100, 1);
    
Viewing 4 replies - 1 through 4 (of 4 total)