[EN] Troubleshooting

Configurateur Visuel

Error- " An error occurred during the image upload "

The directory /img/ is not writtable by the server

  1. Add writting authorization by the server on directory /img/ (in most cases, a recursive chmod 766 is enough)
  2. Re-install the module

Error- " An error occurred while copying image: (...) "

The directory /img/ is not writtable by the server

  1. Add writting authorization by the server on directory /img/ (in most cases, a recursive chmod 766 is enough)
  2. Re-install the module

 

Error- " An error occurred during the resize of the picture file. "

The directory /img/ is not writtable by the server

  1. Add writting authorization by the server on directory /img/ (in most cases, a recursive chmod 766 is enough)
  2. Re-install the module

 

Error- " (...) must be writable "

Some directories mentionned in the documentation cannot be written by the server

  1. You could :
    1. Manually copy the files  (cf. Manuel Configurateur Visuel , Paragraphe "Installation") via some FTP client
    2. OR, just make all directories mentionned in the documentation writtable by the server Manuel Configurateur Visuel, Paragraphe "Installation"
  2. Re-install the module

Error- " Cannot write (...) "

Some directories mentionned in the documentation cannot be written by the server

  1. You could :
    1. Manually copy the files  (cf. Manuel Configurateur Visuel , Paragraphe "Installation") via some FTP client
    2. OR, just make all directories mentionned in the documentation writtable by the server Manuel Configurateur Visuel, Paragraphe "Installation"
  2. Re-install the module

 

Error- " Cannot delete (...) "

Some directories mentionned in the documentation cannot be written by the server

  1. You could :
    1. Manually copy the files  (cf. Manuel Configurateur Visuel , Paragraphe "Installation") via some FTP client
    2. OR, just make all directories mentionned in the documentation writtable by the server Manuel Configurateur Visuel, Paragraphe "Installation"
  2. Re-install the module

 

Error- " Property CvScene->id_image is empty (...) "

Prestashop cannot create the picture of the demo product :

  1. You could:
    1. turn off the "devel mode" ( file config/defines.inc.php ):

      define('_PS_MODE_DEV_', false)
    2. AND/OR (since Prestashop 1.5.3.1), fix the Prestashop's core on ImageManager class ( ImageManager.php)
      https://github.com/Shagshag/PrestaShop/commit/d79c2c5a313d0c3096345f17c3b2b7c1a672ba19

      File : https://github.com/Shagshag/PrestaShop/blob/d79c2c5a313d0c3096345f17c3b2b7c1a672ba19/classes/ImageManager.php

      public static function resize($src_file, $dst_file, $dst_width = null, $dst_height = null, $file_type = 'jpg', $force_type = false)
       {
       // Avoid Warning in PHP 5.2 : "Wrong parameter count for clearstatcache()"
       if (version_compare(PHP_VERSION, '5.3.0', '<')) {
       clearstatcache();
       } else {
       clearstatcache(true, $src_file);
       }
      
      
       if (!file_exists($src_file) || !filesize($src_file))
       return false;
       list($src_width, $src_height, $type) = getimagesize($src_file);
      
      
       // If PS_IMAGE_QUALITY is activated, the generated image will be a PNG with .jpg as a file extension.
       // This allow for higher quality and for transparency. JPG source files will also benefit from a higher quality
       // because JPG reencoding by GD, even with max quality setting, degrades the image.
       if (Configuration::get('PS_IMAGE_QUALITY') == 'png_all'
       || (Configuration::get('PS_IMAGE_QUALITY') == 'png' && $type == IMAGETYPE_PNG) && !$force_type)
       $file_type = 'png';
      
      
       if (!$src_width)
       return false;
       if (!$dst_width)
       $dst_width = $src_width;
       if (!$dst_height)
       $dst_height = $src_height;
      
      
       $src_image = ImageManager::create($type, $src_file);
      
      
       $width_diff = $dst_width / $src_width;
       $height_diff = $dst_height / $src_height;
      
      
       if ($width_diff > 1 && $height_diff > 1)
       {
       $next_width = $src_width;
       $next_height = $src_height;
       }
       else
       {
       if (Configuration::get('PS_IMAGE_GENERATION_METHOD') == 2 || (!Configuration::get('PS_IMAGE_GENERATION_METHOD') && $width_diff > $height_diff))
       {
       $next_height = $dst_height;
       $next_width = round(($src_width * $next_height) / $src_height);
       $dst_width = (int)(!Configuration::get('PS_IMAGE_GENERATION_METHOD') ? $dst_width : $next_width);
       }
       else
       {
       $next_width = $dst_width;
       $next_height = round($src_height * $dst_width / $src_width);
       $dst_height = (int)(!Configuration::get('PS_IMAGE_GENERATION_METHOD') ? $dst_height : $next_height);
       }
       }
      
      
       $dest_image = imagecreatetruecolor($dst_width, $dst_height);
      
      
       // If image is a PNG and the output is PNG, fill with transparency. Else fill with white background.
       if ($file_type == 'png' && $type == IMAGETYPE_PNG)
       {
       imagealphablending($dest_image, false);
       imagesavealpha($dest_image, true);
       $transparent = imagecolorallocatealpha($dest_image, 255, 255, 255, 127);
       imagefilledrectangle($dest_image, 0, 0, $dst_width, $dst_height, $transparent);
       }
       else
       {
       $white = imagecolorallocate($dest_image, 255, 255, 255);
       imagefilledrectangle ($dest_image, 0, 0, $dst_width, $dst_height, $white);
       }
      
      
       imagecopyresampled($dest_image, $src_image, (int)(($dst_width - $next_width) / 2), (int)(($dst_height - $next_height) / 2), 0, 0, $next_width, $next_height, $src_width, $src_height);
       return (ImageManager::write($file_type, $dest_image, $dst_file));
       }
      
      
  2. Try to re-install the module
Uninstall : keep Zones' data

Before 1.5.4.0 versions of Prestashop, when unsintalling the module, simply comment line 114 of file configurateurvisuel.php to keep all the data you already set for products' zones :

// || !$this->uninstallSQL ()

 

Price Impact -  "When I change the name of a Price impact, it's not reflecting within the selectbox of the scenes' tab"

In its current version, Configurateur Visuel is tied to the translation process of Prestashop. Therefore, if you'd like to change the name of a price impact, you should do so by changing if for the FR language and the EN language.

 

Some  "[FileUploader] IOError: Error #2038: Erreur d'E/S de fichier. URL: (...)" error is displayed

You should check that the imageDesigner.inc.php file has been copîed at the root of your e-shop.

 

Pictures are not loading
  • De-activate all the options related to the CCC cache (Preferences->Performances)
  • Delete all the media servers

 

Products are not added to the cart (addtocart error)

The blockcart module (Prestashop) must be installed and activated in order to use Configurateur Visuel properly. Also, make sure the ajaxCart mod is ON


On 1.5.x Prestashop ,

Check that _PS_MODE_DEV_ parameter is set to false (/config/defines.inc.php)

Colorize Classic

The module is not loading / not displaying
  • De-activate all the options related to the CCC cache (Preferences->Performances)
  • Delete all the media servers

 

 

 

Colorize Pro

The module is not loading / not displaying
  • De-activate all the options related to the CCC cache (Preferences->Performances)
  • Delete all the media servers

 

 

Colorize Pro +

The module is not loading / not displaying
  • De-activate all the options related to the CCC cache (Preferences->Performances)
  • Delete all the media servers

 

 

Sticker Designer

The module is not loading / not displaying
  • De-activate all the options related to the CCC cache (Preferences->Performances)
  • Delete all the media servers