uploads.. but doesn't uploads.. but doesn't
 

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

Main Menu

uploads.. but doesn't

Started by andrew319, December 01, 2005, 01:48:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andrew319

I am trying to set up coppermine on my server. (using Ubuntu )

I can upload the iamges to the server, in the "upload image" thing. but when it goes to the page where you have to define the title of the images, the "preview" doesn't show up or upload.....

Nibbler

Check through the sticky - http://forum.coppermine-gallery.net/index.php?topic=24088.0

If it's public, please provide a link and a non-admin test user account with upload rights after adjusting the settings as suggested above.

JoseyGirl

I am a newbie to web pages. Please be patient. I DID do a search but couldn't find this particular error.....
I am having a similar problem in that the picture seems to upload but doesn't show the little thumbnail, and after I select the album to place it in, the screen tells me both that "The previous file could not be placed" and "You have successfully placed all the files."
So far I have added the '&' fix to my xp_publish.php file in case that was it. But no change. Then I did the "add single file" change and the debug deal. So...when I select to "display phpinfo" I go through the list and I see everything I pasted below. At the almost end is the HTTP_MOD_Security_Message "Warning. Error normalizing REQUEST.URI. Invalid character detected [47]."
Is that the root of my problems with uploading this picture:  http://www.jjbechtel.com/.fantasticodata/Coppermine_Photo_Gallery/Warda_Race/WardaJayMud.jpg ???

If so, how do I fix that?  I am pretty new to all this php stuff and don't know much about scripting. I would just like to make a nice little photo album. Thank you in advance for any assistance you can provide.

*****************************************************************************

System  Linux phobos.lunarpages.com 2.4.21-27.0.2.ELsmp #1 SMP Wed Jan 12 23:35:44 EST 2005 i686 
Build Date  Nov 22 2005 05:31:09 
Configure Command  './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib' 
Server API  CGI 
Virtual Directory Support  disabled 
Configuration File (php.ini) Path  /usr/local/Zend/etc/php.ini 
PHP API  20020918 
PHP Extension  20020429 
Zend Extension  20050606 
Debug Build  no 
Zend Memory Manager  enabled 
Thread Safety  disabled 
Registered PHP Streams  php, http, ftp, https, ftps, compress.zlib 

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.8, Copyright (c) 2003-2005, by Zend Technologies with Zend Optimizer v2.5.10, Copyright (c) 1998-2005, by Zend Technologies 

-------------------------------------------------------------------------------

PHP Credits

--------------------------------------------------------------------------------

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log error_log error_log
error_prepend_string no value no value
error_reporting 2047 2039
expose_php On On
extension_dir ./ ./
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
log_errors Off On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time -1 -1
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 55M 55M
precision 14 14
register_argc_argv On On
register_globals On On
report_memleaks On On
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
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance Off Off


Zend Optimizer
Optimization Pass 1  enabled 
Optimization Pass 2  enabled 
Optimization Pass 3  enabled 
Optimization Pass 4  enabled 
Optimization Pass 9  disabled 
Zend Loader  enabled 
License Path  no value 


bcmath
BCMath support  enabled 


calendar
Calendar support  enabled 


ctype
ctype functions  enabled 


curl
CURL support  enabled 
CURL Information  libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4 


domxml
DOM/XML  enabled 
DOM/XML API Version  20020815 
libxml Version  20622 
HTML Support  enabled 
XPath Support  enabled 
XPointer Support  enabled 
DOM/XSLT  enabled 
libxslt Version  1.1.8 
libxslt compiled against libxml Version  2.6.22 
DOM/EXSLT  enabled 
libexslt Version  1.1.8 


ftp
FTP support  enabled 


gd
GD Support  enabled 
GD Version  bundled (2.0.28 compatible) 
FreeType Support  enabled 
FreeType Linkage  with freetype 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM Support  enabled 


gettext
GetText Support  enabled 


