Move the album --> Invalid destination chosen

piploff

Joined: 2008-08-27
Posts: 22
Posted: Wed, 2008-09-03 15:48

Gallery version: 1.5.9-svn-b18
Apache version: Apache/1.3.34
PHP version: PHP v5.2.0-8+etch11
Graphics Toolkit: Netpbm binaries
Operating system: Debian 2.6.18-6-686 SMP i686 GNU/Linux
Web browser/version: Opera 9.51

When I moved the album to 'Move to top level' -->

Quote:
Invalid destination chosen.

Why?

Oh btw, names of albums look-like this:
-- -- T ...
-- -- L ...
-- -- N ...
-- -- G ...
-- -- F ...

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2008-09-03 16:26

Hi,

you found a(nother) bug.
Fixed in b19. Thanks!!

The name truncation is on purpose. Album names in the selectbox are trimmed after 20 chars (not 1 as you write ;-)

You can change this in lib/content.php
Search for 'truncateText' and change the value of 20 to ...

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
piploff

Joined: 2008-08-27
Posts: 22
Posted: Wed, 2008-09-03 17:36

Thanks, now works!
But:
1. Album names in the selectbox (see Attachment)
2. Where is 'Move album' and 'Reorder' on Top Level Page now?
3. Top Menu: [most viewed] [latest added] [latest shots] [latest comments] [random images] -->

Quote:
Parse error: syntax error, unexpected $end in /.../www/gallery/html_wrap/stats.header.default on line 46

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2008-09-03 20:46

Hi,

1. Fixed in b20
2. Fixed in b20
3. Fixed in b20

About Albunames: Please go to http://jems.de/gallery-legacy login with Piploff/gallery123
Please try to reproduce it there.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
piploff

Joined: 2008-08-27
Posts: 22
Posted: Thu, 2008-09-04 02:24

Hi Jens,
Where is b20? I didn't found is here:
http://jems.de/archive/1.5.9/

Quote:
About Albunames: Please go to http://jems.de/gallery-legacy login with Piploff/gallery123
Please try to reproduce it there.

[latest shots] -->

Quote:
Warning: strftime() expects parameter 2 to be long, array given in /home/jens/public_html/gallery-legacy/lib/stats.php on line 394 Warning: strftime() expects parameter 2 to be long, array given in /home/jens/public_html/gallery-legacy/lib/stats.php on line 394 Warning: strftime() expects parameter 2 to be long, array given in /home/jens/public_html/gallery-legacy/lib/stats.php on line 394 Warning: strftime() expects parameter 2 to be long, array given in /home/jens/public_html/gallery-legacy/lib/stats.php on line 394 Warning: strftime() expects parameter 2 to be long, array given in /home/jens/public_html/gallery-legacy/lib/stats.php on line 394

 
piploff

Joined: 2008-08-27
Posts: 22
Posted: Fri, 2008-09-19 12:09
Tim_j wrote:
Hi,

you found a(nother) bug.
Fixed in b19. Thanks!!

The name truncation is on purpose. Album names in the selectbox are trimmed after 20 chars (not 1 as you write ;-)

You can change this in lib/content.php
Search for 'truncateText' and change the value of 20 to ...

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

Album names in the selectbox are trimmed after 20 chars in English names, and trimmed after 3 chars in Russian names. Why?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2008-09-19 12:23

Hello,

so far you did not create such albums in my testgallery ...
Please do so.

My russian language knowledge is ... 0 ;-)

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
piploff

Joined: 2008-08-27
Posts: 22
Posted: Fri, 2008-09-19 13:01
Quote:
so far you did not create such albums in my testgallery ...
Please do so.

Done

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2008-09-19 13:33

Hi,

seems its a charset issue.

Because when i hover the album highlight i see "Те&1089" and so on.
Every letter is represented by its HTML entity.
This is how they are saved album.dat file.
Maybe this is because the charset of Gallery was iso8859-1 when you changed the album name and the letters you enter does not exists in that charset thus they are saved as HTML entities.
Can you switch to russian ru_RU.koi8r on my server and create another album with russian letters?

The perfect solution were to switch completely to utf-8 ... like g2 did.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
piploff

Joined: 2008-08-27
Posts: 22
Posted: Fri, 2008-09-19 13:50
Tim_j wrote:
Can you switch to russian ru_RU.koi8r on my server and create another album with russian letters?
The perfect solution were to switch completely to utf-8 ... like g2 did.

Done

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2008-09-19 14:25

Thanks!

As you can see, this fixes it.
The Тестовый альбом в ru_RU.koi8r albums are truncated correct.
Because the titles were entered when Gallery was set to use ru_RU.koi8r, so they are saved in that charset.

So i would say that this is not a bug in Gallery, its an unnice result of incompatible charsets.

Can you confirm this?

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
piploff

Joined: 2008-08-27
Posts: 22
Posted: Fri, 2008-09-19 15:38

Well, i'm using gallery in English(US) interface only (langswitcher off), but i called the album name in Russian lang (cp1251), it's perfect works all an exception album names in the selectbox are trimmed 3-4 RU letters.

RU interface is poor translation (about 50%).

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2008-09-19 21:34

Hi,

so in your case, the russian letters are displayed correct, but are saved as HTML entities.
I can not fix the "wrong" truncation.
What you could do it to hack it ;-)
I already found a way for this.

If you need this feature, i can explain it.

You can also update the russian translation ;-)

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Mr.Kimura

Joined: 2004-02-21
Posts: 20
Posted: Sun, 2008-11-09 20:36

i have the same prob with gallery 1.6 RC2 - can´t move an album to top location
downgraded to RC1 - same prob
upgraded to RC3 b9 - same prob
don´t want downgrade to 1.5x...

but i think it worked in a 1.6 version...

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2008-11-09 23:01

Hi,

just to be sure ... can you explain your problem again and give exact infos about your Gallery environment?
Also an URL would help.

Jens
--
Gallery Developer

 
Mr.Kimura

Joined: 2004-02-21
Posts: 20
Posted: Mon, 2008-11-10 22:32

hi,

'Gallery' Version: 1.6-RC3-svn-b9 Language: German
PHP Version 5.2.0-8+etch11
System Linux www 2.6.18-6-686-bigmem #1 SMP Mon Oct 13 17:32:29 UTC 2008 i686

the url: www.untergrundverwaltung.de

if i want to move an album from eg "vorschau" to the top level, i get the error: "Invalid destination chosen."

 
Mr.Kimura

Joined: 2004-02-21
Posts: 20
Posted: Thu, 2008-11-13 19:57

problem solved:
downgraded to 1.5.x
run the album update,
deleted version 1.5.x
installed again 1.6 RC 2
update albums

voila, now it works...

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2008-11-14 14:17

err, okay ;-)

Glad you got it working.

Jens
--
Gallery Developer