rhath127 Posted July 26 Share Posted July 26 Hi Guys, as title says when I try and duplicate a product it gives out an error of An unexpected error occurred. [PrestaShop\PrestaShop\Core\Exception\CoreException code 0]: Notice: Undefined property: Image::$id_image I can still proceed and edit the item and it works - but the pics dont copy over. Any insight on this? Thanks Link to comment Share on other sites More sharing options...
Knowband Plugins Posted July 26 Share Posted July 26 Same error with all the products OR error in copying any specific product? Link to comment Share on other sites More sharing options...
rhath127 Posted July 26 Author Share Posted July 26 6 minutes ago, Knowband Plugins said: Same error with all the products OR error in copying any specific product? All products - I assume its due to the image that is being copied but dont know how to solve it Link to comment Share on other sites More sharing options...
rhath127 Posted July 29 Author Share Posted July 29 I figured it out - it was one of the modules causing this issue. Once i disabled the module the error went away. Link to comment Share on other sites More sharing options...
WebCommercify Posted August 4 Share Posted August 4 Hi, If a module is assigned to a product-related hook, it may cause this kind of issue. You can easily identify the module responsible by enabling debug mode. Let me know if you need help analyzing it. Link to comment Share on other sites More sharing options...
rhath127 Posted August 5 Author Share Posted August 5 Thank you - I resolved it. It was the Integrate Google marketing v1.0.2 - by ETS-Soft causing the issue. I disabled this and removed it. All is working now. Link to comment Share on other sites More sharing options...
WebCommercify Posted August 5 Share Posted August 5 Glad to hear that. Please rename the topic as SOLVED. Have a good day! Link to comment Share on other sites More sharing options...
AdriC Posted August 29 Share Posted August 29 On 8/5/2025 at 7:20 AM, WebCommercify said: Hi, If a module is assigned to a product-related hook, it may cause this kind of issue. You can easily identify the module responsible by enabling debug mode. Let me know if you need help analyzing it. I am experiencing exactly the same problem on a website running 8.2.0 with PHP 8.1 It seems that the issue has started occurring after having updated 15 or so modules. Unfortunately I did not record what modules were updated. Is there a way to find out which module could be causing this issue? Thanks Link to comment Share on other sites More sharing options...
AdriC Posted August 31 Share Posted August 31 According to a post in this thread:https://github.com/PrestaShop/PrestaShop/issues/38856 I can confirm that the issue comes from a file called UseImageHooks.php, and I found such a file in: ./modules/ps_eventbus/src/Traits/Hooks/UseImageHooks.php I have replaced that file in my Prestashop 8.2.0 and it has resolved my issue also! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now