• Resolved zenasen

    (@zenasen)


    we use multisite with WPML plugin.
    the default link is /th/ and the EN language url is /th/en/

    The problem:
    Login with Line only work in /th/ but not working in /th/en/

    when login in the ‘/th/en/’ url using line, I got 404 page when return.

    to fix this I customize the plugin
    replace this url

    if(isset($_GET['code']) && isset($_GET['state']) && remove_query_arg(array('code', 'state'), html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]))) == home_url().'/SuperSocializerAuth/Line')
    

    to this

    $temp_home_custom = remove_query_arg( array('code', 'state'), html_entity_decode(esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"])));
    	if (str_contains($temp_home_custom, '/th/en/SuperSocializerAuth/Line')) { 
    		$temp_home_custom = str_replace("/th/en/SuperSocializerAuth/Line","/th/en//SuperSocializerAuth/Line",$temp_home_custom);
    	}
    
    
    	if(isset($_GET['code']) && 
    		isset($_GET['state']) && 
    		$temp_home_custom == home_url().'/SuperSocializerAuth/Line'
    	)
    
    

    I know its not the correct way to fix it, but I hope in the next version this problem will be fixed.
    Thanks

    • This topic was modified 4 years, 2 months ago by zenasen.
    • This topic was modified 4 years, 2 months ago by zenasen.
    • This topic was modified 4 years, 2 months ago by zenasen.

    The page I need help with: [log in to see the link]

The topic ‘Login Line Error 404’ is closed to new replies.