Jump to content

Error 500 when adding a new product after website migration [Prestashop 1.7]


Recommended Posts

Hi everyone,

 

I have an error 500 when adding a new product after having migrated our website to a new server.

Please find below all information.

Would everyone have an idea about how to solve the Error?

 

Thank you very much,

Antoine

 

Here is our configuration:

PrestaShop version: 1.7.2.4

Shop URL: http://bdm.excellence-web.com/

Current theme in use: ftheme

 

 

 

 

SERVER INFORMATION

Server information: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux

Server software version: Apache

PHP version: 7.1.24

Memory limit: 2048M

Max execution time: 120

Upload Max File size: 2M

 

 DATABASE INFORMATION

MySQL version: 5.5.60-0+deb7u1

MySQL server: localhost

MySQL name: db763131144

MySQL user: dbo763131144

Tables prefix: ps_

MySQL engine: InnoDB

MySQL driver: DbPDO

 

I am also viewing this at the end of the "Information" page:

 LIST OF CHANGED FILES

Changed/missing files have been detected.

Missing files (4)

  • .eslintrc.json
  • composer.lock
  • INSTALL.txt
  • LICENSES

Updated files (8)

  • robots.txt
  • classes/Product.php
  • classes/controller/ProductListingFrontController.php
  • config/defines.inc.php
  • controllers/admin/AdminProductsController.php
  • controllers/front/IndexController.php
  • src/Adapter/Product/ProductDataProvider.php
  • src/PrestaShopBundle/Controller/Admin/ProductController.php

 

Here is the displaying Error 500:

 

Whoops, looks like something went wrong.

1/1LogicException in ProductDataProvider.php line 68:You need to provide a product id

  1. in ProductDataProvider.php line 68
  2. at ProductDataProvider->getProduct('0') in ProductController.php line 392
  3. at ProductController->formAction('0', object(Request))
  4. at call_user_func_array(array(object(ProductController), 'formAction'), array('0', object(Request))) in bootstrap.php.cache line 3246
  5. at HttpKernel->handleRaw(object(Request), '1') in bootstrap.php.cache line 3205
  6. at HttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 3359
  7. at ContainerAwareHttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 2562
  8. at Kernel->handle(object(Request), '1', false) in index.php line 86
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...