Jump to content

Login error


sebpil

Recommended Posts

Hi,

Have been trying everything now so I need your help guys.

When I go to my login page, or rather try to go to it, it stays blank in Firefox, reports 500 error in Edge.
Have cleared cache everywhere, still not possibe to login.

The company where I rent my server says it is reporting php errors, and it does in the logfile, but nothing that has anything to do with login, just products etc.
Still it is possible  to access the store and complete buys as a customer, even though I have no customers, but it still works.

How to try to solve this blank login site?

According to the server owner they have checked everything (Crystone) but they never do anything wrong of course.
A few weeks ago I was accessing the site without problems, and I usually login once or twice a week, but all of a sudden from one day to another it des not work to login in to the so called admin mode or whatever you name it.

The last error in the php error log (I use PHP 7.4, have tried every php version from 5.3 and up, same result) is this;

[09-Apr-2021 23:24:24 Europe/Stockholm] PHP Deprecated:  array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /storage/content/68/xxxxxxx/xxxxxx.com/public_html/shop/classes/module/Module.php on line 318

The part with xxxxx is changed by me since that is a vital combination not to be shown.

So can this error cause the login not to work?
I doubt it, but the same line is repeating itself as it has nothing else to do.

What suggestions do you have to come to the real login page to my store?

 

Have a great day and hope to get some replies that will work.
 

Edited by sebpil (see edit history)
Link to comment
Share on other sites

There has to be something else. the "Using array_key_exists() on objects is deprecated" error is deprecated in PHP7.4 only, lower versions should work.
Set Debug to true in config/defines.inc.php and see what error it gives.

Link to comment
Share on other sites

Yes I got a new error now it says this;

[13-Apr-2021 11:14:05 Europe/Stockholm] PHP Deprecated:  Function create_function() is deprecated in /storage/content/68/2001668/pcbmanu.com/public_html/shop/modules/ps_facetedsearch/ps_facetedsearch.php on line 2456
[13-Apr-2021 11:47:07 Europe/Stockholm] PHP Fatal error:  Uncaught Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException: The service "prestashop.core.mail_template.theme_folder_catalog" has a dependency on a non-existent parameter "mail_themes_dir". Did you mean this: "themes_dir"? in /storage/content/68/2001668/pcbmanu.com/public_html/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php:102
Stack trace:
#0 /storage/content/68/2001668/pcbmanu.com/public_html/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/EnvPlaceholderParameterBag.php(57): Symfony\Component\DependencyInjection\ParameterBag\ParameterBag->get('mail_themes_dir')
#1 /storage/content/68/2001668/pcbmanu.com/public_html/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php(219): Symfony\Component\DependencyInjection\ParameterBag\EnvPlaceholderParameterBag->get('mail_themes_dir')
#2 /storage/content/68/2001668/pcbmanu.com/public_html/shop/vendor/symfony/symfo in /storage/content/68/2001668/pcbmanu.com/public_html/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php on line 102

And I am NOT a programmer so this is greek to me how no idea what to do about it

Link to comment
Share on other sites

Sure I would LOVE to update, teh problem is I cannot login so its impossibleto update........

I don't like these kind of problems that needs detective digging. Its taking way too much time being a programmer.

But still I need to figure this out. What PHP should I use??????

Now I have 7.3.

7.0 did not work, 7.4 does not work.

It seems to take 24 hours or so when I change the PHP version, I have no idea how fast it changes on the server.

Link to comment
Share on other sites

Great, thank you.

Now I have tried PHP 5.3 and get this error messagein the browser

Parse error: syntax error, unexpected '[', expecting ')' in /storage/content/68/2001668/pcbmanu.com/public_html/shop/admin075jjvtgt/index.php on line 82

 

And line 82 says this;
Request::setTrustedProxies([], Request::HEADER_X_FORWARDED_ALL);

Link to comment
Share on other sites

12 minutes ago, Rhobur said:

You don't need to login if you use the manual workflow which is the reason I have sent you that link so please read it.
You need server access which I assume you have.

And, stick to Linux.

Sure, but still need to do a lot of work manually, that will take weeks too. Sad system this prestashop is.
Losing the hopes of ever getting it correct again.

Link to comment
Share on other sites

21 minutes ago, Rhobur said:

Right, the system is to blame for users mistakes..
You are welcome to try your luck with Magento or Shopify then.
Good luck with that!

Hi. Yes, since I have not made a single change to my shop for about 5 months, and I could login PERFECTLY fine in february this year. And all of a sudden, without any change prestashops reprograms itself. How likely is that?

I have absolutely no idea, but when Prestashop makes things that require me to be a full time programmer to be able to use their shop, then its way too much to ask for.
Okay its free, and with no sales it is not very fun putting up a new store either.

So if someone that is serious about this Prestashop knows what might cause the WHITE PAGE on login please let me know.

Cause it has nothing to do with PHP errors, it must be something else. Maybe my server provider, I don't know. I have tried most of the thing I can now and still no access to login. When a shop module requires so many plugins or programmings just to show the login page, then something is wrong. You should ALWAYS be able to come to the login page without any problems. I have never ever seen such complicated solution for a store login.

Make it EASY, all you need is username and password, nothing else, no graphics, no colors, nothing, just a simple box with login details. That would make it MUCH easier. You must always be able to get logged in, after that problems can occur, yes but not before you even get to the login page.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...