[Solved]: "Exotic" chars in folder names [Solved]: "Exotic" chars in folder names
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: "Exotic" chars in folder names

Started by erik.p, May 04, 2004, 02:19:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

erik.p

The background:

I'm running my own Coppermine server at home - everything works fine.

I recently bought a new computer and sold the old one.

I installed Mysql, PHP and Imagemagick on the new computer
(to the exact same location as the old computer).
I then copied the entire "coppermine" folder to the correct
destination (I´m running Abyss Web Server if that matters).

Everything works fine.

Now the problem:

I can't add a new album, or rather I can, and Coppermine seems to
think everything is ok (creating the new album, batch adding)
but when I look at the album, none of the pictures are shown
(although they have been correctly created and everything).

This is a bit strange as (I think...) I have installed everything in
exatly the same place on both the new computer and the old one ("c:").

My own guess - and I'm new to this stuff - is that somewhere in
a settingsfile something is still refering to the old computer name or perhaps
an old folder (less likely).

Could some kind soul please give me a hint in which settingsfile I should be looking?
Is it the file include/config.inc.php (modify that to fit my new server's mySQL settings)?
I'm not at home, so I can't check, but I was guessing they'd be exactly the same though...


Thanks in advance.

/Erik

erik.p

*bump*

Er, please? It's been 6 days and no-one has had the same problem?

GauGau...please help...anyone...

/Erik

Casper

You say the pics have been created.  Can you see the pics at all?  Check in your database that the album exists there, what the album id is, and then check the pics table, for the new pics.  If included, check the album id they belong to.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

erik.p

Many thanks for having taken pity on my cause.

Here is my page; http://web1.vattnet.com/erik/

The album is the one under "Every day Events" called "2004-04 Easter on Brännö Island".

The name of the folder holding the pictures is "2004-04 Påsk på Brännö".

As you might have guessed from all the funny letters, I'm from Sweden.

Now just for fun I created an album called "example" (with the folder "example" containing the pics)
I then just put one picture in it. This was just to show you the problem, however this
worked, so It would seem that I might accidently have stumbeld apon a bug.
Which is strange as all my original albums and folders also have equally wierd letters in them.

Or mayby this is a "feature" to keep Swedes away from Coppermine ... :)

Casper

I think your folder names may be causing the problem.  Try this, make sure you do it in this order;

1.  Save the original pictures somewhere else on your hard drive.
2.  Use the 'edit pics' button next to this album, and delete every pic. You could just click delete the album, but you will then have to remake the album.
3.  Put the pictures back in the albums folder, but give the folder a name with no spaces, periods or special characters.  Try to avoid such letters with accents etc, such as 'å'.
4.  Use the batch add to put the pics back in the album.

If it works, let us know.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

Also, I don't think this is because of coppermine.  Your folder name is '2004-04 Påsk på Brännö', but the database has it as '2004%20P%E5sk%20p%E5%20Br%E4nn%F6'.
So I think your setup cannot cope with your charset.  Coppermine can, as it did before you switched computers.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

erik.p

OK, I'm at work right now but I'll try this tonight (CET+1);

1) Create a new test album, with just one pic in it.

2) Start off with a "normal" (i.e. no dodgy Swedish characters) name for the folder holding the pics.

3) See if that works.

4) Remove album.

5) Create a new test album, this time with a slightly more "Swedish" name...

6) See if that works.

7) Repeat steps 1-6 until I see which character it is that's creating the problem.

Also "So I think your setup cannot cope with your charset.  Coppermine can, as it did before you switched computers."
I have the exact (er...or so I think) same setup on both machines. Or what do you exactly mean by "setup".
I admit it's strange that Coppermine used to accept Swedish chars and now doesn't...

/Erik

erik.p

#7
Ok, did as I promised and you suggested...

The following folder names work;

"Example"
"Pask pa Branno"
"2004 Påsk på Branno"
"2004 Påsk på Bränno"
"2004 Brännö påsk" <-- The one I chose.


The following don't work;

"2004 Påsk på Brännö"
"2004 Påsk på Brannö"
"2004 Ö"
"2004 Å"
"ä"

Hmm...can't say I see a pattern other than - avoid dodgy characters...or at least too many or early in the folder name..?

Anyway, It looks like a bug too me, but at least now I know how to get the pictures to show.

Many thanks.

Joachim Müller

since there's no pattern, as you say, the only thing we possibly could do is add a check in searchnew.php that won't allow you to batch-add pics from any folder that contains at least 1 non-latin character. Although this would mean playing by the rules (and is strongly recommended on webservers) it would cause a lot of grief among Coppermine users.
I see no immediate reason to react and officially label this a "bug".

Let me repeat this: it's recommended to use only alpha-numeric chars [a-z],[0-9] and a minus [-] and underscore [_] in file or folder names on the web (not only in coppermine). Although other characters may work, there's no guarantee.

GauGau

erik.p

#9
Ok. I see your point.  :)

Perhaps someone should change the name of this thread to a more correct name such as "[Solved]: "Exotic" chars in folder names" ?

Er...I must admit I haven't read the entire FAQ and/or manual, but in case your sentance:

"it's recommended to use only alpha-numeric chars [a-z],[0-9] and a minus [-] and underscore [_] in file or folder names on the web (not only in coppermine). Although other characters may work, there's no guarantee."

isn't in there, perhaps you should add it. For us n00bs who don't know or live by this...

Anyway, thanks the both of you for your time.