1

I have an issue to login in my Magento dashboard with my Apple devices (iphone 6 and iPad) which occurred 2 weeks ago. What is strange is that last month I had no issue to connect to Magento thus I used the saved backup of my website back at the time before the issue occurred but the issue still remain. Then I browsed over several discussions on that topic such as: - Link 1, - Link 2 (related to system->configuration->general->web->session cookie management), - Link 3, But none of them help me to solve my login issue with Apple devices only.

If anyone has an idea please let me know. Thank you for your help.

Community
  • 1
  • 1
Joel
  • 29
  • 1
  • 4
  • post your code of what you've tried – johnny 5 Sep 25 '15 at 17:55
  • @joel which magento version you are using? and this issue is only on admin or facing same on front end too. – urfusion Sep 25 '15 at 18:12
  • @urfusion I am using Magento 1.8.1, this issue occurred only on admin page – Joel Sep 25 '15 at 18:18
  • @johnny5 everything mentioned in the referred links – Joel Sep 25 '15 at 18:19
  • @Joel : have you made any changes in core files? – urfusion Sep 25 '15 at 18:22
  • admin is working on http or https? – urfusion Sep 25 '15 at 18:24
  • there is a answer http://stackoverflow.com/questions/12328366/why-i-can-not-login-to-magento-backend-using-google-chrome you can try that – urfusion Sep 25 '15 at 18:25
  • @urfusion Thank you I am looking at it now I will keep you inform! – Joel Sep 25 '15 at 20:00
  • @urfusion admin should work on https, and I made changes before in core files but I put back the former backup. I will try the solution given in your link, but it seems that their issue was with Google Chrome not with Safari so not sure it would solve but I will give a try now – Joel Sep 25 '15 at 20:06
  • @urfusion I have just finished to test the solution with the 32 and 29 recommendations but they did not work for me.... – Joel Sep 25 '15 at 20:45
  • clear your device cache and cookies. – urfusion Sep 25 '15 at 20:47
  • @urfusion I have cleared my cache for each of my tests but did not work. I also cleared my browser but nothing change. – Joel Sep 25 '15 at 20:58
  • in that case check your log and console for errors – urfusion Sep 25 '15 at 21:10
  • In the log from var\log\system.log I have those following message: 2015-09-25T20:55:53+00:00 ERR (3): Notice: Undefined index: httponly in /home/Site/public_html/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 96 2015-09-25T20:55:53+00:00 ERR (3): Notice: Undefined index: secure in /home/Site/public_html/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 98 2015-09-25T20:55:53+00:00 ERR (3): Notice: Undefined index: domain in /home/Site/public_html/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 100 – Joel Sep 25 '15 at 21:26
  • And below the code of the referred Varien.php lines (from line 96 to 104): if (!$cookieParams['httponly']) { unset($cookieParams['httponly']); if (!$cookieParams['secure']) { unset($cookieParams['secure']); if (!$cookieParams['domain']) { unset($cookieParams['domain']); } } } – Joel Sep 25 '15 at 21:28
  • I have also another error message that comes along with: 2015-09-25T20:55:47+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 7: parser error : Premature end of data in tag html line 1 in /home/Site/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173 – Joel Sep 25 '15 at 21:31
  • And below the line 173 of the Feed.php if it can help (lines 172 to 177): try { $xml = new SimpleXMLElement($data); } catch (Exception $e) { return false; } – Joel Sep 25 '15 at 21:32
  • @Joel : http://magento.stackexchange.com/questions/43899/troubleshooting-notice-undefined-index-httponly-secure-domain – urfusion Sep 26 '15 at 08:09
  • @urfusion Thank you for the link but I don't see how to fix my issue as the code they mentioned as "This can't happen:" is what I have in my code – Joel Sep 26 '15 at 08:36
  • // session cookie params $cookieParams = array( 'lifetime' => $cookie->getLifetime(), 'path' => $cookie->getPath(), 'domain' => $cookie->getConfigDomain(), 'secure' => $cookie->isSecure(), 'httponly' => $cookie->getHttponly() ); if (!$cookieParams['httponly']) { unset($cookieParams['httponly']); if (!$cookieParams['secure']) { unset($cookieParams['secure']); if (!$cookieParams['domain']) { unset($cookieParams['domain']); } } } – Joel Sep 26 '15 at 08:37
  • At last i just want to say Whyn't you go for dubbing code – urfusion Sep 26 '15 at 08:38
  • Sorry what is dubbing code? I had commented the code related to the domain, secure, and httponly but that does not work. Beside for another error line related to the Feed.php I found the following link http://magento.stackexchange.com/questions/31497/system-log-errors-warning-simplexmlelement-construct that suppose to breakdown the error path but somehow it couldn't work. – Joel Sep 26 '15 at 08:44
  • @Joel check the logging step by step. put `die('here');` in your login files. so you can check which code is causing this issue. – urfusion Sep 26 '15 at 08:46
  • in which login files should I put the "die('here');"? – Joel Sep 26 '15 at 09:06

0 Answers0