I am install the lastest version of G2 in my computer, I think I was setup successfully, but when I choose 'add item' in gallery, is show error :cry: :
Error (ERROR_BAD_PATH)
in c:\web\gallery_2\modules\core\classes\GalleryPhotoItem.class at line 119
in c:\web\gallery_2\modules\core\ItemAddChildren.inc at line 112
in c:\web\gallery_2\main.php at line 130
in c:\web\gallery_2\main.php at line 46
Anyone can help me to fix this problem?? Thanks~
Posts: 4
First make sure that the directory in the config.php variable $gallery->setConfig('data.gallery.base', ''); is set corectly and the directory actually exists.
Secondly, use / instead of back slash (\).
Thridly, even though you are using Windows (I assume form your paths) make sure that your albums directory is writeable, go to Properties of the albums folder and make sure Read-Only in unchecked.
Hope that helps,
Ian
Posts: 16
Yes, I was make sure that the directory was actually exists, and I using / shash already....... but still have error............ :cry:
Thanks for your reply!
Posts: 7994
That's interesting. That particular failure indicates the the file you uploaded from your browser wasn't passed from PHP to Gallery. Turn on debug mode (in config.php) and then run this again. When the error occurs, you should get a lot of debug output and near the bottom of the output should be a "file_exists" call that shows what file Gallery *expects* to see. Post that debug info here and we may be able to figure out what's going wrong.
Posts: 16
thanks bharat,
here is my debug info, I have save as a txt file,
http://hoktong.2myip.net/doc/debuginfo.txt
Posts: 37
Maybe it's not so good idea to use temp dir path with spaces in it?
Posts: 7994
Hmm. That looks very much like a bug I fixed a while back. What version of the code are you running? (ie, where did you get it from).
Posts: 7994
Oh, and can you log in as admin and run the unit tests? After logging in as admin, browse to gallery2/setup/phpunit and tell me if any tests fail.
Posts: 16
oh, I can upload photo now, but alway crash..........
anyway, here have a look:
http://hoktong.2myip.net/gallery2/main.php
Posts: 7994
TONG@HK -- how did you fix the upload problem? I checked out your site and it looked fine to me -- what do you mean by "...but always crash"?
Posts: 16
my root have three gallery folder:
first one is called 'gallery' <-- using G1 1.3.3 work fine
second one called 'gallery2' <-- G1 1.3.3 also
thrid one called 'gallery_2' <-- I try to using G2
I solved the upload problem when I deleted the second gallery 'gallery2', and rename the 'gallery_2' to 'gallery2'
and I can use G2 now, but it sometime show me error message, but I forgotten note that, and also sometime no responseable when I click into a album........ (happened at the collect most photo album) :cry: