This is what I got when I did a test harness after using the CreateRandomTree then I click on Test Harness at the top of the page.
My permission/owner on the data dir is owned by nobody /home/photo/gallerydata/
Any idea? Oh ya and also when I tried to go to the main page again. It gives me these errors too.
Warning: mkdir() failed (Permission denied) in /home/httpd/html/alexia/gallery2/lib/smarty/Smarty.class.php on line 1604
Warning: Smarty error: problem creating directory "/%%117/%%1172603085" in /home/httpd/html/alexia/gallery2/lib/smarty/Smarty.class.php on line 589
Warning: Smarty error: problem writing '/%%117/%%1172603085/index.tpl.php.' in /home/httpd/html/alexia/gallery2/lib/smarty/Smarty.class.php on line 589
Warning: Failed opening '/%%117/%%1172603085/index.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/html/alexia/gallery2/lib/smarty/Smarty.class.php on line 686
Warning: mkdir() failed (Permission denied) in /home/httpd/html/alexia/gallery2/lib/smarty/Smarty.class.php on line 1604
Warning: Smarty error: problem creating directory "/%%108/%%1080362458" in /home/httpd/html/alexia/gallery2/lib/smarty/Smarty.class.php on line 589
Warning: Smarty error: problem writing '/%%108/%%1080362458/debug.tpl.php.' in /home/httpd/html/alexia/gallery2/lib/smarty/Smarty.class.php on line 589
Warning: Failed opening '/%%108/%%1080362458/debug.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/html/alexia/gallery2/lib/smarty/Smarty.class.php on line 775
Posts: 7994
Did you successfully complete setup/setup.php?
Posts: 7994
I found some issues with 4.2.3 when open_basedir or safe_mode is set. Try it again with the latest code from CVS and see if it works for you now.
Posts: 2
Thanks, Bharat.
Yep2 it works now but hhehe another problems are out again, below are the steps that I did:
1. Initialise everything including finishing setup/setup.php.(works)
2. CreateRandomTree and CreateRandomUser (each 50). (works)
3. Browse the random albums/pics. (works)
4. EmptyGallery (works) (Deletes everything except /home/photo/gallerydata and /home/photo/gallerydata/smarty.)
5. CreateRandomTree (500) again failed.
6. Tried again CreateRandomTree (50) failed too.
The errors are:
Test: core :: CreateRandomTree [50 iteration(s)]
Timing: 0.0672 elapsed, 744.3255 per second
Error: Error (ERROR_COLLISION)
in modules/core/classes/GalleryAlbumItem.class at line 166
in modules/core/test/TestCase/CreateRandomTree.class at line 75
in modules/core/test/TestCase/CreateRandomTree.class at line 39
in setup/test/TestCase.class at line 31
in setup/test/index.php at line 185
Output:
mkdir(/home/photo/gallerydata/albums/root/foo_0_4352, 755)
Warning: mkdir() failed (No such file or directory) in /home/httpd/html/alexia/gallery2/modules/core/classes/GalleryPlatform.class on line 397
Need to use a -p ? since that I saw the code that you are trying to mkdir a directory under inexistence directory.
Thanks :smile:
Posts: 7994
Hmm. I'll see if I can reproduce that.