Describe the bug
When you logout in the FrontOffice as a customer, by logging in again and placing a product in the cart, when you checkout, you are redirected to the homepage, I also tried a new local install of 1.7.5.1.
I tried to disable the cache and select always recompile the template, disable the geolocation and disable checking the IP address of the cookie.
This is a problem for customers, and can only be solved by clearing the browser's cache and everything goes back to working, but rightly the customer goes away if the checkout doesn't work.
Also after the second logout, no logout function no longer works!
To Reproduce
Steps to reproduce the behavior:
Additional information
PrestaShop version: 1.7.4.3
PHP version: 7.2
Hi @cartomatica73,
Could you please provide us with more info? We need more details to understand how we can reproduce your issue:
Don't you know how to get this information? Please read the following article:
http://build.prestashop.com/howtos/misc/how-to-create-bug-report/
Thanks!
forgive me, he had not saved the changes
@cartomatica73, it is OK.
Waiting for the information.
Thanks!
@ cartomatica73 , va bene.
Aspettando l'informazioneGrazie!
Describe the bug
When you logout in the FrontOffice as a customer, by logging in again and placing a product in the cart, when you checkout, you are redirected to the homepage, I also tried a new local install of 1.7.5.1.
I tried to disable the cache and select always recompile the template, disable the geolocation and disable checking the IP address of the cookie.
This is a problem for customers, and can only be solved by clearing the browser's cache and everything goes back to working, but rightly the customer goes away if the checkout doesn't work.
Also after the second logout, no logout function no longer works!
To Reproduce
Steps to reproduce the behavior:
Log in to the front office as a customer
Log out
Log in to the front office as a customer again
Add a product to cart
Go to the cart
Proceed to checkout and here the problem occurs!
Additional information
PrestaShop version: 1.7.4.3
PHP version: 7.2
@cartomatica73, Here are some things you can try :
1/ Clear your browser cache and your cookies
2/ Check PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL in ps_configuration table
3/ Manually clear smarty cache: remove all files from /var/cache/
4/ Disable the IP check in classes/Cookie.php (this can cause many issues with dynamics IP)
5/ Into the path /PROJECT_FOLDER/classes/controller/AdminController.php, replace 900 to 3600 which increases the log-in period from 15 to 60 minutes.
replace this:
if ($this->context->cookie->last_activity + 900 < time()) {
By this:
if ($this->context->cookie->last_activity + 3600 < time()) {
Thanks to check & feedback.
Then deleting the browser cache, it works again, but if I repeat the operation described in the first post, the same thing happens
Check PS_SHOP_DOMAIN (www.mydomain.com) and PS_SHOP_DOMAIN_SSL (www.mydomain.com) in ps_configuration table, they are the same and therefore, I deduce everything ok
I always clean the cache manually, but this doesn't solve the problem, even if I disable the smarty cache.
Which line should I disable the ip check?
Change from 900 to 3600
did this, I tried, but I have the same problem and the logout is not done, to logout I have to clear the browser cache and cookies
however, I believe it is a preblema linked to coockie, how can I delete them automatically when a new login or a logout is made?
Is it correct as an idea according to you?
@cartomatica73, thanks to follow this comment: https://github.com/PrestaShop/PrestaShop/issues/14371#issuecomment-509956780, it could similar to your issue.
Thanks to check & feedback.
yes I have already read it and I have applied the changes but without results ...
I don't have modules to speed up page performance, which could save cookies
@cartomatica73, We need to retrieve the PHP error log and the debug mode report in order to find out what's wrong.
Don't you know how to get this information? Please read the following article:
http://build.prestashop.com/howtos/misc/how-to-create-bug-report/
Thanks!
I've the same bug with a PS 1.7.4.4 with PHP 7.1 .
Error log is empty...
HI @DelecroixQuentin,
Did you try with those steps: https://github.com/PrestaShop/PrestaShop/issues/14621#issuecomment-510932769?
Thanks!
Hi @khouloudbelguith,
1/ Clear your browser cache and your cookies
=> Done and not solve this issue, i also tried with incognito mode but no change...
2/ Check PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL in ps_configuration table
=> They are okay.
3/ Manually clear smarty cache: remove all files from /var/cache/
=> Already tested and not solve
4/ Disable the IP check in classes/Cookie.php (this can cause many issues with dynamics IP)
=> I've a static IP and check is already disabled.
5/ Into the path /PROJECT_FOLDER/classes/controller/AdminController.php, replace 900 to 3600 which increases the log-in period from 15 to 60 minutes.
=> It's not a back-office issue, in your case, this will not help us.
Thanks for the help
@DelecroixQuentin, thanks for your feedback.
In your BO => Advanced Parameters => Administration page => could you please try to increase the "Lifetime of front office cookies" option.
Thanks!
Sadly, it's not working. I also tried with incognito mode.
I will make some tests tomorrow with all modules disabled, etc...
@cartomatica73, thanks!
Waiting for your feedback.
@khouloudbelguith
Error log is empty
I lowered the time of front office cookies to 2 hours, just in case a customer has a problem, he should solve it
@cartomatica73, any news about the issue?
Do you have the same issue after increasing the time of front office cookies?
Thanks!
no, logout does not work after the second time
@cartomatica73,
We need to retrieve the PHP error log and the debug mode report in order to find out what's wrong.
Don't you know how to get this information? Please read the following article:
http://build.prestashop.com/howtos/misc/how-to-create-bug-report/
Thanks!
I'm not getting any errors from the apache log : xammp\apache\logs\error.log
I have no errors in the log for my domain
enable debug mode, and perform all operations, but I do not receive any errors
also i have a question to enable the images with implementation fancybox in the cms, can I do it here or should I open a new discussion?
@cartomatica73,
About the error log, if you don't have it, you should ask your hosting provider.
also i have a question to enable the images with implementation fancybox in the cms, can I do it here or should I open a new discussion?
Please be aware that this bug tracker should be used to report issues ONLY. If you need help, you can ask on the Forum (https://www.prestashop.com/forums/), Gitter (https://gitter.im/PrestaShop/General) or Stack Overflow (https://stackoverflow.com/questions/tagged/prestashop).
Thanks for your understanding!
@khouloudbelguith
I have the server locally, and I have no problem reading the log, but there are no problems, if you give me an email I will send it to you.
Si prega di essere consapevoli del fatto che questo bug tracker dovrebbe essere usato per segnalare SOLO i problemi. Se hai bisogno di aiuto, puoi chiedere sul Forum ( https://www.prestashop.com/forums/ ), Gitter ( https://gitter.im/PrestaShop/General ) o Stack Overflow ( https: // stackoverflow. it / questions / tagged / prestashop ).
Grazie per la tua comprensione!
I specifically asked for no mistakes
@cartomatica73,
My address mail: khouloud.[email protected]
Let's be safe!
Thanks!
check the mail
@cartomatica73, In your log file you have this error
PHP Fatal error: Out of memory (allocated 6291456) (tried to allocate 4096 bytes) in C:\xampp\htdocs\wellingtonjeans\classes\Product.php on line 6441
In your php.ini file, Try to increase:
max_execution_time = 30 (by default is 30, try to increase it)
max_input_time = you need to increase it
memory_limit
Did you the default theme Classic?
Thanks!
@khouloudbelguith
in my php.ini file I have the following settings
max_execution_time=5000
max_input_time=5000
memory_limit=4000M
@cartomatica73,
Did you the default theme Classic?
Thanks!
@khouloudbelguith
no, we use the zOne theme
@cartomatica73, have you tried to contact the theme author about this issue?
Thanks to check with them & feedback.
@khouloudbelguith
yes, telling me that I have to buy back the template because I no longer have the support, hateful as an answer
@cartomatica73, ok thanks!
have you tried to reproduce the issue with the classic theme; because this issue occurs only in the FO.
So, it is related to your theme.
Thanks!
@khouloudbelguith
ok, i'll check with the classic theme
@cartomatica73, thanks!
Waiting for your feedback.
Hi @cartomatica73,
Since we had no news from you for more than 30 days, I'll close this ticket. Feel free to open another one if you can give specific details.
Thanks!
@khouloudbelguith
ok, i'll check with the classic theme
Did you manage to solve this problem? I'm still getting it in a customer shop on 1.7.6.1. Seems not related to the theme, rather a bug in PS cookie management. Especially since it was working fine before the upgrade to latest version, the theme was always the same. I'm using latest Warehouse anyway (4.3.2).
Edit: After further investigation we found what causes the probem: the apache optimization switch in performance setting. I have still to find out where exactly in the code lies the problem. But deactivating it everything works again. Other than removing the Expires lines from htaccess what else does that switch do exactly?
any news, update me
any news, update me
Nevermind, i found the problem. it's not a ps problem. You probably have ps installed in a subfolder with wrong webserver configuration.
any news, update me
Nevermind, i found the problem. it's not a ps problem. You probably have ps installed in a subfolder with wrong webserver configuration.
we have the server locally, could you tell me what part of the configuration is there to see?
any news, update me
Nevermind, i found the problem. it's not a ps problem. You probably have ps installed in a subfolder with wrong webserver configuration.
we have the server locally, could you tell me what part of the configuration is there to see?
If you have PS in a subfolder be sure to NOT have any htaccess in parent folders. Especially if they overwrite mod_expires rules. This happens for example if you have WP in parent folder.
Hello.
@matrixino @cartomatica73 Could You reach me on budrys.[email protected]? I have similar issue and need some help.