Автоматически не создаются папки пакетом - Gallery
[[РЕШЕНО!]]
Привет всем! Такая беда случилась, пакет gallery отказывается создавать папки в каталоге /assets/gallery
Те самые папки в которых хранятся картинки, названия у этих папок идут от id альбома.
Права стоят уже на все что только можно.
В логе вот это показывает.
Привет всем! Такая беда случилась, пакет gallery отказывается создавать папки в каталоге /assets/gallery
Те самые папки в которых хранятся картинки, названия у этих папок идут от id альбома.
Права стоят уже на все что только можно.
В логе вот это показывает.
[2014-03-17 17:17:52] (ERROR @ /assets/components/gallery/connector.php) [Gallery] Album Type: 8
[2014-03-17 17:17:52] (ERROR @ /assets/components/gallery/connector.php) [Gallery] Could not create directory (possibly already exists?): assets/gallery/8/
[2014-03-17 17:17:52] (ERROR @ /var/www/clients2014/data/www/САЙТ.com/core/components/gallery/model/gallery/galalbum.class.php : 224) PHP warning: fopen(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg): failed to open stream: No such file or directory
[2014-03-17 17:17:52] (ERROR @ /var/www/clients2014/data/www/САЙТ.com/core/components/gallery/model/gallery/galalbum.class.php : 225) PHP warning: stream_copy_to_stream() expects parameter 2 to be resource, boolean given
[2014-03-17 17:17:52] (ERROR @ /var/www/clients2014/data/www/САЙТ.com/core/components/gallery/model/gallery/galalbum.class.php : 227) PHP warning: fclose() expects parameter 1 to be resource, boolean given
[2014-03-17 17:17:53] (ERROR @ /var/www/clients2014/data/www/САЙТ.com/core/model/phpthumb/phpthumb.class.php : 1403) PHP warning: getimagesize(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg): failed to open stream: No such file or directory
[2014-03-17 17:17:53] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg - Debug: Array
(
[0] => phpThumb() v1.7.11-201108081537 in file "phpthumb.class.php" on line 216
[1] => setCacheDirectory() starting with config_cache_directory = "/var/www/clients2014/data/www/САЙТ.com/core/cache/phpthumb/" in file "phpthumb.class.php" on line 958
[2] => setting config_cache_directory to realpath(/var/www/clients2014/data/www/САЙТ.com/core/cache/phpthumb) = "/var/www/clients2014/data/www/САЙТ.com/core/cache/phpthumb" in file "phpthumb.class.php" on line 986
[3] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/var/www/clients2014/data/www/САЙТ.com) to $filename (/assets/gallery/8/154.jpg) resulting in ($AbsoluteFilename = "/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg") in file "phpthumb.class.php" on line 1063
[4] => setSourceFilename(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) set $this->sourceFilename to "/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg" in file "phpthumb.class.php" on line 262
[5] => setCacheDirectory() starting with config_cache_directory = "/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/cache/" in file "phpthumb.class.php" on line 958
[6] => setting config_cache_directory to realpath(/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/cache) = "/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/cache" in file "phpthumb.class.php" on line 986
[7] => setSourceFilename(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) set $this->sourceFilename to "/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg" in file "phpthumb.class.php" on line 262
[8] => CleanUpCacheDirectory() set to purge (30.0 days; 100.00 MB; 10,000 files) in file "phpthumb.class.php" on line 673
[9] => file_exists() = 0 in file "phpthumb.class.php" on line 1165
[10] => file_exists_ignoreopenbasedir() = 1 in file "phpthumb.class.php" on line 1166
[11] => is_file() = 0 in file "phpthumb.class.php" on line 1167
[12] => is_executable() = 0 in file "phpthumb.class.php" on line 1168
[13] => using ImageMagick path from $this->config_imagemagick_path () in file "phpthumb.class.php" on line 1171
[14] => ImageMagick version checked with "'' --version" in file "phpthumb.class.php" on line 1215
[15] => ImageMagick did not return recognized version string () in file "phpthumb.class.php" on line 1221
[16] => ImageMagick convert --version says "" in file "phpthumb.class.php" on line 1223
[17] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 923
[18] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 934
[19] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 941
[20] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 951
[21] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root (/var/www/clients2014/data/www/САЙТ.com/) to $filename (/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) resulting in ($AbsoluteFilename = "/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg") in file "phpthumb.class.php" on line 1060
[22] => $this->sourceFilename set to "/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg" in file "phpthumb.class.php" on line 852
[23] => phpThumb() v1.7.11-201108081537
http://phpthumb.sourceforge.net
Error messages disabled in file "phpthumb.class.php" on line 3845
[24] => setCacheDirectory() starting with config_cache_directory = "/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/cache" in file "phpthumb.class.php" on line 958
[25] => setting config_cache_directory to realpath(/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/cache) = "/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/cache" in file "phpthumb.class.php" on line 986
[26] => SetCacheFilename() _src set from md5($this->sourceFilename) "/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg" = "3db344d957f9e84d2fe4adfaec8d502a" in file "phpthumb.class.php" on line 3238
[27] => SetCacheFilename() _par set from md5(_farC_zc1_h100_w100_dpi150_q75) in file "phpthumb.class.php" on line 3271
[28] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3033
[29] => GetImageSize(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) says image is x in file "phpthumb.class.php" on line 3043
[30] => GetImageSize("/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg") failed in file "phpthumb.class.php" on line 3076
[31] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1315
[32] => phpThumb_tempnam() returning "/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/pThumbm4DNfp" in file "phpthumb.class.php" on line 4070
[33] => ImageMagickSwitchAvailable(thumbnail) = 0 in file "phpthumb.class.php" on line 1255
[34] => IMuseExplicitImageOutputDimensions = 0 in file "phpthumb.class.php" on line 1390
[35] => ImageMagickSwitchAvailable(density) = 0 in file "phpthumb.class.php" on line 1255
[36] => GetImageSize(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) FAILED with error "" in file "phpthumb.class.php" on line 1409
[37] => GetImageSize(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) failed in file "phpthumb.class.php" on line 1556
[38] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 1939
[39] => ImageMagickSwitchAvailable(quality;interlace) = 0 in file "phpthumb.class.php" on line 1252
[40] => ImageMagick called as ('' -resize '100x100' '/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg[0]' jpeg:'/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/pThumbm4DNfp' 2>&1) in file "phpthumb.class.php" on line 1958
[41] => ImageMagick failed with message () in file "phpthumb.class.php" on line 1963
[42] => deleting "/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/pThumbm4DNfp" in file "phpthumb.class.php" on line 1991
[43] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3083
[44] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3012
[45] => SetOrientationDependantWidthHeight() setting w="100", h="100" in file "phpthumb.class.php" on line 3028
[46] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3140
[47] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3398
[48] => starting ImageCreateFromFilename(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) in file "phpthumb.class.php" on line 3313
[49] => empty $filename or GetImageSize(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) failed in file "phpthumb.class.php" on line 3362
[50] => Populating $rawimagedata in file "phpthumb.class.php" on line 3370
[51] => cannot fopen(/var/www/clients2014/data/www/САЙТ.com/assets/gallery/8/154.jpg) in file "phpthumb.class.php" on line 3381
[52] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3469
[53] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3521
[54] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3523
[55] => phpThumb() v1.7.11-201108081537
http://phpthumb.sourceforge.net
Error messages disabled in file "phpthumb.class.php" on line 3845
[56] => SourceImageToGD() failed in file "phpthumb.class.php" on line 342
)
[2014-03-17 17:17:53] (ERROR @ /var/www/clients2014/data/www/САЙТ/core/components/gallery/processors/web/phpthumb.php : 150) PHP warning: file_get_contents(/var/www/clients2014/data/www/САЙТ.com/assets/components/gallery/cache/_var_www_clients2014_data_www_САЙТcom_assets_gallery_8_154.jpg.01e70f3400035db63893c23c29ca439e.jpg): failed to open stream: No such file or directory
Поблагодарить автора
Отправить деньги
Комментарии: 4
Заработало! Но прилост откатиться на версию модуля галереи 1.5.2 вместо 1.6.1. Спасибо за внимание)
Я тоже ставил свежую версию Gallery, причем поверх старой. Она вообще с проблемами встала и была не работоспособна.
Да, в новой папка не создается, вылечивается заменой строк в файле
\core\components\gallery\model\gallery\galalbum.class.php
/* if directory doesnt exist, create it */
if (!$mediaSource->createContainer($targetDir,'/')) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not create directory (possibly already exists?): '.$targetDir);
}
на
/* if directory doesnt exist, create it */
if (!mkdir($this->getPath().'/', 0777)) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not create directory (possibly already exists?): '.$this->getPath().'/');
}
\core\components\gallery\model\gallery\galalbum.class.php
/* if directory doesnt exist, create it */
if (!$mediaSource->createContainer($targetDir,'/')) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not create directory (possibly already exists?): '.$targetDir);
}
на
/* if directory doesnt exist, create it */
if (!mkdir($this->getPath().'/', 0777)) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not create directory (possibly already exists?): '.$this->getPath().'/');
}
Правильнее даже на
/* if directory doesnt exist, create it */
if ((!file_exists($this->getPath())) && (!@mkdir($this->getPath(), 0777))) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not create directory (possibly already exists?): '.$this->getPath());
}
/* if directory doesnt exist, create it */
if ((!file_exists($this->getPath())) && (!@mkdir($this->getPath(), 0777))) {
$this->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[Gallery] Could not create directory (possibly already exists?): '.$this->getPath());
}
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.