Jump to content

Help! Customer groups with login fails - PS8


Recommended Posts

Hi.

I am trying to make a b2b site with customer groups in ps8 with php8.1

Everything seemed fine until I clicked Advanced parameters>performance>customer groups, I disabled it and then enabled it.
(I am not completely sure this is the cause of the issue though).

But if I disable it, everyone can see the shop, you can log in and create a account, everything is fine (but not a locked store)
If I enable it, You can view the login page, reset password, create account pages and such. But as soon as you push "send" on any of these forms the store halts and crashes unable to allocate enough memory. It makes a large number of calls to entitymapping.php from src/Core/Foundation/IoC/Container.php until it finally runs out of memory.

I have tried for hours trying to solve the issue but without sucess.

Am I missing something here, something needed to be setup ?
- It also happened right after I started to add categories.

 

EDIT:

I have 43557 calls to the database regarding the session - seems a little over the top perhaps ?

"SELECT * FROM `ps_customer_session` a WHERE (a.`id_customer_session` = 82)"

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

SOLVED !

it has to do with infinite loops when a called hook saves a session and therefore update a object that calls a hook that saves session and .... and so on. something with new timestamps to check if the session is alive.

Here is a solution that seems to work (so far) for me.

https://github.com/PrestaShop/PrestaShop/pull/29619/files

Hope this helps someone else :)

 

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...