Loading...
 
Architecture / Installation

Architecture / Installation


cannot process upload

posts: 15 United States

I am new to tikiwiki and and this is a new install under SuSE linux 9.1.

Most of the features work except for one of the most important - uploading pictures to an immage gallery. I can create the gallery but when I try to upload an image I get the message "cannot process upload". Other references to this error all seem to relate to an excessivly large file. I am trying very small .jpg files.

I have tried versions 1.7.8, 1.8.4 plus a replacement module the referenced correcting upload errors, and 1.9.RC3. They all work the same. I have the gd image library installed.

Any help is appreciated.exclaim

posts: 2881 United Kingdom

We would need access to a phpinfo(); output to be able to help, as you havent left us any settings

RecipeBigUploads might help as well

Damian


posts: 15 United States

Here is the output from the phpinfo option that I found under the admin tab. I do not know what a RecipeBigUploads is.

Thanks.


PHP Logo
PHP Version 4.3.6

System Linux Buzzard 2.6.5-6.1-local #1 Sat Sep 11 17:40:12 EDT 2004 i686
Build Date May 24 2004 20:08:46
Configure Command './configure' 'disable-force-cgi-redirect' 'enable-debug' 'enable-discard-path' 'with-apxs2=/usr/local/apache2/bin/apxs' 'with-config-file-path=/etc' 'with-mysql=/usr' 'with-gettext=/usr/bin/gettext' 'with-mcrypt'
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path /etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build yes
Thread Safety enabled
Registered PHP Streams php, http, ftp

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 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 Off Off
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 syslog syslog
error_prepend_string no value no value
error_reporting 2047 2039
expose_php On On
extension_dir ./ ./
file_uploads Off Off
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 Off Off
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path lib/pear:lib/adodb:lib/pear:lib:.:/usr/local/lib/php .:/usr/local/lib/php
log_errors On 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 60 60
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
register_argc_argv On On
register_globals Off Off
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 On On

apache2handler
Apache Version Apache/2.0.49 (Unix) PHP/4.3.6
Apache API Version 20020903
Server Administrator webmaster@InsteadOf.info
Hostname:Port WillowGlen64.info:0
User/Group wwwrun(30)/30
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Virtual Server Yes
Server Root /www
Loaded Modules core mod_access mod_auth mod_cache mod_mem_cache mod_include mod_deflate mod_log_config mod_env mod_expires mod_setenvif worker http_core mod_mime mod_status mod_autoindex mod_asis mod_info mod_suexec mod_cgid mod_cgi mod_negotiation mod_dir mod_imap mod_actions mod_userdir mod_alias mod_so sapi_apache2

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment
Variable Value
HTTP_HOST 10.168.1.11:158
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
HTTP_REFERER http://10.168.1.11:158/wiki/tiki-index.php
HTTP_COOKIE menu=@admmnu%3Ao; admmnu=o; PHPSESSID=489fbb3004664cc110d7b59a911ffadf; tz_offset=-14400
PATH /usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE no value
SERVER_SOFTWARE Apache/2.0.49 (Unix) PHP/4.3.6
SERVER_NAME WillowGlen64.info
SERVER_ADDR 10.168.1.11
SERVER_PORT 158
REMOTE_ADDR 10.168.2.20
DOCUMENT_ROOT /www/WillowGlen64/htdocs
SERVER_ADMIN webmaster@InsteadOf.info
SCRIPT_FILENAME /www/WillowGlen64/htdocs/wiki/tiki-phpinfo.php
REMOTE_PORT 1620
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /wiki/tiki-phpinfo.php
SCRIPT_NAME /wiki/tiki-phpinfo.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /wiki/tiki-phpinfo.php HTTP/1.1
Host 10.168.1.11:158
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer http://10.168.1.11:158/wiki/tiki-index.php
Cookie menu=@admmnu%3Ao; admmnu=o; PHPSESSID=489fbb3004664cc110d7b59a911ffadf; tz_offset=-14400
HTTP Response Headers
X-Powered-By PHP/4.3.6
Set-Cookie PHPSESSID=489fbb3004664cc110d7b59a911ffadf; path=/wiki
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Keep-Alive timeout=15, max=76
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html; charset=utf-8

ctype
ctype functions enabled

gettext
GetText Support enabled

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

mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.18
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

overload
User-Space Object Overloading Support enabled

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003

posix
Revision $Revision: 1.51.2.2 $

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 /wiki /
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 On Off
session.use_trans_sid Off Off

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,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value

tokenizer
Tokenizer Support enabled

xml
XML Support active
XML Namespace Support active
EXPAT Version 1.95.6

Additional Modules
Module Name

