cryoth Posted November 22, 2023 Share Posted November 22, 2023 (edited) Hello there, I'm facing a strange issue here, as mentioned in the title when i'm saving my preferences in "Payment > Preferences" all my payment modules are deactivated in the "Customer > Group > Customer group". Only my payment modules are dé-activated and only for the customer group. I've activated the _PS_DEBUG_PROFILING_ to check if by submitting my preferences there is a query on my ps_module_group but there is no query affecting the table and my rows are still deleted. I really dont understand why my payment modules are disabled for my customer group. Does someone had a similar issue ? How could i check if my ps_module_group is affected by some query to isolate the problem ? Thanks in advance Edited November 28, 2023 by cryoth solved (see edit history) Link to comment Share on other sites More sharing options...
cryoth Posted November 24, 2023 Author Share Posted November 24, 2023 A little update : Tried déactivating the payment modules one by one but they dont seem to be the problem in our case. Also tried to display all the SQL querries to check if when submitting the preferences payment there's a single of them who update the ps_module_group table but can't find any who makes an update on this table and my lines in the table are still deleted... I'm really out of ideas ... Can someone help me with my case ? Link to comment Share on other sites More sharing options...
cryoth Posted November 27, 2023 Author Share Posted November 27, 2023 Up please still stuck with my problem. Link to comment Share on other sites More sharing options...
cryoth Posted November 28, 2023 Author Share Posted November 28, 2023 I removed all my modules and just saved a payment one (ps_checkpayment) tried to see if it solves my issue but no still the same problem. Removed ps_checkpayment and adding stripe_payment module only and my issue is still there, it doesnt seem related to my modules. And now i also removed all the overrides from my website and cleared my cache ... the problem is still there ! Is this a native prestashop feature ??? Link to comment Share on other sites More sharing options...
cryoth Posted November 28, 2023 Author Share Posted November 28, 2023 Tried to mount a new PS with the same version and with multishop option but can't reproduce the issue. So i did put all my src/class/controller/app/... files from my new PS to my old one to see if someone before me modified the core files but still it's not working at all the problem subsist here. I really dont get it, everything except the DB is exactly the same as a freshly new PS 1.7.6 ... There is still a major difference, the old Prestashop have a huge amount of multishop (around 80-100 yeah crazy stuff). Could the amount of requests send when saving the preferences affect the ps_module_group table ? I really need help on this subject pls ... Link to comment Share on other sites More sharing options...
cryoth Posted November 28, 2023 Author Share Posted November 28, 2023 OK got it !! I've found the request sent by doctrine to the BDD thanks to the debug bar. The request delete all iterations of the payment module in the ps_module_group table but just after that she inserts all the new iterations, here she sends the id_group (1,2,4,10,17) my customer group (3) is missing. I checked the group inserted to check if everything is OK and the group with id 10 is ... special it also has the same name as my group 3 ! I'm looking in my payment preferences form to see if the two "customer" groups are well displayed and BINGO !!! It looks like prestashop is displaying all the groups preferences but replaces the groups with the same name ! So when i checked my "customer" group in my preferences it was checking the group 10 and not the group 3 who is missing in the form. This is a really specific issue but i'm gonna report it to the PS devs, it shouldn't hide a group even if they have the same name. Hope this topic will help other people. If you're reading this, have a nice day ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now