Pages: [1] 2
  Print  
Author Topic: Problem with apostrophe in keywords or description (IPTC)  (Read 4490 times)
ajt
Micro
*
Offline Offline

Posts: 7


« on: November 06, 2005, 04:17:43 am »

After some investigations I discovered, that when apostrophe is somewhere in a keyword list or in description field in IPTC header, image disappears after uploading. I tried several times to upload three photos of darts and target, and I managed to do this after changing bull's-eye to bulls-eye  Smiley
Editing and inserting apostrophe works without any problem.

And I discovered now, that one of my images is in thepoeticimage portfolio Smiley
I think it has something to do with  that ' thing Smiley

Regards
ajt
Logged
John
Global Moderator
Photograph
*****
Offline Offline

Posts: 231



WWW
« Reply #1 on: November 06, 2005, 07:02:04 am »

That's interesting and annoying at the same time..

Thanks for that feedback it's very helpful and I'll resolve the problem as soon as I can...

By the way, you should have your darts image back in your own portfolio now..

Regards
Logged

John
Global Moderator
Photograph
*****
Offline Offline

Posts: 231



WWW
« Reply #2 on: November 06, 2005, 07:16:55 am »

I just tried it myself with an image with apostrophes in the keywords and I think you are right...

I'm onto this but in the meantime it would be best to remove apostrophes from keywords before uploading.

I'm pleased you identified the probable cause because this will resolve one or two other irritating things at my end

Regards
Logged

ManicBlu
Micro
*
Offline Offline

Posts: 20


« Reply #3 on: November 06, 2005, 03:23:04 pm »

I will be uploading in a few minutes and will see how things go. I to have had images fail to show up and this is probably the reason. I hope there's no problems with semi-colons since PS automatically adds them in the IPTC data.

BTW John sorry I haven't been around the past few days. I am in the process of a connection upgrade and haven't had a permenant connection.
Logged

ajt
Micro
*
Offline Offline

Posts: 7


« Reply #4 on: November 06, 2005, 07:31:46 pm »

Quote
I just tried it myself with an image with apostrophes in the keywords and I think you are right...


It affects other IPTC fields too. Pictures with apostrophe in Caption field also disappear.

Quote
I'm pleased you identified the probable cause because this will resolve one or two other irritating things at my end


As I mentioned some time ago, I like to be a beta tester Smiley

Regards
ajt
Logged
elvinstar
Photo poster
**
Offline Offline

Posts: 32


WWW
« Reply #5 on: November 07, 2005, 01:05:32 am »

John,  it's a simple matter to fix... simply find the line where it is going to enter the iptc data into the database. If the variable name is for example $title, all you have to do is insert this line of code before the script enters the info into the database: $title = addslashes($title);

That should solve the problem for you!
Logged
elvinstar
Photo poster
**
Offline Offline

Posts: 32


WWW
« Reply #6 on: November 08, 2005, 12:06:06 am »

i've added the appropriate code to the upload script. apostrophes should no longer be a problem. please post in this thread if anyone continues to have issues.
Logged
nemosdad
Micro
*
Offline Offline

Posts: 20



« Reply #7 on: November 29, 2005, 12:39:24 am »

I had not read this thread and just uploaded image with apostrophes in key words and title.  Image did not appear to upload.  Will try to upload it later without apostrophes.
Logged
nemosdad
Micro
*
Offline Offline

Posts: 20



« Reply #8 on: November 29, 2005, 12:42:58 am »

By the way, the system does not seem to accept editing of apostrophe if it appears in a title.
Logged
John
Global Moderator
Photograph
*****
Offline Offline

Posts: 231



WWW
« Reply #9 on: November 29, 2005, 09:07:13 am »

Can you give more details because I thought that problem had been fixed.

What happens when you try etc. ?

Cheers
Logged

nemosdad
Micro
*
Offline Offline

Posts: 20



« Reply #10 on: November 29, 2005, 11:04:37 am »

Hi, John.  I tried to upload an image--"Santa's Hat"--twice last night.  Each time the system removed the apostrophe from the title ("Santas Hat").  Moreover, the image failed to appear on the View/Edit page.  Instead, a square with a red X appears.  When I try to edit the apostrophe back in, the system does not admit the change.  This morning I noticed that, although the image still does not appear on the View/Edit page, it had been approved and did appear among the "Newest Images."  Not one to leave well enough alone, I tried again to edit the apostrophe back into the title.  The system did not accept the apostrophe, and the image (which still does not appear on the View/Edit page) is now listed as "Pending."

I hope this gives you a clue about what's going on with this problem.  Thanks for giving photographers like me a new market for our wares.
Logged
elvinstar
Photo poster
**
Offline Offline

Posts: 32


WWW
« Reply #11 on: November 29, 2005, 05:25:14 pm »

try it now... i think that i've got the problem solved.
Logged
nemosdad
Micro
*
Offline Offline

Posts: 20



« Reply #12 on: November 29, 2005, 05:52:44 pm »

Thanks.  Apostrophes have been accepted in title and in keywords.  Image still does not display on View/Edit page.  Red-X image listed as "Pending."  Thanks again.
Logged
John
Global Moderator
Photograph
*****
Offline Offline

Posts: 231



WWW
« Reply #13 on: November 29, 2005, 05:55:55 pm »

Thanks Charles
Logged

nemosdad
Micro
*
Offline Offline

Posts: 20



« Reply #14 on: November 29, 2005, 06:04:36 pm »

Sorry to report that apostrophe in title was only temporarily accepted.  Apostrophe in keywords is still accepted but apostrophe in title on View/Edit page and on "Newest Photos" page has vanished again.  Back to the think tank. . . .
Logged
Pages: [1] 2
  Print  
 
Jump to: