Prestashop Core Application V1.4

Product comment posted anonymously is discarded unless statsdata is installed

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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-13 product Comments loop
    PSCFI-471 Product comments don't work
    PSCFI-4381 Administrator unable to add new products unless
    PSCFI-4280 Error in product comments
    PSCFI-421 Translation issue in product comments
    PSCFI-3455 Guest Comments dosen't works
    PSCFI-675 cannot �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).

Activity

Hide
Guillaume J CHARMES added a comment - 21/Jul/12 12:25 AM

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,

Show
Guillaume J CHARMES added a comment - 21/Jul/12 12:25 AM 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,

People

Vote (0)
Watch (0)

Dates

  • Created:
    10/Jul/12 1:13 AM
    Updated:
    24/Jan/13 11:18 AM
    Resolved:
    21/Jul/12 12:25 AM