Fishpig autologin not working with Magento

+2 votes
1897 views
asked Sep 7, 2016 in Modules by Mister
I’ve recently installed the wordpress fishpig plugin on a magento ecommerce site. All was working fine initially but now the auto login feature has failed and I am getting the below error message when I try to login in via magento.

WordPress Auto Login Failed: HTTP/1.1 200 OK Server: nginx Date: Tue, 06 Sep 2016 10:26:50 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding X-Powered-By: PHP/5.6.21 Expires: Wed, 11 Jan 1984 05:00:00 GMT Cache-Control: no-cache, must-revalidate, max-age=0 Pragma: no-cache X-Frame-Options: SAMEORIGIN Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/news/ Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/wp/ Access-Control-Allow-Origin: * Set-Cookie: _mcnc=1; Max-Age=2; Path=/ X-Microcachable: 0

I tried logging in the admin of WP manually, which worked without any issues. The irritating thing is that, it works itself all of a sudden, but fails thereafter, than again works for sometime. I dont know whats going on? :(

Anyone experienced such issues?

1 Answer

0 votes
answered Sep 7, 2016 by Jerald Henry
Could be a problem with your plugins on WP. Try manually disabling your plugins . If that resolves the issue, reactivate each one individually until you find the problem.

If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. See if that solves, if that solved it is your theme specific issue.

Additionally, check the following also.

To get the auto-login functionality working, you only require the default content in your .htaccess file and do not need to add any custom code in here. The following is all you need:

# BEGIN WordPress
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /wp/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /wp/index.php [L]
</IfModule>
# END WordPress.

Here are a list of points/solutions taken from the documentation.

    a) Can you login manually via your browser by going to your WordPress Admin directly?
    b) Re-Enter the username and password after logging in manually at System > Configuration > WordPress > Auto Login
    c) Disable all WordPress plugins
    d) Are you using Cloudflare? Cloudflare can very easily stop the auto login system working.
    e) If this is a development site, are you using HTTP authentication? The auto login system doesn't work with HTTP authentication enabled.
    f) Upgrade Magento WordPress Integration to the latest version.

Related questions

0 votes
1 answer 215 views
0 votes
2 answers 242 views
asked Oct 27, 2016 in Modules by Octavia
+1 vote
1 answer 192 views
+1 vote
1 answer 63 views
+1 vote
1 answer 193 views
asked Oct 14, 2016 in Wordpress by Justin
0 votes
0 answers 126 views
...