From: Douglas E. M. <do...@ke...> - 2003-05-20 01:25:03
|
Ok all, I just installed the lastest version from the CVS, and all works great except when trying to do things to specific picture such as making the image the new album image, or adding a description to an image. The resulting error is always the same.. please note that I editied the die code on line 154 of index.cgi to show the current value of mode. It would seem we have more data in that value than we want, so it is not matching any of the if else statements and thus is terminating out on line 154 for invalid mode. Let me say I am no pro at this, my skills tend to be limited to finding the problem, and not always fixing it. I do however LOVE this program. Have been using IDS for over a year now. And if there is anything I can do to support your project please let me know. Software error: Sorry, invalid mode. Mode "editimage!=/Stuff/101MSDCF/DSC00017.JPG" does not exist. at /home/web/kenohki/pictures/admin/index.cgi line 154. For help, please send mail to the webmaster (do...@ke...), giving this error message and the time and date of the error. p.s. I LOVE the zip upload feature. I just wish you could choose weather to create a new album or put them in an existing album. As a side note as well, being able to delete albums, and perhaps move files from one ablum to another might be nice. Doug Morris |
From: Jeff M. <jef...@vi...> - 2003-05-20 02:06:58
|
On Mon, 2003-05-19 at 21:22, Douglas E. Morris wrote: <snip> >=20 > Software error: >=20 > Sorry, invalid mode. Mode "editimage=11!=3D/Stuff/101MSDCF/DSC00017.JPG"= does=20 > not exist. at /home/web/kenohki/pictures/admin/index.cgi line 154. >=20 I can reproduce this. May be a week before I can provide a fix. > p.s. I LOVE the zip upload feature. I just wish you could choose weather= =20 > to create a new album or put them in an existing album.=20 Thanks. Ashley integrated my patch with the latest beta. If the file contents contained a directory would it be cool for that to be the new album? I don't understand the problem about putting them in an existing album, that's what happens by default (or at least that's what my patch did, I have to see what Ashley ended up doing). > As a side note as=20 > well, being able to delete albums, and perhaps move files from one ablum = to=20 > another might be nice. That's on my list of features to add. Now if only my twin boys were not so much fun! --=20 Jeff Macdonald <jef...@vi...> My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html Into birding? Visit http://www.migratus.com |
From: Douglas E. M. <do...@ke...> - 2003-05-20 02:29:52
|
When I tested out the zip upload feature it created an album inside the album with the name of the zip file, and put all the files in that new album. It also created an empty album with the name 1-(zip file name) that was completely empty inside the top level album If there is anything else I can do to help let me know. Also, I hope the results I got help to solve this, if in the future I run across bugs if you want me to include any additional info let me know what basics you want. Doug On 19 May 2003 22:06:43 -0400, Jeff Macdonald <jef...@vi...> wrote: > On Mon, 2003-05-19 at 21:22, Douglas E. Morris wrote: > <snip> >> >> Software error: >> >> Sorry, invalid mode. Mode "editimage!=/Stuff/101MSDCF/DSC00017.JPG" >> does not exist. at /home/web/kenohki/pictures/admin/index.cgi line 154. >> > > I can reproduce this. May be a week before I can provide a fix. > >> p.s. I LOVE the zip upload feature. I just wish you could choose >> weather to create a new album or put them in an existing album. > > Thanks. Ashley integrated my patch with the latest beta. > > If the file contents contained a directory would it be cool for that to > be the new album? I don't understand the problem about putting them in > an existing album, that's what happens by default (or at least that's > what my patch did, I have to see what Ashley ended up doing). > > >> As a side note as well, being able to delete albums, and perhaps move >> files from one ablum to another might be nice. > > That's on my list of features to add. Now if only my twin boys were not > so much fun! > |
From: Douglas E. M. <do...@ke...> - 2003-05-20 03:04:24
|
Egads! I am just a dolt. I did not even catch on to the fact that I zipped up a folder, and so it made a folder. Bonk! Many apologies. On a side note the ability to delete an album would be nice, and / or to move pictures between albums. Doug On Mon, 19 May 2003 21:28:25 -0500, Douglas E. Morris <do...@ke...> wrote: > When I tested out the zip upload feature it created an album inside the > album with the name of the zip file, and put all the files in that new > album. It also created an empty album with the name 1-(zip file name) > that was completely empty inside the top level album > > If there is anything else I can do to help let me know. Also, I hope the > results I got help to solve this, if in the future I run across bugs if > you want me to include any additional info let me know what basics you > want. > > Doug > > On 19 May 2003 22:06:43 -0400, Jeff Macdonald > <jef...@vi...> wrote: > >> On Mon, 2003-05-19 at 21:22, Douglas E. Morris wrote: >> <snip> >>> >>> Software error: >>> >>> Sorry, invalid mode. Mode "editimage!=/Stuff/101MSDCF/DSC00017.JPG" >>> does not exist. at /home/web/kenohki/pictures/admin/index.cgi line 154. >>> >> >> I can reproduce this. May be a week before I can provide a fix. >> >>> p.s. I LOVE the zip upload feature. I just wish you could choose >>> weather to create a new album or put them in an existing album. >> >> Thanks. Ashley integrated my patch with the latest beta. >> >> If the file contents contained a directory would it be cool for that to >> be the new album? I don't understand the problem about putting them in >> an existing album, that's what happens by default (or at least that's >> what my patch did, I have to see what Ashley ended up doing). >> >> >>> As a side note as well, being able to delete albums, and perhaps move >>> files from one ablum to another might be nice. >> >> That's on my list of features to add. Now if only my twin boys were not >> so much fun! >> > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > IDS-devel mailing list > IDS...@li... > https://lists.sourceforge.net/lists/listinfo/ids-devel > |
From: Jeff M. <jef...@vi...> - 2003-05-25 00:26:48
|
On Mon, 2003-05-19 at 22:06, Jeff Macdonald wrote: > On Mon, 2003-05-19 at 21:22, Douglas E. Morris wrote: > <snip> > > > > Software error: > > > > Sorry, invalid mode. Mode "editimage!=/Stuff/101MSDCF/DSC00017.JPG" does > > not exist. at /home/web/kenohki/pictures/admin/index.cgi line 154. > > > I've traced this error to the following change: print "Location: $idscgi?mode=editimage&image=".&encodeSpecialChars($imagetoedit)."\n\n"; TO print "Location: $idscgi?mode=editimage!=".&encodeSpecialChars($imagetoedit)."\n\n"; This happens in several places. Ashley, any idea what happened here? A global search and replace gone bad? I'll try to come up with a patch this weekend. -- Jeff Macdonald <jef...@vi...> My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html Into birding? Visit http://www.migratus.com |
From: Jeff M. <jef...@vi...> - 2003-05-25 00:42:42
Attachments:
admin-index.patch
|
On Sat, 2003-05-24 at 20:26, Jeff Macdonald wrote: > I've traced this error to the following change: > > > print "Location: $idscgi?mode=editimage&image=".&encodeSpecialChars($imagetoedit)."\n\n"; > TO > > > print "Location: $idscgi?mode=editimage!=".&encodeSpecialChars($imagetoedit)."\n\n"; > > This happens in several places. Ashley, any idea what happened here? A > global search and replace gone bad? I'll try to come up with a patch > this weekend. > Attached is a patch, initial testing works for me. Please test it out. -- Jeff Macdonald <jef...@vi...> My birding blog: http://www.virtualbuilder.com/archives/cat_birding.html Into birding? Visit http://www.migratus.com |
From: Ashley M. K. <as...@pc...> - 2003-05-25 00:50:57
|
Jeff Macdonald wrote: > Ashley, any idea what happened here? A global search and replace gone bad? Not a clue. It's actually a '^Q' control characters followed by a '!' - how they got in there, I don't know. But it's fixed in CVS now. -- H| I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:as...@pc...> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. |
From: Douglas E. M. <do...@ke...> - 2003-05-26 02:16:06
|
Ok all, I have another error for you. I noticed one user who posted a comment, and when you would go to the show all comments link from the main IDS page it would show his name, address, etc. but the comment field was blank. I clicked on the picture and the full comment was shown there. I then checked out the comments.txt file for signs of problems and after much trial and error came to find out that this problem is caused by having () show in up a username. The user in question entered his username as max (krome) once I removed the ( ) from around krome the comment appeared with no problems. Not a serious problem, but one I wanted to bring to your attention. As a side note, and I think I mentioned this in my previous e-mail, the one big feature I see missing with IDS is the lack of ability to delete an album through the Admin interface, as it stands now i have to go to a shell, delete the album files, delete the previews, delete the album-data stuff.. Just kind of a hassle. Take care all, and keep up the good work. Doug |
From: happyman <hap...@co...> - 2003-05-26 04:23:15
|
Hi all, =20 About comments, I think that's due to some perl regular expressions. = It occurs when guests' input contains some special chars.. currently, I just edit = logs/comments.txt when it happens. BTW, when your comments exceeds 500, what I suggest is 1). add a cache feature to commentviewer.cgi, OR 2). create a page views in commentviewer.cgi I had implemented "page views" in http://photos.happyman.idv.tw/, = also found=20 it's not hard to add "cache feature" to ids. for example: you can add code to the beginning of commentviewer.cgi =3D-=3D-=3D-=3D-=3D- my $cache=3D"output.cache"; if ( -e $cache) { my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev, $size,$atime,$mtime,$ctime) = =3D stat($cache); my $cachemtime=3D$mtime; ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev, = $size,$atime,$mtime,$ctime)=3Dstat("$logDir/comments.txt"); if ($cachemtime > $mtime) { if ( open(CACHE,$cache) ) { while(<CACHE>) { print $_; } # print "Output from CACHE"; close(CACHE); exit; } } } ...... renderPage($cache); =3D-=3D-=3D-=3D and modify renderPage() in idsShared.pm =3D-=3D-=3D-=3D- sub renderPage { my ($cache)=3D@_; ..... ## happyman if ($cache) { if (open(CACHE,"> $cache")) { print CACHE $query->header(-type=3D>'text/html; = charset=3Dbig5', -expires=3D>'now', -cookie=3D>$cookie); print CACHE $pageContent; close(CACHE); } } ..... However, the above code doesn't handle the "cgi get/post/cookies" output = caching. How about adding cache feature to ids? regs happyman ----- Original Message -----=20 From: "Douglas E. Morris" <do...@ke...> To: <ids...@li...> Sent: Monday, May 26, 2003 10:14 AM Subject: [Ids-devel] Error in processing comments Ok all, I have another error for you. I noticed one user who posted a comment, and when you would go to the = show=20 all comments link from the main IDS page it would show his name, = address,=20 etc. but the comment field was blank. I clicked on the picture and the full comment was shown there. I then=20 checked out the comments.txt file for signs of problems and after much=20 trial and error came to find out that this problem is caused by having = ()=20 show in up a username. The user in question entered his username as max (krome) once I removed the ( ) from around krome the comment appeared with no=20 problems. Not a serious problem, but one I wanted to bring to your=20 attention. As a side note, and I think I mentioned this in my previous e-mail, the = one=20 big feature I see missing with IDS is the lack of ability to delete an=20 album through the Admin interface, as it stands now i have to go to a=20 shell, delete the album files, delete the previews, delete the = album-data=20 stuff.. Just kind of a hassle. Take care all, and keep up the good work. Doug |