coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: hicloud on February 07, 2006, 07:23:55 AM

Title: I have problem while using batch upload in cpg143
Post by: hicloud on February 07, 2006, 07:23:55 AM
I installed a cpg143 on a Linux (RH9) Server with Apache 2+Php 4.2.2+MySql 3.23+GD1.8, everything is Ok except using batch upload function. It cannot show thumbnail while choosing a up[load directory (a red cross is displayed instead) and the signal of result. I cannot find and error from PHP information(show below).

Before this installation, I tested the program on another server with the same environment, and it's work correctlly there. Who can help me to solve the problem or give me some advices ablout that? thanks!

My apache, mysql and php are well configured to use Chinese_gb.


==========================
VERSION INFO :
------------------
PHP version: 4.2.2 - OK
------------------
mySQL version: 3.23.54
------------------
Coppermine version: 1.4.3(stable)
==========================
Module: gd
------------------
GD Supportenabled
GD Version1.6.2 or higher
FreeType Supportenabled
FreeType Linkagewith freetype
JPG Supportenabled
PNG Supportenabled
WBMP Supportenabled
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links0
Active Links1
Client API version3.23.54
MYSQL_MODULE_TYPEexternal
MYSQL_SOCKET/var/lib/mysql/mysql.sock
MYSQL_INCLUDE-I/usr/include/mysql
MYSQL_LIBS-L/usr/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Supportenabled
'zlib:' fopen wrapperenabled
Compiled Version1.1.4
Linked Version1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | 1 | 1
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost |  |
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 300 | 300 |  |
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.302 seconds - 16 queries in 0.001 seconds - Album set : ; Meta set: ;


CPG information ----------------------------------------------------------------------------------------------------------------------------------------------------------------

/include/init.inc.php
Notice line 312: Undefined index: lang
/searchnew.php
Notice line 461: Undefined variable: edit_pics_content
Title: Re: I have problem while using batch upload in cpg143
Post by: hicloud on February 07, 2006, 07:31:12 AM
USER:
------------------
Array
(
    [ID] => *********
    [am] => 1
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => manager
    [groups] => Array
        (
           
Title: Re: I have problem while using batch upload in cpg143
Post by: Joachim Müller on February 07, 2006, 08:00:11 AM
don't post debug_output unless requested, do as suggested in the "upload troubleshooting (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble)" section of the docs instead (and do exactly as suggested there).
Title: Re: I have problem while using batch upload in cpg143
Post by: hicloud on February 07, 2006, 09:16:35 AM
Thanks. But the troubleshooting is too simple to solve the problem. I can use batch procedure correctly except some display errors. I can use those photos correctly and the thumbnails of them were created properly, and can be visited by other users. I try to click the red cross, it shows a blank page. The information from php shows no error as well(see above). It might be a problem caused by server setting I think, could you give me some  more advice in detail? thankk you!

My album is used in a private net without Internet IP.
Title: Re: I have problem while using batch upload in cpg143
Post by: Joachim Müller on February 07, 2006, 09:37:22 AM
temporarily try switching to English, make sure that the file names don't contain special chars (no chinese chars!), use the classic batch-add interface for troubleshooting. There's not much I could advice if your page can't be accessed publicly.
Title: Re: I have problem while using batch upload in cpg143
Post by: hicloud on February 07, 2006, 09:59:02 AM
I changed some setting on apache, It can display correctly with English while still display red cross under Chinese_gb. I use the same Chinese_gb.php on another server, and it works well. So I think that the problem is caused by Chinese_gb lang file or settings. But how can I trace the error farther?
Title: Re: I have problem while using batch upload in cpg143
Post by: hicloud on February 07, 2006, 10:04:02 AM
I think that I found the reason!

I create a lang use charset GB2312,and everything is good! I think that the lang file(chinese_gb) may have some shortcut.
Title: Re: I have problem while using batch upload in cpg143
Post by: Joachim Müller on February 07, 2006, 10:09:24 AM
make sure that you have the most recent version of the chinese language file - use the checkout from the stable branch of the cvs: http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/lang/chinese_gb.php
Title: Re: I have problem while using batch upload in cpg143
Post by: hicloud on February 07, 2006, 10:45:21 AM
The CVS doesn't provide chinese_gb2312 file. I mde one myself, the only problem is that I cannot use Chinese username for registered user while it's ok under the Unicode charset. It's difficult for me to change the apache to Ucode, Can I solve the problem under GB2312? The error message when I try Chinese username is "The Username must 2 Charactors at least" although the username I typed is longer than 2.
Title: Re: I have problem while using batch upload in cpg143
Post by: Joachim Müller on February 07, 2006, 11:14:49 PM
use Uni2Me (http://alf-li.pcdiscuss.com/c_uni2me.html) to convert the utf-8 language file from the cvs to chinese_gb2312
Title: Re: I have problem while using batch upload in cpg143
Post by: hicloud on February 08, 2006, 02:13:24 AM
to convert utf to GB is simple, but the program need to be modified to fit the gb2312. I tried to modifiy the usermgr.php to make it accept the Chinese username under GB2312 charset. I'd like to know is it enough or I have to do some other modification either?
Title: Re: I have problem while using batch upload in cpg143
Post by: Joachim Müller on February 08, 2006, 02:14:55 AM
Quite frankly: I have no idea, sorry.
Title: Re: I have problem while using batch upload in cpg143
Post by: hicloud on February 08, 2006, 02:28:24 AM
Thank you for your help! It's useful for me to find the problems.

I have modified the usermgr.php to fix the problem of using Chinese username under gb2312 and I'll test it for sometimes. It's working perfectly until now. hehe

And I hope that CPG can support Chinese GB2312 charset as well because it's the most popular charset in China, and many servers will set the default charset to gb2312. Some people who use web hosting can't use CPG if it dose not support gb2312.
Title: Re: I have problem while using batch upload in cpg143
Post by: Joachim Müller on February 08, 2006, 08:59:38 AM
please post your modifications, so others may benefit as well.
Title: Re: I have problem while using batch upload in cpg143
Post by: hicloud on February 08, 2006, 01:14:52 PM
I have posted it on Language support yet