We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37123
    • 186 Posts
    Di nuovo problemi con gallery, non mi carica le immagini. Mi sono riletto il post in quanto ho avuto gia un problema simile ma non ho capito come ero riuscito a risolvere, probabilmente le cose si erano sistemate "da sole" facendo operazioni "random"....
    Ho controllato i file di configurazione ed è tutto ok, (vi posto le righe principali non si sa mai che mi sia sfuggito) il sito funziona correttamente sia nel manager sia nel funzionamento. Tutto tranne gallery!

    Ad esempio:
    $modx_core_path= '/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/';
    
    $modx_processors_path= '/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/model/modx/processors/';
    
    $modx_connectors_path= '/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/connectors/';
    $modx_connectors_url= '/xampp/museo/connectors/';
    
    $modx_manager_path= '/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/manager/';
    $modx_manager_url= '/xampp/museo/manager/';
    
    $modx_base_path= '/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/';
    $modx_base_url= '/xampp/museo/';
    
    $http_host='127.0.0.1';
    
    $modx_assets_path= '/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/assets/';
    $modx_assets_url= '/xampp/museo/assets/';
    


    Questi sono i config.core.php, tutti e tre uguali
    <?php
    define('MODX_CORE_PATH', '/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/');
    define('MODX_CONFIG_KEY', 'config');
    ?>


    I permessi delle cartelle sono cosi settati
    assets/gallery 777 (prima a 755 ma non cambia nulla)
    assets/components/gallery 755

    Non so piu dove sbattere la testa...

    Posto anche il log, come si vede alcuni percorsi sono errati ma se modifico i path nel file config.inc.php o in config.core.php non funziona piu niente.

    Analizzando il log: "could not create directory" effettivamente non mi crea nulla nella cartella assets/gallery poi gli altri errori dovrebbero essere riconducibili alla mancanza della cartella 7.

    [2014-03-06 21:51:25] (ERROR @ /xampp/museo/assets/components/gallery/connector.php) [Gallery] Could not create directory (possibly already exists?): assets/gallery/7/
    [2014-03-06 21:51:26] (ERROR @ /Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/model/phpthumb/phpthumb.class.php : 3210) PHP warning: file_get_contents(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG): failed to open stream: No such file or directory
    [2014-03-06 21:51:26] (ERROR @ /xampp/museo/assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG - Debug: Array
    (
        [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
        [1] => setCacheDirectory() starting with config_cache_directory = "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/cache/phpthumb) = "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
        [3] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/Applications/XAMPP/xamppfiles/htdocs) to $filename (/xampp/museo//xampp/museo/assets/gallery/7/24.JPG) resulting in ($AbsoluteFilename = "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo//xampp/museo/assets/gallery/7/24.JPG") in file "phpthumb.class.php" on line 1025
        [4] => setSourceFilename(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo//xampp/museo/assets/gallery/7/24.JPG) set $this->sourceFilename to "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo//xampp/museo/assets/gallery/7/24.JPG" in file "phpthumb.class.php" on line 243
        [5] => setCacheDirectory() starting with config_cache_directory = "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/assets/components/gallery/cache/" in file "phpthumb.class.php" on line 919
        [6] => setting config_cache_directory to realpath(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/assets/components/gallery/cache) = "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/assets/components/gallery/cache" in file "phpthumb.class.php" on line 947
        [7] => setSourceFilename(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG) set $this->sourceFilename to "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG" in file "phpthumb.class.php" on line 243
        [8] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 100.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
        [9] =>   file_exists() = 0 in file "phpthumb.class.php" on line 1101
        [10] => is_executable() = 0 in file "phpthumb.class.php" on line 1102
        [11] => ImageMagickThumbnailToGD() aborting because cannot find convert in $this->config_imagemagick_path (), and `which convert` returned () in file "phpthumb.class.php" on line 1131
        [12] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
        [13] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
        [14] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 902
        [15] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
        [16] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root (/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/) to $filename (/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG) resulting in ($AbsoluteFilename = "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG") in file "phpthumb.class.php" on line 1022
        [17] => $this->sourceFilename set to "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG" in file "phpthumb.class.php" on line 813
        [18] => phpThumb() v1.7.9-200712090829
    
    "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG" does not exist in file "phpthumb.class.php" on line 3647
        [19] => setCacheDirectory() starting with config_cache_directory = "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/assets/components/gallery/cache" in file "phpthumb.class.php" on line 919
        [20] => setting config_cache_directory to realpath(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/assets/components/gallery/cache) = "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/assets/components/gallery/cache" in file "phpthumb.class.php" on line 947
        [21] => SetCacheFilename() _src set from md5($this->sourceFilename) "/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG" = "927aaf150c4f25f728b4c99c6260f6dd" in file "phpthumb.class.php" on line 3077
        [22] => SetCacheFilename() _par set from md5(_farC_zc1_h100_w100_dpi150_q75) in file "phpthumb.class.php" on line 3110
        [23] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
        [24] => GetImageSize("/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG") failed in file "phpthumb.class.php" on line 2920
        [25] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [26] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
        [27] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
        [28] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
        [29] => SetOrientationDependantWidthHeight() setting w="100", h="100" in file "phpthumb.class.php" on line 2892
        [30] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2979
        [31] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
        [32] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
        [33] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 1865
        [34] => starting ImageCreateFromFilename(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG) in file "phpthumb.class.php" on line 3152
        [35] => empty $filename or GetImageSize(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG) failed in file "phpthumb.class.php" on line 3201
        [36] => Populating $rawimagedata in file "phpthumb.class.php" on line 3209
        [37] => cannot fopen(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/xampp///xampp//assets/gallery/7/24.JPG) in file "phpthumb.class.php" on line 3212
        [38] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
        [39] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
        [40] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
        [41] => phpThumb() v1.7.9-200712090829
    
    Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
        [42] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
    )
    
    [2014-03-06 21:51:26] (ERROR @ /Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/components/gallery/processors/web/phpthumb.php : 150) PHP warning: file_get_contents(/Applications/XAMPP/xamppfiles/htdocs/xampp/museo/assets/components/gallery/cache/_Applications_XAMPP_xamppfiles_htdocs_xampp_museo_xampp___xampp__assets_gallery_7_24.JPG.45f676dbc2dafa8bfaf008d5f2054793.jpg): failed to open stream: No such file or directory



    Grazie!!
      • 37123
      • 186 Posts
      Ah si, visto che non ho creato nessuna galleria e devo ancora scegliere cosa usare ho pensato a cliche e ho installato anche quello, ho creato un album e bumm, non mi fa fare l'upload di nessuna immagine!

      Che nervi...

      [2014-03-06 22:41:16] (ERROR @ /Applications/XAMPP/xamppfiles/htdocs/xampp/museo/core/components/cliche/model/cliche/helpers/uploadfilexhr.class.php : 18) PHP warning: stream_copy_to_stream() expects parameter 2 to be resource, boolean given

      • se non ricordo male sei su Aruba?

        Aruba ha dei problemi con alcuni extra di modx, in particolare con Gallery ho notato che ogni volta che si esegue un'installazione sono costretto ad usare il tool per la "Riparazione delle Permission".

        Ad ogni modo un paio di giorni fa è uscita la nuova versione di gallery 1.6.1, magari fai l'upgrade e poi utilizza il Tool delle Permission. Io ho fatto così per farlo funzionare correttamente.
          Francesco Mussoni | MODX Ambassador | Skype: solidusite2 | Email: [email protected]
          • 37123
          • 186 Posts
          Ma che, sono ancora sul server XAMPP in locale... Ho gia installato l'ultima versione.
          Sicuramente è un problema di permessi sulle cartelle o di path errati ma non riesco a trovare il bandolo della matassa.
            • 37123
            • 186 Posts
            Stavo pensando ad una cosa: possibile che questi problemi siano legati alla versione di jquery? Io non penso...
            Gallery usa la 1.3.2 mentre io la sostituisco con la 1.8.3 che ha delle funzioni in piu che mi servono.
            Ho provato ad insistere con cliche ma nemmeno quello riesco ad installarlo (sono in locale). Che altro posso controllare visto che nessuno dei due plugin funziona? Altri plugin simili?
            • Guardando il tuo log degli errori si legge questo percorso:
              "museo/xampp///xampp//assets"

              magari controlla fra le impostazioni di gallery se è settato un percorso sbagliato...
                TilliLab | MODX Ambassador
                website
                • 37123
                • 186 Posts
                l'ho visto anche io ma nei settaggi di gallery non trovo nulla di fuori posto. Trovo tutto nel db cercando in tutte le tabelle "gallery" giusto? O c'e altro?
                  • 36613
                  • 328 Posts
                  Quote from: solidusite at Mar 07, 2014, 08:31 AM
                  se non ricordo male sei su Aruba?

                  Aruba ha dei problemi con alcuni extra di modx, in particolare con Gallery ho notato che ogni volta che si esegue un'installazione sono costretto ad usare il tool per la "Riparazione delle Permission".

                  Ad ogni modo un paio di giorni fa è uscita la nuova versione di gallery 1.6.1, magari fai l'upgrade e poi utilizza il Tool delle Permission. Io ho fatto così per farlo funzionare correttamente.

                  Quando parti di Tool delle Permission a cosa ti riferisci ? C'è un modulo che fa questo ? Anche io ho fatto l'upgrade della gallery e non funziona. Da anche a me questo errore:
                   [2014-03-18 09:42:56] (ERROR @ /assets/components/gallery/connector.php) [Gallery] Could not create directory (possibly already exists?): assets/gallery/63/
                  • No no, si tratta dell'opzione disponibile sul pannello di gestione di un dominio Aruba.
                    Quando installo gallery poi mi si corrompono le cartelle (o almeno questo è quello che dice).
                    Eseguendo la riparazione delle Permission si risolve il famoso Internal Server Errror quando apri l'extra gallery.
                      Francesco Mussoni | MODX Ambassador | Skype: solidusite2 | Email: [email protected]
                      • 36613
                      • 328 Posts
                      A me non si apre quel Internal Server Errror, ho il problema che la gallery non riesce a creare le cartelle dentro a assets/gallery/ . Nel codice ho trovoato proprio una funziona che fallisce che è questa:
                      /* if directory doesnt exist, create it */
                      if (!$mediaSource->createContainer($targetDir,'/')) {

                      dentro a core/components/gallery/model/gallery/galalbum.class.php ora devo capire cosa vuole quella funzione per funzionare.