FishPig Magento 扩展:WordPress 自动登录失败,甚至无法手动登录

FishPig Magento Extension : WordPress Auto Login Failed and not even login manually

错误:

WordPress Auto Login Failed: HTTP/1.1 404 Not Found Date: Thu, 12 May 2016 07:09:31 GMT Server: Apache/2.4.9 (Win32) PHP/5.5.12 X-Powered-By: PHP/5.5.12 Set-Cookie: frontend=7pr2r9qub10h5skdbqot9dbiu7; expires=Thu, 12-May-2016 08:09:32 GMT; Max-Age=3600; path=/magento; domain=127.0.0.1; HttpOnly Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache X-Frame-Options: SAMEORIGIN Status: 404 File not found Content-Type: text/html; charset=UTF-8

我已经阅读了很多与此问题相关的博客,并且尝试了所有解决方案,但对我来说都不起作用。

我尝试添加 "Add this code after 532 line $curl->addOption(CURLOPT_REFERER, true); in Fishpig_Wordpress_Helper_System" 但在 system.php 中没有第 532 行。

Fishpig: Autologin not working authentication exception because of index.php

任何人都可以有任何其他选项来解决此错误。

我正在使用 Magento version 1.9.2.4wordpress version 4.5

根据问题,自动登录系统和手动登录系统似乎都无法正常工作。如果我没看错,那就是你的问题。

自动登录系统实质上是通过向 wp-login.php 提交相同的 HTTP post 请求来为您执行手动登录。这意味着如果您无法手动登录,自动登录也将无法登录。

要解决此问题,请确定您无法手动登录的原因。如果您可以看到登录页面但无法登录,则说明您的详细信息不正确或存在 cookie 问题。

如果您看到登录页面但缺少 CSS,则您可能在 WordPress 中设置了错误的 URL。

如果您在进入登录页面时被重定向到另一个 URL,您的 'siteurl' 选项不正确,需要在 wp_options table 中更改.

如果您 post 访问您的站点 link,我将能够告诉您更多信息。