Title: Login Line Error 404
Last modified: March 18, 2022

---

# Login Line Error 404

 *  Resolved [zenasen](https://wordpress.org/support/users/zenasen/)
 * (@zenasen)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/login-line-error-404/)
 * 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](https://wordpress.org/support/users/zenasen/).
    -  This topic was modified 4 years, 2 months ago by [zenasen](https://wordpress.org/support/users/zenasen/).
    -  This topic was modified 4 years, 2 months ago by [zenasen](https://wordpress.org/support/users/zenasen/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flogin-line-error-404%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 * ![](https://ps.w.org/super-socializer/assets/icon-128x128.png?rev=1866723)
 * [Social Share, Social Login and Social Comments Plugin - Super Socializer](https://wordpress.org/plugins/super-socializer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-socializer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-socializer/)
 * [Active Topics](https://wordpress.org/support/plugin/super-socializer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-socializer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-socializer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [zenasen](https://wordpress.org/support/users/zenasen/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/login-line-error-404/)
 * Status: resolved