Environment
Variable Value
CONSOLE /dev/console
TERM linux
SHELL /bin/sh
get_module_list_done true
progress 42
INIT_VERSION sysvinit-2.85
REDIRECT /dev/tty1
COLUMNS 128
get_includes_done true
PATH /usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
vga 791
RUNLEVEL 3
resume /dev/hda2
PWD /
PREVLEVEL N
LINES 48
SHLVL 2
splash silent
sscripts 45
_ /sbin/startproc
DAEMON /usr/sbin/httpd2-local

PHP Variables
Variable Value
_REQUEST%22menu%22 @admmnu:o
_REQUEST%22admmnu%22 o
_REQUEST%22PHPSESSID%22 489fbb3004664cc110d7b59a911ffadf
_REQUEST%22tz_offset%22 -14400
_REQUEST%22CONSOLE%22 /dev/console
_REQUEST%22TERM%22 linux
_REQUEST%22SHELL%22 /bin/sh
_REQUEST%22get_module_list_done%22 true
_REQUEST%22progress%22 42
_REQUEST%22INIT_VERSION%22 sysvinit-2.85
_REQUEST%22REDIRECT%22 /dev/tty1
_REQUEST%22COLUMNS%22 128
_REQUEST%22get_includes_done%22 true
_REQUEST%22PATH%22 /usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
_REQUEST%22vga%22 791
_REQUEST%22RUNLEVEL%22 3
_REQUEST%22resume%22 /dev/hda2
_REQUEST%22PWD%22 /
_REQUEST%22PREVLEVEL%22 N
_REQUEST%22LINES%22 48
_REQUEST%22SHLVL%22 2
_REQUEST%22splash%22 silent
_REQUEST%22sscripts%22 45
_REQUEST%22_%22 /sbin/startproc
_REQUEST%22DAEMON%22 /usr/sbin/httpd2-local
_REQUEST%22HTTP_HOST%22 10.168.1.11:158
_REQUEST%22HTTP_USER_AGENT%22 Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
_REQUEST%22HTTP_ACCEPT%22 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_REQUEST%22HTTP_ACCEPT_LANGUAGE%22 en-us,en;q=0.5
_REQUEST%22HTTP_ACCEPT_ENCODING%22 gzip,deflate
_REQUEST%22HTTP_ACCEPT_CHARSET%22 ISO-8859-1,utf-8;q=0.7,*;q=0.7
_REQUEST%22HTTP_KEEP_ALIVE%22 300
_REQUEST%22HTTP_CONNECTION%22 keep-alive
_REQUEST%22HTTP_REFERER%22 http://10.168.1.11:158/wiki/tiki-index.php
_REQUEST%22HTTP_COOKIE%22 menu=@admmnu%3Ao; admmnu=o; PHPSESSID=489fbb3004664cc110d7b59a911ffadf; tz_offset=-14400
_REQUEST%22SERVER_SIGNATURE%22 no value
_REQUEST%22SERVER_SOFTWARE%22 Apache/2.0.49 (Unix) PHP/4.3.6
_REQUEST%22SERVER_NAME%22 WillowGlen64.info
_REQUEST%22SERVER_ADDR%22 10.168.1.11
_REQUEST%22SERVER_PORT%22 158
_REQUEST%22REMOTE_ADDR%22 10.168.2.20
_REQUEST%22DOCUMENT_ROOT%22 /www/WillowGlen64/htdocs
_REQUEST%22SERVER_ADMIN%22 webmaster@InsteadOf.info
_REQUEST%22SCRIPT_FILENAME%22 /www/WillowGlen64/htdocs/wiki/tiki-phpinfo.php
_REQUEST%22REMOTE_PORT%22 1620
_REQUEST%22GATEWAY_INTERFACE%22 CGI/1.1
_REQUEST%22SERVER_PROTOCOL%22 HTTP/1.1
_REQUEST%22REQUEST_METHOD%22 GET
_REQUEST%22QUERY_STRING%22 no value
_REQUEST%22REQUEST_URI%22 /wiki/tiki-phpinfo.php
_REQUEST%22SCRIPT_NAME%22 /wiki/tiki-phpinfo.php
_REQUEST%22PHP_SELF%22 /wiki/tiki-phpinfo.php
_REQUEST%22PATH_TRANSLATED%22 /www/WillowGlen64/htdocs/wiki/tiki-phpinfo.php
_REQUEST%22argv%22

Array
(
)

