If you are using PrestaShop 1.4.0.17, the first official release of PrestaShop 1.4, You may encounter following Fatal error at uploading images for products at back office catalog.
The error details
=================
Fatal error (StockMvt -> id_stock_mvt_reason = -1)
How does it happen?
===================
There are multiple tabs of product information. Info tab include basic and core information of a product. Images tab manages product images.
The errors seems happens when your upload product image at catalog admin page.
When you upload new images, PrestaShop tries update the product database, one the the information is the product Stock movement. If you leave your Stock movement selection as "--", internal value = -1 at Info tab, then upload images at Images tab, this error will occurs
How to avoid the error
======================
In order to avoid the Fatal Error, you need select a proper Stock Movement instead of "--" from drop down list, then go to image pages to upload your image.
You can choose any option like "Order", but leave the number to 0 for no changes.
Please note, the Fatal error will occur in any update of your products when you click "save" button if you leave Stock movement as "--".
Comment:
I have no idea why there is such an option "--" at first place, if we already have option of "0" for no changes, we should not have this option.
Good news(update):
I heard that this issue has been fixed in 1.4.1, so it only happens on 1.4.0
Agile Modules blog is a place to announce and discuss about agile modules provided Addons-Modules.com - a developer of modules and addons for PrestaShop shopping cart systems. Our market place solution - Agile Multiple Sellers/Vendors Module - and its accessory modules are quite simply the best solution to build marketplace based on PrestaShop. These modules have helped many of our clients realize their dream of starting, managing, and generating profits from their own online marketplace.
No comments:
Post a Comment