imap
IMAP c-Client Version  2001 
SSL Support  enabled 
Kerberos Support  enabled 


mbstring
Multibyte Support  enabled 
Japanese support  enabled 
Simplified chinese support  enabled 
Traditional chinese support  enabled 
Korean support  enabled 
Russian support  enabled 
Multibyte (japanese) regex support  enabled 

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding ISO-8859-1 no value
mbstring.language neutral neutral
mbstring.substitute_character no value no value


mcrypt
mcrypt support enabled
version  >= 2.4.x 
Supported ciphers  cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes 
Supported modes  cbc cfb ctr ecb ncfb nofb ofb stream 

Directive Local Value Master Value
mcrypt.algorithms_dir no value no value
mcrypt.modes_dir no value no value


mhash
MHASH support  Enabled 
MHASH API Version  20020524 


mysql
MySQL Support enabled
Active Persistent Links  0 
Active Links  1 
Client API version  4.0.25 
MYSQL_MODULE_TYPE  external 
MYSQL_SOCKET  /var/lib/mysql/mysql.sock 
MYSQL_INCLUDE  -I/usr/include/mysql 
MYSQL_LIBS  -L/usr/lib -lmysqlclient 

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off


openssl
OpenSSL support  enabled 
OpenSSL Version  OpenSSL 0.9.7a Feb 19 2003 


overload
User-Space Object Overloading Support  enabled 


pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled 
PCRE Library Version  6.2 01-Aug-2005 


pgsql
PostgreSQL Support enabled
PostgreSQL(libpq) Version  7.4.5 
Multibyte character support  enabled 
SSL support  enabled 
Active Persistent Links  0 
Active Links  0 

Directive Local Value Master Value
pgsql.allow_persistent On On
pgsql.auto_reset_persistent Off Off
pgsql.ignore_notice Off Off
pgsql.log_notice Off Off
pgsql.max_links Unlimited Unlimited
pgsql.max_persistent Unlimited Unlimited


posix
Revision  $Revision: 1.51.2.4 $ 


pspell
PSpell Support  enabled 


session
Session Support  enabled 
Registered save handlers  files user 

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On


sockets
Sockets Support  enabled 


standard
Regex Library  Bundled library enabled 
Dynamic Library Support  enabled 
Path to sendmail  /usr/sbin/sendmail -t -i 

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,form=,fieldset= a=href,area=href,frame=src,form=,fieldset=
user_agent no value no value


swf
swf support  enabled 


tokenizer
Tokenizer Support  enabled 


xml
XML Support  active 
XML Namespace Support  active 
EXPAT Version  1.95.6 


xslt
XSLT support  enabled 
Backend  Sablotron 
Sablotron Version  1.0.1 
Sablotron Information  Cflags: -g -O2 Libs: -L/usr/lib -lexpat Prefix: /usr 


zlib
ZLib Support  enabled 
Compiled Version  1.1.4 
Linked Version  1.1.4 

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value


Additional Modules
Module Name


Environment
Variable Value
DOCUMENT_ROOT  /home/jjbec2/public_html 
HTTP________________  ----- ------- 
HTTP_ACCEPT  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* 
HTTP_ACCEPT_LANGUAGE  en-us 
HTTP_CONNECTION  Keep-Alive 
HTTP_COOKIE  da6eae16d8155b3bf38adb75d2af0c75=6df66e292cd989dad5e7bac00a299553; cpg140_data=YTozOntzOjI6IklEIjtzOjMyOiIzMjQ1ODc4YjM2YTc4ODVjM2U1MTlhYjdjMjNlZTgyYyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9 
HTTP_HOST  www.jjbechtel.com 
HTTP_MOD_SECURITY_MESSAGE  Warning. Error normalizing REQUEST_URI: Invalid character detected [47] 
HTTP_REFERER  http://www.jjbechtel.com/upload.php 
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705) 
PATH  /bin:/usr/bin 
REMOTE_ADDR  68.185.204.196 
REMOTE_PORT  3340 
SCRIPT_FILENAME  /home/jjbec2/public_html/phpinfo.php 
SERVER_ADDR  216.193.254.140 
SERVER_ADMIN  webmaster@jjbechtel.com 
SERVER_NAME  www.jjbechtel.com 
SERVER_PORT  80 
SERVER_SIGNATURE  <ADDRESS>Apache/1.3.34 Server at www.jjbechtel.com Port 80</ADDRESS> 
SERVER_SOFTWARE  Apache/1.3.34 (Unix) Resin/3.0.9 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a 
GATEWAY_INTERFACE  CGI/1.1 
SERVER_PROTOCOL  HTTP/1.1 
REQUEST_METHOD  GET 
REQUEST_URI  /phpinfo.php 
SCRIPT_NAME  /phpinfo.php 
PATH_TRANSLATED  /home/jjbec2/public_html/phpinfo.php 
REDIRECT_STATUS  200 


PHP Variables
Variable Value
PHP_SELF  phpinfo.php 
_REQUEST["da6eae16d8155b3bf38adb75d2af0c75"] 6df66e292cd989dad5e7bac00a299553
_REQUEST["cpg140_data"] YTozOntzOjI6IklEIjtzOjMyOiIzMjQ1ODc4YjM2YTc4ODVjM2U1MTlhYjdjMjNlZTgyYyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9
_COOKIE["da6eae16d8155b3bf38adb75d2af0c75"] 6df66e292cd989dad5e7bac00a299553
_COOKIE["cpg140_data"] YTozOntzOjI6IklEIjtzOjMyOiIzMjQ1ODc4YjM2YTc4ODVjM2U1MTlhYjdjMjNlZTgyYyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9
_SERVER["DOCUMENT_ROOT"] /home/jjbec2/public_html
_SERVER["HTTP________________"] ----- -------
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_COOKIE"] da6eae16d8155b3bf38adb75d2af0c75=6df66e292cd989dad5e7bac00a299553; cpg140_data=YTozOntzOjI6IklEIjtzOjMyOiIzMjQ1ODc4YjM2YTc4ODVjM2U1MTlhYjdjMjNlZTgyYyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9
_SERVER["HTTP_HOST"] www.jjbechtel.com
_SERVER["HTTP_MOD_SECURITY_MESSAGE"] Warning. Error normalizing REQUEST_URI: Invalid character detected [47]
_SERVER["HTTP_REFERER"] http://www.jjbechtel.com/upload.php
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)
_SERVER["PATH"] /bin:/usr/bin
_SERVER["REMOTE_ADDR"] 68.185.204.196
_SERVER["REMOTE_PORT"] 3340
_SERVER["SCRIPT_FILENAME"] /home/jjbec2/public_html/phpinfo.php
_SERVER["SERVER_ADDR"] 216.193.254.140
_SERVER["SERVER_ADMIN"] webmaster@jjbechtel.com
_SERVER["SERVER_NAME"] www.jjbechtel.com
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.34 Server at www.jjbechtel.com Port 80</ADDRESS> 
_SERVER["SERVER_SOFTWARE"] Apache/1.3.34 (Unix) Resin/3.0.9 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["REQUEST_URI"] /phpinfo.php
_SERVER["SCRIPT_NAME"] phpinfo.php
_SERVER["PATH_TRANSLATED"] /home/jjbec2/public_html/phpinfo.php
_SERVER["REDIRECT_STATUS"] 200
_SERVER["PHP_SELF"] phpinfo.php
_SERVER["argv"] Array
(
)

_SERVER["argc"] 0
_ENV["DOCUMENT_ROOT"] /home/jjbec2/public_html
_ENV["HTTP________________"] ----- -------
_ENV["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
_ENV["HTTP_ACCEPT_LANGUAGE"] en-us
_ENV["HTTP_CONNECTION"] Keep-Alive
_ENV["HTTP_COOKIE"] da6eae16d8155b3bf38adb75d2af0c75=6df66e292cd989dad5e7bac00a299553; cpg140_data=YTozOntzOjI6IklEIjtzOjMyOiIzMjQ1ODc4YjM2YTc4ODVjM2U1MTlhYjdjMjNlZTgyYyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9
_ENV["HTTP_HOST"] www.jjbechtel.com
_ENV["HTTP_MOD_SECURITY_MESSAGE"] Warning. Error normalizing REQUEST_URI: Invalid character detected [47]
_ENV["HTTP_REFERER"] http://www.jjbechtel.com/upload.php
_ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705)
_ENV["PATH"] /bin:/usr/bin
_ENV["REMOTE_ADDR"] 68.185.204.196
_ENV["REMOTE_PORT"] 3340
_ENV["SCRIPT_FILENAME"] /home/jjbec2/public_html/phpinfo.php
_ENV["SERVER_ADDR"] 216.193.254.140
_ENV["SERVER_ADMIN"] webmaster@jjbechtel.com
_ENV["SERVER_NAME"] www.jjbechtel.com
_ENV["SERVER_PORT"] 80
_ENV["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.34 Server at www.jjbechtel.com Port 80</ADDRESS> 
_ENV["SERVER_SOFTWARE"] Apache/1.3.34 (Unix) Resin/3.0.9 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a
_ENV["GATEWAY_INTERFACE"] CGI/1.1
_ENV["SERVER_PROTOCOL"] HTTP/1.1
_ENV["REQUEST_METHOD"] GET
_ENV["REQUEST_URI"] /phpinfo.php
_ENV["SCRIPT_NAME"] /phpinfo.php
_ENV["PATH_TRANSLATED"] /home/jjbec2/public_html/phpinfo.php
_ENV["REDIRECT_STATUS"] 200

Joachim Müller

don't post phpinfo unless requested, may be a security risk to do so.

fade2grey

I'd be interested to see the solution to that one too - let me know if you get any help.

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

keithl


kegobeer

@kiethl: Pick a topic and stay with it.  I will not bounce back and forth between two topics.  Either post here or in your original topic, not both.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots


JoseyGirl

I thank Mr. GauGau for the advice!

For Fade2Grey and kiethl:

I went through the troubleshooting again per kegobeer's sucint reply. My group panel also looks different but I persevered.  This time I clicked on the little yellow "?" in the top bar and saw that for single file setting I have to set the URI limit to 0 (although I would prefer to use the URI address to upload the picture...).Once I saved that setting and tried to upload the picture again from my hard drive I received this error message:

The file 'albums/userpics/10001/WardaJennMud.JPG' can't be inserted in the album
Error executing ImageMagick - Return value: 127
etc. etc.

So I checked other threads about ImageMagick and opted not to install ImageMagick...so went to config and marked to use "GD2" to resize my images instead.

This has worked!!! I now have an image in my photoalbum.

Now, it seems I have to learn a little something about ftp to upload batch files?? I'll be starting from scratch as ftp is all new to me and I was hoping to avoid using it to work on my web page.  Also have to read DOCUMENTATION as I never even realized loading ImageMakick was a possible need-to-do (that was a left-fielder). Good luck to you all as well!

Oy, what a learning experience!

Joachim Müller

Quote from: JoseyGirl on December 09, 2005, 03:55:30 AM
although I would prefer to use the URI address to upload the picture...)
Now that you have solved your upload issues, it's safe to go back to the group settings as they used to be before, it was only a temporary setting to trouble-shoot things. Thanks for resolving your issue.

kcornish

Thanks to JoseyGirl for the GD2 configuration change. I had this working under Windows, but couldn't figure out why it failed under Linux. I don't know what the issue is with ImageMagick and Linux, but I sure am happy this works now. :D