Using today's build (08-16) I started having trouble. I was previously running the released alpha build without problem.
When I try to add a sub-album I get the following error:
Quote:
Warning: fopen(c:\gallery2\g2data\locks\0/6/6): failed to open stream: No such file or directory in c:\gallery2\modules\core\classes\GalleryPlatform.class on line 304
I also have errors throughout G2 that are similar. I find that PHP is trying to create the folder but fails with PATH NOT FOUND. I think that under windows you cannot create a full path if the parent path doesn't exist. So I end up having to manually create the c:\gallery2\g2data\locks\?\? folder myself. Then everything works normally.
Is this a known issue? Is it specific to windows? Is there anything that I can do to avoid it?
Thanks,
-mg
Posts: 7994
Hrm. That shouldn't be happening -- we check to make sure that the lock directory exists (and create the whole hierarchy, if necessary) before trying to read or write a lock. I just did a complete reinstall from scratch of the latest code on my WinXP box (and fixed a few bugs in the process -- one of which was that adodb-lib.inc.php was missing which broke the install) and it worked properly for me. I was able to add a bunch of images, no problem.
Can you delete everything and try again from scratch and see if you can reproduce the problem? Any info you can provide to help me reproduce the problem would be great. Thanks.
Posts: 100
I think that the problem may have been a result of re-using the database from the earlier version.
What I did to get around the problem was rebuild re-sized and thumbnails for each existing album. Now I can create and add without error.
At this time I do not believe that this is a bug.
Thanks,
-mg
Posts: 40
i just deleted my database and installed under linux (beta 1) and have the same problem...
its not just the locks dir, but the smarty/ dir and sessions/ and their some sundirectories.
have other people seen this, or am i just special??
Posts: 8601
if you delete your database you must also delete everything under g2data (or use a new g2data dir when you reinstall)
Posts: 40
yeah, i tried that... which is why gallery cannot create the directories as opposed the them containing bad data
Posts: 40
Ok, it works now.
I re-ran the setup without deleting the g2data dir or dropping the database, and this time it has successfully created all the subdirectories (i think)