Jump to content
M. Rahi

Prestashop 1.7 Unable to create or edit new category

Recommended Posts

I am unable to create new category properly or editing the category. ON creating new category the message 

An unexpected error occurred. [PrestaShopDatabaseException code 0]

 . And ads a blank category with id only. No name and url. And while try to edit this it show 500 internal server error. 


Share this post

Link to post
Share on other sites
On 5/24/2020 at 7:43 PM, Amin Vatandoust said:


Turn on Debug and check what does it show when you get 500 error.

Here is "Turn On Error Reporting For Debug" tutorial

Type error: Argument 2 passed to PrestaShop\PrestaShop\Core\Domain\Category\QueryResult\EditableCategory::__construct() must be of the type array, null given, called in /var/www/vhosts/thehardwoodoutlet.ca/src/Adapter/Category/QueryHandler/GetCategoryForEditingHandler.php on line 107


This error. Screenshot attached.


Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More