Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Security Level: All-users
-
Labels:None
-
Environment:PrestaShop v. 1.4.7.0
-
Similar issues:
PSCFI-7177! ! ! forge JIRA is discarding posted description ! ! !PSCFI-13product Comments loopPSCFI-471Product comments don't workPSCFI-4381Administrator unable to add new products unlessPSCFI-4280Error in product commentsPSCFI-421Translation issue in product commentsPSCFI-3455Guest Comments dosen't worksPSCFI-675cannot �post a product image in webservice
Description
When
- productcomments module is configured to allow posting comments for guest
- statsdata module is not installed
- user is not logged in
- user posts a product comment from comment tab on a product page
Then comment is discarded completely without a warning.
No row is inserted into ps_product_comment.
It is caused by lack of id_guest field in Cookie object (see condition in ProductComments->_frontOfficePostProcess()), which apparently is set only in statsdata module (maybe the Guest::setNewGuest($params['cookie']) in StatsData->hookFooter())
Reproducing notes
After you uninstall/disable statsdata module, please remove existing cookies set by PrestaShop - the existing cookie may already contain an id_guest field, which would not be set without statsdata module.
Workaround
Install statsdata module (displayed as Data mining for statistics).
Hi FiNo,
Thank you for your report.
Indeed a check of id_guest was missing.
The fix is available from the SVN and soon in the 1.4.9.
Regards,