Since a new release of Gallery (1.6.1) was available, I just updated in case it fixed the problem. It turned it did not fix the TV problem, worse : nothing now works any more : all gallery related picture (TV selection screen, Gallery management screen, Content pages) are now "broken" image files.
If I look at the URL generated for one picture (on the generated website) I see :
http://www.starway.org/test/modx/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=1600&h=1206&f=png&src=%2Ftest%2Fmodx%2F%2Ftest%2Fmodx%2Fassets%2Fgallery%2F2%2F31.jpg
Then, if I look at the error message generated into MODX :
[3] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/var/www/StarWay/apps/MODx_Test) to $filename (/test/modx//test/modx/assets/gallery/2/31.jpg) resulting in ($AbsoluteFilename = "/var/www/StarWay/apps/MODx_Test/test/modx//test/modx/assets/gallery/2/31.jpg") in file "modphpthumb.class.php" on line 262
It turns out that :
- The URL of the image is incorrect in the first place. The src parameters contains twice the virtual root of my website.
- When phpthumb processes the order, we get an absolute path for the picture also incorrect : root path of the web directory (correct) + virtual root (incorrect) + virtual root (incorrect) + assets/gallery/... (correct)
It seams that the new gallery generates wrong src paths for pictures.
Is there anybody else experiencing the same kind of problem.