We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36485
    • 99 Posts
    Gros bonnet de la COGIP Reply #1, 9 years, 3 months ago
    Bonjour à tous

    Désolé si c'est un problème connu.

    Je viens de mettre à jour un site de Revo 2.2.4 en Revo 2.3.3.

    Le site fonctionne mis à part les images gérés par Gallery (1.7.0). Les items dans les albums sont toujours là, les binaires sont toujours dans le file system mais les images ne s'affichent plus.

    Si je regarde les urls des liens cassés j'obtiens ça par exemple :
    http://www.monsite.net/site/assets/components/gallery/connector.php?action=web/phpthumb&ctx=mgr&src=%2Fsite%2F%2Fsite%2Fassets%2Fgallery%2F4%2F13.jpg

    Je ne sais pas su c'est le seul problème mais je ne sais pas pourquoi dans le "src" j'ai deux fois "site" avant "assets/gallery/4/13.jpg"

    J'ai les éléments suivants :
    - Parametres systeme
    gallery.files_path [[++assets_path]]gallery/
    gallery.files_url [[++assets_url]]gallery/

    - /www/site/core/config/config.inc.php
    $modx_assets_path= '/home/nomclient/www/site/assets/';
    $modx_assets_url= '/site/assets/';
    define('MODX_ASSETS_PATH', $modx_assets_path);
    define('MODX_ASSETS_URL', $modx_assets_url);

    Quelqu'un aurait une piste svp ?
      • 36485
      • 99 Posts
      Gros bonnet de la COGIP Reply #2, 9 years, 3 months ago
      J'obtiens des logs d'erreur suivant :
      [2015-02-15 18:30:02] (ERROR @ /site/assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /homez.29/morvandi/www/site/assets/gallery/5/24.jpg - Debug: Array
      (
          [0] => phpThumb() v1.7.13-201406261000 in file "phpthumb.class.php" on line 220
          [1] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root () to $filename (/site//site/assets/gallery/5/24.jpg) resulting in ($AbsoluteFilename = "/site//site/assets/gallery/5/24.jpg") in file "phpthumb.class.php" on line 1216
          [2] => resolvePath: /site//site/assets/gallery/5/24.jpg (allowed_dirs: Array
      (
      )
      ) in file "phpthumb.class.php" on line 1096
          [3] => resolvePath: iteration, path=/site//site/assets/gallery/5/24.jpg, base path = /home/morvandi/www/site/assets/components/gallery in file "phpthumb.class.php" on line 1115
          [4] => open_basedir: "" in file "phpthumb.class.php" on line 1082
          [5] => resolvePath: stop at component 8 in file "phpthumb.class.php" on line 1131
          [6] => resolvePath: stop at path=/site/site/assets/gallery/5/24.jpg in file "phpthumb.class.php" on line 1134
          [7] => resolvePath: no match, returning null in file "phpthumb.class.php" on line 1136
          [8] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/home/morvandi/www/site/assets/components/gallery") to null in file "phpthumb.class.php" on line 1261
          [9] => setSourceFilename() set $this->sourceFilename to "" in file "phpthumb.class.php" on line 271
          [10] => setSourceFilename(/homez.29/morvandi/www/site/assets/gallery/5/24.jpg) set $this->sourceFilename to "/homez.29/morvandi/www/site/assets/gallery/5/24.jpg" in file "phpthumb.class.php" on line 271
          [11] => CleanUpCacheDirectory() set to purge (NULL days; NULL MB; NULL files) in file "phpthumb.class.php" on line 667
          [12] => skipping CleanUpCacheDirectory() because config set to not use it in file "phpthumb.class.php" on line 787
          [13] => CleanUpCacheDirectory() purged 0 files (from 0) based on config settings in file "phpthumb.class.php" on line 793
          [14] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 919
          [15] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 925
          [16] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 936
          [17] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 943
          [18] => $this->thumbnailQuality set to "90" in file "phpthumb.class.php" on line 953
          [19] => resolvePath: /homez.29/morvandi/www/site/assets/gallery/5/24.jpg (allowed_dirs: Array
      (
      )
      ) in file "phpthumb.class.php" on line 1096
          [20] => resolvePath: iteration, path=/homez.29/morvandi/www/site/assets/gallery/5/24.jpg, base path = /home/morvandi/www/site in file "phpthumb.class.php" on line 1115
          [21] => resolvePath: stop at component 1 in file "phpthumb.class.php" on line 1131
          [22] => resolvePath: stop at path=/homez.29 in file "phpthumb.class.php" on line 1134
          [23] => resolvePath: no match, returning null in file "phpthumb.class.php" on line 1136
          [24] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/home/morvandi/www/site") to null in file "phpthumb.class.php" on line 1261
          [25] => $this->sourceFilename set to "" in file "phpthumb.class.php" on line 849
          [26] => phpThumb() v1.7.13-201406261000
      http://phpthumb.sourceforge.net
       
      Error messages disabled.
       
      edit phpThumb.config.php and (temporarily) set
      $PHPTHUMB_CONFIG['disable_debug'] = false;
      to view the details of this error in file "phpthumb.class.php" on line 4050
          [27] => resolvePath: /homez.29/morvandi/www/site/assets/gallery/5/24.jpg (allowed_dirs: Array
      (
      )
      ) in file "phpthumb.class.php" on line 1096
          [28] => resolvePath: iteration, path=/homez.29/morvandi/www/site/assets/gallery/5/24.jpg, base path = /home/morvandi/www/site in file "phpthumb.class.php" on line 1115
          [29] => resolvePath: stop at component 1 in file "phpthumb.class.php" on line 1131
          [30] => resolvePath: stop at path=/homez.29 in file "phpthumb.class.php" on line 1134
          [31] => resolvePath: no match, returning null in file "phpthumb.class.php" on line 1136
          [32] => !$this->config_allow_src_above_docroot therefore setting "" (outside "/home/morvandi/www/site") to null in file "phpthumb.class.php" on line 1261
          [33] => SetCacheFilename() _src set from md5($this->sourceFilename) "" = "d41d8cd98f00b204e9800998ecf8427e" in file "phpthumb.class.php" on line 3443
          [34] => SetCacheFilename() _par set from md5(_farC_zc1_h100_w100_dpi150_q90) in file "phpthumb.class.php" on line 3476
          [35] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3236
          [36] => skipping GetImageSize() because $this->sourceFilename is empty in file "phpthumb.class.php" on line 3248
          [37] => GetImageSize("") failed in file "phpthumb.class.php" on line 3279
          [38] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1508
          [39] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1552
          [40] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3286
          [41] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3215
          [42] => SetOrientationDependantWidthHeight() setting w="100", h="100" in file "phpthumb.class.php" on line 3231
          [43] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3343
          [44] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3603
          [45] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3674
          [46] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3726
          [47] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3728
          [48] => phpThumb() v1.7.13-201406261000
      http://phpthumb.sourceforge.net
       
      Error messages disabled.
       
      edit phpThumb.config.php and (temporarily) set
      $PHPTHUMB_CONFIG['disable_debug'] = false;
      to view the details of this error in file "phpthumb.class.php" on line 4050
          [49] => SourceImageToGD() failed in file "phpthumb.class.php" on line 351
      )
        • 36485
        • 99 Posts
        Gros bonnet de la COGIP Reply #3, 9 years, 3 months ago
        Je pense que mon problème est lié à phpthumb.

        Au lieu d'avoir des chemins du style /site/assets/gallery/5/24.jpg,
        phpthumb génère un path comme ceci : /site//site/assets/gallery/5/24.jpg

        Est-ce que qq'un peut m'expliquer comment je peux obtenir ce path incorrect et comment m'en sortir svp ?
          • 37653
          • 49 Posts
          Bonjour, ton problème resemble au lien posté ici :
          http://forums.modx.com/thread/96068/are-gallery-default-settings-ok#dis-post-519960

          I played with the Gallery configuration and modified 3 things:


          Created a new media source called Gallery of type Gallery Albums and using this media source for the gallery.mediaSource parameter
          Changed the value of gallery.files_path from [[++assets_path]]gallery/ to /assets/gallery/
          Changed the value of gallery.files_url from [[++assets_path]]gallery/ to /assets/gallery/


          And then, Gallery was finally working fine.

          C'est une piste.
            • 36485
            • 99 Posts
            Gros bonnet de la COGIP Reply #5, 9 years, 3 months ago
            Merci beaucoup pour ta réponse.
            Je vais me pencher sur ce post qui effectivement semble une piste intéressante smiley
              • 28432
              • 372 Posts
              Salut,

              Question bête... as tu simplement essayé de faire une mise à jour de Gallery et/ou de phpThumbOf ?
              Fais une sauvegarde avant !