Jump to content

[RESOLU] Bug upload images : Notice: tempnam()


rachel01

Recommended Posts

Bonjour,

En souhaitant télécharger des images sur mes fiches-produits, j'ai cette erreur (en activant le mode debug) ;

Symfony\Component\Debug\Exception\ContextErrorException:
Notice: tempnam(): file created in the system's temporary directory

  at classes/helper/HelperImageUploader.php:42
  at HelperImageUploaderCore->getFilePath('Amande Douce.png')
     (classes/Uploader.php:267)
  at UploaderCore->upload(array('tmp_name' => '/tmp/phpG6YERv', 'name' => 'Amande Douce.png', 'size' => 758352, 'type' => 'image/png', 'error' => 0), null)
     (classes/Uploader.php:246)
  at UploaderCore->process()
     (controllers/admin/AdminProductsController.php:2813)
  at AdminProductsControllerCore->ajaxProcessaddProductImage('44', 'form', false)
     (src/PrestaShopBundle/Controller/Admin/ProductImageController.php:71)
  at PrestaShopBundle\Controller\Admin\ProductImageController->uploadImageAction('44', object(Request))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, false)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, false)
     (admin924uhre02/index.php:88)

                                

Avez-vous une idée de la solution ?

Merci d'avance 

 

 

EDIT : il fallait changer les droits sur le dossier img

Edited by rachel01 (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...