Jump to content

Error , unable to duplicate products , fresh intal prestashop 9 - Undefined property: Image::$id_image.


Recommended Posts

Hi there, good people of the forum. I hope somebody can shed a bit of light on this error.

Fresh install of PrestaShop 9.00, PHP 8.3.

When duplicating a product, I get:

"An unexpected error occurred. [PrestaShop\PrestaShop\Core\Exception\CoreException code 0]: Warning: Undefined property: Image::$id_image.


Impossible to duplicate the images."

I did all the steps to check permissions, and everything is OK. Debug mode shows nothing at all for this. I also tried regenerating thumbnails, but it did not work either (the error there was:
"Cannot write images for this type: products. Please check the /home/home/public_html/presta/img/p/ folder's writing permissions."). Permissions are OK, and I’m the owner of the files as well.

I checked the server and apparently I have:

AH01630: client denied by server configuration:

When checking the contents of the file system for the PrestaShop instance, we confirmed that the paths referenced by the URLs (URIs) do not exist on disk, causing the Apache access denial error since it cannot find the requested resource. Additional examples from the logs and corresponding verification on the server:

text

AH01630: client denied by server configuration: /home/home/public_html/presta/img/p/1/1/8 ls: cannot access /home/home/public_html/presta/img/p/1/1/8: No such file or directory AH01630: client denied by server configuration: /home/home/public_html/presta/img/p/1/1/7 ls: cannot access /home/home/public_html/presta/img/p/1/1/7: No such file or directory AH01630: client denied by server configuration: /home/home/public_html/presta/img/p/1/1/5 ls: cannot access /home/home/public_html/presta/img/p/1/1/5: No such file or directory

Based on the above, the PrestaShop instance is generating URLs for images with incomplete or incorrect paths, omitting the image file name and extension. The Apache web server, configured to deny access to non-existent directories or directory listings, rejects these requests, resulting in the logged errors.

Can anybody please point me to how and where to fix these URLs for images with incomplete or incorrect paths?

Thanks in advance!

Capturar.JPG

Link to comment
Share on other sites

Hi, yes this is known issue as reported on github

https://github.com/PrestaShop/PrestaShop/issues/38856

there is a pull request for fix

https://github.com/PrestaShopCorp/ps_eventbus/pull/444

 

sorry this happened to you, PrestaShop will roll out pre release and let community test, but most community does not know it loool

PrestaShop 9.0 is NOT ready for everyday user, in future always look for release candidate, like 9.0.1

Link to comment
Share on other sites

A huge thank you, El Patron — your help has been invaluable!

yet again, your advice has saved me (and I’m sure many others). 🙌

You’re a real lifesaver for the PrestaShop community, we’re lucky to have you here — keep being awesome! 💪

Link to comment
Share on other sites

  • 3 weeks later...

I am experiencing exactly the same problem in Prestashop 8.2.0 with both PHP 8.0 and 8.1.

It seems to have started after having updated quite a few Modules. Unfortunately I do not have the list of modules I updated. Is there a way to find out which modules could possibly be creating this issue? 🙏

Link to comment
Share on other sites

On 8/13/2025 at 4:00 AM, El Patron said:

Hi, yes this is known issue as reported on github

https://github.com/PrestaShop/PrestaShop/issues/38856

there is a pull request for fix

https://github.com/PrestaShopCorp/ps_eventbus/pull/444

 

sorry this happened to you, PrestaShop will roll out pre release and let community test, but most community does not know it loool

PrestaShop 9.0 is NOT ready for everyday user, in future always look for release candidate, like 9.0.1

Thank you for pointing us towards those github links.

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!

Thanks again! 👍

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...