1
votes

I am experiencing a problem with the Productcomments module which I am using in a custom module and I cannot figure out how to fix it. The problem is with the star rating in the Productcomments form itself. This form works perfectly in a localhost environment - see images 1 and 2, but not on a live server - see images 3 and 4. On the live server it is showing no stars, just radio buttons, and no delete button for removing the stars.

Form as it looks on WAMP

Code from Chromes Inspect for WAMP

Form as it looks on Live Server

Code from Chromes Inspect for Live Server

Disabling the link to the following 2 js files recreates the problem on the local server which would suggest that the problem lies in the links to these two files on the live server, however I have checked all links to these files and they are correct, as are the permissions for these files.

jquery.rating.pack.js and productcomments.js

Occasionally when I clear cache under Advanced Parameters > Performance I get the following error message:

Fatal error: Uncaught --> Smarty: unable to write file /home/productm/public_html/cache/smarty/compile/10/e2/20/wrt5cbbb0747109d3_91450142 <-- thrown in /home/productm/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

This problem applies to all 1.6 versions of Prestashop tested.

Any suggestions on how to fix this problem would be appreciated.

Thanks

Kathleen

1

1 Answers

-1
votes

The error code you've got from clearing cache is linked to permission problems. Here's probably a duplicate of your issue: How to fix erorr "Fatal error: Uncaught --> Smarty: unable to write file"? Check that your prestashop files are set to 644 and folders 755 permission. (not just the js files you've mentioned). Also if you manually moved the module to your live server(ftp), check the ownership of those files.

Edit: I'll add this to the answer since the permissions didn't fix your problem.

looks like you have a prestashop bug going on with the JS (Synchronous loaded scripts)

here's a patch to fix that, maybe it fixes your original problem. https://github.com/PrestaShop/PrestaShop/pull/6749/commits/73fd8dbed9f413a70f7d04fc4badd48f00ca501a