_REQUEST%22argc%22 0
_COOKIE%22menu%22 @admmnu:o
_COOKIE%22admmnu%22 o
_COOKIE%22PHPSESSID%22 489fbb3004664cc110d7b59a911ffadf
_COOKIE%22tz_offset%22 -14400
_SERVER%22HTTP_HOST%22 10.168.1.11:158
_SERVER%22HTTP_USER_AGENT%22 Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3
_SERVER%22HTTP_ACCEPT%22 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER%22HTTP_ACCEPT_LANGUAGE%22 en-us,en;q=0.5
_SERVER%22HTTP_ACCEPT_ENCODING%22 gzip,deflate
_SERVER%22HTTP_ACCEPT_CHARSET%22 ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER%22HTTP_KEEP_ALIVE%22 300
_SERVER%22HTTP_CONNECTION%22 keep-alive
_SERVER%22HTTP_REFERER%22 http://10.168.1.11:158/wiki/tiki-index.php
_SERVER%22HTTP_COOKIE%22 menu=@admmnu%3Ao; admmnu=o; PHPSESSID=489fbb3004664cc110d7b59a911ffadf; tz_offset=-14400
_SERVER%22PATH%22 /usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
_SERVER%22SERVER_SIGNATURE%22 no value
_SERVER%22SERVER_SOFTWARE%22 Apache/2.0.49 (Unix) PHP/4.3.6
_SERVER%22SERVER_NAME%22 no value
_SERVER%22SERVER_ADDR%22 10.168.1.11
_SERVER%22SERVER_PORT%22 158
_SERVER%22REMOTE_ADDR%22 10.168.2.20
_SERVER%22DOCUMENT_ROOT%22 /www/WillowGlen64/htdocs
_SERVER%22SERVER_ADMIN%22 webmaster@InsteadOf.info
_SERVER%22SCRIPT_FILENAME%22 /www/WillowGlen64/htdocs/wiki/tiki-phpinfo.php
_SERVER%22REMOTE_PORT%22 1620
_SERVER%22GATEWAY_INTERFACE%22 CGI/1.1
_SERVER%22SERVER_PROTOCOL%22 HTTP/1.1
_SERVER%22REQUEST_METHOD%22 GET
_SERVER%22QUERY_STRING%22 no value
_SERVER%22REQUEST_URI%22 /wiki/tiki-phpinfo.php
_SERVER%22SCRIPT_NAME%22 /wiki/tiki-phpinfo.php
_SERVER%22PHP_SELF%22 /wiki/tiki-phpinfo.php
_SERVER%22PATH_TRANSLATED%22 /www/WillowGlen64/htdocs/wiki/tiki-phpinfo.php
_SERVER%22argv%22

Array
(
)

_SERVER%22argc%22 0
_ENV%22CONSOLE%22 /dev/console
_ENV%22TERM%22 linux
_ENV%22SHELL%22 /bin/sh
_ENV%22get_module_list_done%22 true
_ENV%22progress%22 42
_ENV%22INIT_VERSION%22 sysvinit-2.85
_ENV%22REDIRECT%22 /dev/tty1
_ENV%22COLUMNS%22 128
_ENV%22get_includes_done%22 true
_ENV%22PATH%22 /usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
_ENV%22vga%22 791
_ENV%22RUNLEVEL%22 3
_ENV%22resume%22 /dev/hda2
_ENV%22PWD%22 /
_ENV%22PREVLEVEL%22 N
_ENV%22LINES%22 48
_ENV%22SHLVL%22 2
_ENV%22splash%22 silent
_ENV%22sscripts%22 45
_ENV%22_%22 /sbin/startproc
_ENV%22DAEMON%22 /usr/sbin/httpd2-local

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license at php.net.

posts: 2881 United Kingdom

Well there is your answer:

file_uploads Off Off

Nothing will ever be able to upload with that setting

Maybe TikiFriendlyHosts link will help you in choosing a host, or its it a local machine your installing on then I can give you correct settings for the php.ini file

Damian


posts: 15 United States

Thanks, I had just found that myself. It is a local machine.

Now I can upload .gif files, but when I try a .jpg file I get:

"Uploaded file ist not recognized as a image" (sic).

I see that the tiki-upload_image.php specifically checks for the .gif extension. Is this all that is supported?

Thanks again for the quick reply.

...don

posts: 2881 United Kingdom

Well the next step is to get GD2 installed for your PHP, as thats missing.

GIF is checked because using GD2 you cannot create thumbnails of them other formats you can. So basically its saying if GIF, then bypass thumbnail creation.

Damian


posts: 15 United States

Sorry, I did not post a new php info. As an aside that is a lot of unneeded info now, is there some way that I can delete it?

When I switched to the RC3 versions, I noticed that under the admin images section that GD was not detected. Doing some checking, I found that my version was not loading because it was not thread safe and php was. I got and compliled a new version, and now the status shows as GD Detected, version: 2.0


here are the relevant pieces:

GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


posts: 15 United States

Not sure if the previous post was clear.

Even though gd is installed, and detected, I stiill am unable to upload images.

Thanks,


posts: 15 United States

I got it to work. I enabled error messages and found that I was trying to reference a 'geographic' index in the tiki-galleries table, and trying to insert data into 'lon' and 'lat' fields in the tiki-images table. None of these fields existed. I added the 'missing' fields.

Also, any page that uses a gallery or image generates the following error:

Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0

and the apache error log records a memory leak when the .php function ends.

In addition, the 'thumbnails' where the same size as the original. That seems to have been fixed when I rebuilt php and linked with my system jpeg libraries instead of the php supplied default ones.




Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting