ERROR_BAD_PATH on tree move

TimothyEHarris

Joined: 2003-12-31
Posts: 9
Posted: Mon, 2005-04-04 00:55

Hi all,

I got G2 running to replace an older G1 implementation I had up. I've set it up to automatically create new galleries for new users when they log in for the first time. One minor complaint is that imported users from G1 are getting galleries built for them... (it would be nice to link them to the galleries they already own) but that's a minor issue.

To solve the problem, I decided to log in as site-admin and simply move the contents of each user's gallery to the gallery that was auto-created. The move operations, however, are failing with a series of bad path errors. Details below:

Error Detail -
Error (ERROR_BAD_PATH)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\GalleryFileSystemEntity.class at line 262 (GalleryAlbumItem::error)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\GalleryItem.class at line 375 (GalleryAlbumItem::move)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\GalleryAlbumItem.class at line 408 (GalleryAlbumItem::move)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\ItemMove.inc at line 143 (GalleryAlbumItem::move)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\main.php at line 173 (ItemMoveController::handleRequest)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\main.php at line 79
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\main.php at line 70

Any ideas?

Thanks,

Tim Harris
----

Gallery URL (optional):www.chzygallery.com
Gallery version:2.0-beta-1+ (snapshot 04/03/05)
Webserver (with version):Apache/2.0.52 (Win32)
Datatabase (with version): mysql 4.1.10a-nt
PHP version (eg 4.2.1):PHP/5.0.3
phpinfo URL (optional):
Graphics Toolkit(s): NetPBM, SquareThumb
Operating system: Windows NT 5.1 build 2600
Web browser/version:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
G1 version (for migration bugs): n/a

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Mon, 2005-04-04 07:12

Maybe the " " (space) in the path? Though I think G2 is okay with spaces. You sure all the paths you might have put are right?

 
TimothyEHarris

Joined: 2003-12-31
Posts: 9
Posted: Mon, 2005-04-04 19:00

The rest of the gallery is working fine -- it just appears to be move operations that are breaking, so I doubt it's a configuration problem.

Additional info - the albums I'm trying to move have sub-albums -- is there perhaps a recursion problem?

Tim Harris

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-04-04 19:09

try editing FileSystemEntity.class line 262.. right after __LINE__ and before ); add:
, "$currentPath -> $newPath"
when you try again it will show you what it is trying to rename.. does this give any clue what the problem is?

(or update to tomorrow's nightly snapshot.. i've added this info in the error msg)

 
TimothyEHarris

Joined: 2003-12-31
Posts: 9
Posted: Mon, 2005-04-04 21:25

By Tomorrow's, do you mean the build that will get posted in the early AM tonight? I've been keeping relatively current on builds, so I may just do that rather than start busting open files myself :)

I'll try it and post results back here as soon as I do... (I'm at work right now, otherwise I'd try it right now :wink: )

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-04-04 22:10

yes, the next nightly build to be made..

 
TimothyEHarris

Joined: 2003-12-31
Posts: 9
Posted: Tue, 2005-04-05 01:19

Ok.. so I'm not finding the file FileSystemEntity.class anywhere under my gallery2 directory... maybe THAT's the problem? I swear I haven't been using WinZip to unpack the nightlies!

Tim

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-05 01:34

sorry, wasn't super exacto precise.. I was referring to:
Error (ERROR_BAD_PATH)
in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\GalleryFileSystemEntity.class at line 262 (GalleryAlbumItem::error)

 
TimothyEHarris

Joined: 2003-12-31
Posts: 9
Posted: Tue, 2005-04-05 01:42

I figured that out and felt stupid :)

and now for the really weird part...

I stopped apache, made the edit, restarted apache, and tried the move... and, it worked...

I'd stopped and started apache before, and that hadn't solved the problem for me...

so, while it's strange that adding debug information to the error message would suddenly solve it, I appreciate it nonetheless!!!

Thanks!

Tim Harris

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-04-05 03:22

The problem is probably still lurking there. When it happens again, let us know.

 
TimothyEHarris

Joined: 2003-12-31
Posts: 9
Posted: Tue, 2005-04-05 04:01

will do - thanks!