I've used Gallery so many times on this server and it's worked fine on other sites, but for some reason it's not liking this one.
Long story short, I'm redoing an older Modx website (2.2.8-pl) on 2.3.2-pl, I'm reusing some of my old chunks, snippets and tvs but all on a fresh Modx install.
This site has over 170 photo galleries (wedding site) so I moved the galleries over from the old site (together with sql export) and I got them working just fine on the new site, I can see thumbs in backend and frontend and everything looks like it should.
The problem is when I try to make a new Album and then try to add images to the new album, it adds the new album to my album list in gallery and let's say it gives it an ID #178, so then I go to my gallery/files folder and I can only see the older folders (178 is nowhere to be found).
I've set my permissions to 755 (My server is using suPHP) all the way up to my assets folder in the root.
I've also set phpthumb_allow_src_above_docroot to YES
But I must be missing something else. This is the enormous error I get when trying to add 1 single image to the new album, could someone help me decipher it please? I see it has something to do with connector.php but I've tried all sorts of permissions on it to no avail.
It's not creating my directories "Could not create directory (possibly already exists?)" (chmod 755 (also tried 777)). What gives?
Many thanks in avance to any light shed on this.
[2014-12-16 03:32:34] (ERROR @ /assets/components/gallery/connector.php) [Gallery] Album Type: 151
[2014-12-16 03:32:34] (ERROR @ /assets/components/gallery/connector.php) [Gallery] Could not create directory (possibly already exists?): assets/img/gallery/files/151/
[2014-12-16 03:32:34] (ERROR @ /home/csurfcom/public_html/core/components/gallery/model/gallery/galalbum.class.php : 224) PHP warning: fopen(/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg): failed to open stream: No such file or directory
[2014-12-16 03:32:34] (ERROR @ /home/csurfcom/public_html/core/components/gallery/model/gallery/galalbum.class.php : 225) PHP warning: stream_copy_to_stream() expects parameter 2 to be resource, boolean given
[2014-12-16 03:32:34] (ERROR @ /home/csurfcom/public_html/core/components/gallery/model/gallery/galalbum.class.php : 227) PHP warning: fclose() expects parameter 1 to be resource, boolean given
[2014-12-16 03:32:34] (ERROR @ /assets/components/gallery/connector.php) [phpThumbOf] Could not generate thumbnail: /home/csurfcom/public_html/assets/img/gallery/files/151/2734.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 (/assets/img/gallery/files/151/2734.jpg) resulting in ($AbsoluteFilename = "/assets/img/gallery/files/151/2734.jpg") in file "phpthumb.class.php" on line 1216
[2] => resolvePath: /assets/img/gallery/files/151/2734.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1096
[3] => resolvePath: iteration, path=/assets/img/gallery/files/151/2734.jpg, base path = /home/csurfcom/public_html/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 7 in file "phpthumb.class.php" on line 1131
[6] => resolvePath: stop at path=/assets/img/gallery/files/151/2734.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/csurfcom/public_html/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(/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg) set $this->sourceFilename to "/home/csurfcom/public_html/assets/img/gallery/files/151/2734.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] => CleanUpCacheDirectory() skipped because "/home/csurfcom/public_html/assets/components/gallery/cache//phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 677
[13] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 925
[14] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 936
[15] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 943
[16] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 953
[17] => ResolveFilenameToAbsolute() NOT prepending $this->config_document_root (/home/csurfcom/public_html/) to $filename (/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg) resulting in ($AbsoluteFilename = "/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg") in file "phpthumb.class.php" on line 1216
[18] => resolvePath: /home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1096
[19] => resolvePath: iteration, path=/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg, base path = /home/csurfcom/public_html in file "phpthumb.class.php" on line 1115
[20] => resolvePath: stop at component 10 in file "phpthumb.class.php" on line 1131
[21] => resolvePath: stop at path=/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg in file "phpthumb.class.php" on line 1134
[22] => resolvePath: path parsed, over in file "phpthumb.class.php" on line 1140
[23] => $this->sourceFilename set to "/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg" in file "phpthumb.class.php" on line 849
[24] => 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
[25] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg" = "c5559712a1f26991bcecef1de339b13b" in file "phpthumb.class.php" on line 3443
[26] => SetCacheFilename() _par set from md5(_farC_zc1_h80_w100_dpi150_q75) in file "phpthumb.class.php" on line 3476
[27] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3236
[28] => GetImageSize(/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg) says image is x in file "phpthumb.class.php" on line 3246
[29] => GetImageSize("/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg") failed in file "phpthumb.class.php" on line 3279
[30] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1508
[31] => ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 2203
[32] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3286
[33] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3215
[34] => SetOrientationDependantWidthHeight() setting w="100", h="80" in file "phpthumb.class.php" on line 3231
[35] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3343
[36] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3603
[37] => starting ImageCreateFromFilename(/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg) in file "phpthumb.class.php" on line 3518
[38] => empty $filename or GetImageSize(/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg) failed in file "phpthumb.class.php" on line 3567
[39] => Populating $rawimagedata in file "phpthumb.class.php" on line 3575
[40] => cannot fopen(/home/csurfcom/public_html/assets/img/gallery/files/151/2734.jpg) in file "phpthumb.class.php" on line 3586
[41] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3674
[42] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3726
[43] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3728
[44] => 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
[45] => SourceImageToGD() failed in file "phpthumb.class.php" on line 351
)
[2014-12-16 03:32:34] (ERROR @ /home/csurfcom/public_html/core/components/gallery/processors/web/phpthumb.php : 169) PHP warning: filemtime(): stat failed for /home/csurfcom/public_html/assets/components/gallery/cache/_home_csurfcom_public_html_assets_img_gallery_files_151_2734.jpg.e2e8b1b5e26a3ffaacec264b6248b0bd.jpg
[2014-12-16 03:32:34] (ERROR @ /home/csurfcom/public_html/core/components/gallery/processors/web/phpthumb.php : 181) PHP warning: file_get_contents(/home/csurfcom/public_html/assets/components/gallery/cache/_home_csurfcom_public_html_assets_img_gallery_files_151_2734.jpg.e2e8b1b5e26a3ffaacec264b6248b0bd.jpg): failed to open stream: No such file or directory