Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: "Exotic" chars in folder names  (Read 3465 times)

0 Members and 1 Guest are viewing this topic.

erik.p

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • Erik and Sara´s pics
[Solved]: "Exotic" chars in folder names
« on: May 04, 2004, 02:19:54 pm »

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
« Last Edit: May 12, 2004, 01:29:08 pm by GauGau »
Logged

erik.p

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • Erik and Sara´s pics
Re: Switched server - slight problem
« Reply #1 on: May 10, 2004, 01:14:50 pm »

*bump*

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

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

/Erik
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Switched server - slight problem
« Reply #2 on: May 10, 2004, 02:09:37 pm »

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • Erik and Sara´s pics
Re: Switched server - slight problem
« Reply #3 on: May 10, 2004, 04:41:48 pm »

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 ... :)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Switched server - slight problem
« Reply #4 on: May 10, 2004, 07:10:48 pm »

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.
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Switched server - slight problem
« Reply #5 on: May 10, 2004, 07:16:23 pm »

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • Erik and Sara´s pics
Re: Switched server - slight problem
« Reply #6 on: May 11, 2004, 09:10:44 am »

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
Logged

erik.p

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • Erik and Sara´s pics
Re: Switched server - slight problem
« Reply #7 on: May 11, 2004, 08:59:05 pm »

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.
« Last Edit: May 11, 2004, 09:40:32 pm by erik.p »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Switched server - slight problem
« Reply #8 on: May 12, 2004, 06:22:24 am »

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
Logged

erik.p

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • Erik and Sara´s pics
Re: Switched server - slight problem
« Reply #9 on: May 12, 2004, 09:32:38 am »

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.
« Last Edit: May 12, 2004, 09:41:22 am by erik.p »
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 18 queries.