Jump to content

Unable to add combinations


chris1d

Recommended Posts

Another day and another problem. Trying to create combinations and everytime I try I get "An unexpected error occurred. [PrestaShop\PrestaShop\Core\Domain\Product\Combination\Exception\CannotAddCombinationException code 0]"

 

Googled but no answer to this one. Honestly the latest versions of prestashop is buggy as heck. 

Any solutions to this please?

Link to comment
Share on other sites

If you enabled the debug mode and if you do not see any detailed errors about this bug, it is probably a database errror. Maybe a combination is trying to be created as a duplicate. If you are building the website from scracth, I would delete all attributes defined in the website, then I would check the database after the deletion to see whether any instance of combination is left on the database. If it is the case, I would manually delete them as well. Then I would retry creating combinations.

Link to comment
Share on other sites

  • 3 months later...

The same problem here. When triyng to generate combinations it gives me this error message: An unexpected error occurred. [PrestaShopException code 0]

 

PrestaShop 8.2.0

XAMPP for Windows

 

 

prestashopshopexception-code-0-error.jpg

Link to comment
Share on other sites

10 hours ago, Knowband Plugins said:

Check for the XAMPP PHP error logs and also the Prestashop error log inside the [PS_ROOT_DIRECTORY]/var/log

Share the log here if anything related to same. 

Thank you for triyng to help me.

I enabled the Debug mode and the error was changing into this one: An unexpected error occurred. [PrestaShopException code 0] Property "Product->date_add" is not valid.

Xampp error log show me this:

[2025-03-07 20:01:31] cache.WARNING: Failed to save key "PrestaShopBundle%5CEntity%5CFeatureFlag" of type array: rename(F:\xampp\htdocs\shopname\var\cache\dev\pools\32q+lHAiTJ\75559c4f4c04,F:\xampp\htdocs\shopname\var\cache\dev\pools\32q+lHAiTJ\R\V\En8lLbHBbcWgKDZo0lPQ): Access is denied (code: 5) {"key":"PrestaShopBundle%5CEntity%5CFeatureFlag","exception":"[object] (ErrorException(code: 0): rename(F:\\xampp\\htdocs\\shopname\\var\\cache\\dev\\pools\\32q+lHAiTJ\\75559c4f4c04,F:\\xampp\\htdocs\\shopname\\var\\cache\\dev\\pools\\32q+lHAiTJ\\R\\V\\En8lLbHBbcWgKDZo0lPQ): Access is denied (code: 5) at F:\\xampp\\htdocs\\shopname\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Cache\\Traits\\FilesystemCommonTrait.php:115)"} []

[2025-03-07 20:01:46] php.INFO: User Deprecated: Since api-platform/core 2.7: The Doctrine annotation ApiPlatform\Core\Annotation\ApiResource is deprecated, use the PHP attribute ApiPlatform\Metadata\ApiResource instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since api-platform/core 2.7: The Doctrine annotation ApiPlatform\\Core\\Annotation\\ApiResource is deprecated, use the PHP attribute ApiPlatform\\Metadata\\ApiResource instead. at F:\\xampp\\htdocs\\shopname\\vendor\\symfony\\deprecation-contracts\\function.php:25)"} []

These are just two lines of code from thousands available in "shopname/var/log".

 

prestashopshopexception-code-0-error-2.jpg

Edited by ccristian
writting errors (see edit history)
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...