The server was updated to PHP 7, and then I couldn’t get access to my website. I changed the line:
$out .= $this->getBlock($callback[0])->$callback[1]();
to:
$out .= $this->getBlock($callback[0])->{$callback[1]}();
in the file “app/code/core/Mage/Core/Model/Layout.php”
Now the website is working – NICE….
BUT…
Now I can’t login to the backend.
Every time I try it doesn’t give me an error, just this:
mysite.com/index.php/admin/index/index/key/”And then alot of numbers”/
If I type in the wrong password it will return with following:
“Invalid User Name or Password.”
So it seems like it knows I type the correct user and password, but for some reason will not let me in.
Can someone tell me how to fix this problem, so I can get into the backend of my website? Please! thanks.
Hello Cimi,
I believe your problem is session related.
The Layout.php fix is part of the fix, however there is another portion you should implement regarding the session. You can find the full fix via the Magento StackExchange, note that this answer links to a blog post that fully explains it.
If you have any questions about the solution in that answer as well as the full changes linked there, you can ask here and one of us will likely be able to assist.
Hey I'm having the same issue. I tried the fix posted by Zsolti (https://magento.stackexchange.com/questions/74008/is-magento-ready-for-php-7/80912#80912?newreg=19af...) but I still can't log into the backend
Step 1 allowed the front end to work.
Step 2 doesn't seem to help. For Step 2, I did a search and replace in Varien.php for $this->data and replaced with $_SESSION but I still get a 404 Not Found 1 error when I try to access the admin page
This is the website I'm trying to log into:
http://jaydenthejester.com
http://jaydenthejester.com/jjmag/admin
Any help would be very much appreciated. Thanks
T