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!!