Jump to content

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. 

'

Link to comment
Share on other sites

On 5/24/2020 at 7:43 PM, Amin Vatandoust said:

Hi

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.

error.PNG

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...