Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2006
    Posts
    3
    Plugin Contributions
    0

    Default Unable to Upload Product Images

    Dear all,

    I have not encountered such problem before, but lately I cannot upload product images via the product admin page. The error log shows:

    PHP Warning: Only -1 bytes were written, expected to write 5119 in Unknown on line 0

    Does anyone know what is the problem? The images directory is writtable by the Apache processor owner.

    Thanks in advance.

  2. #2
    Join Date
    Sep 2007
    Location
    Somewhere in Southern Cal
    Posts
    330
    Plugin Contributions
    0

    Default Re: Unable to Upload Product Images

    Wonder if your out of hard drive space, check to see how much you have left.

    nomad

  3. #3
    Join Date
    Jun 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Unable to Upload Product Images

    Quote Originally Posted by nomadrw View Post
    Wonder if your out of hard drive space, check to see how much you have left.

    nomad
    Hi,

    There is enough disk space. Please find below the version info:

    ==============================================

    Server Information
    Server Host: () Database Host: localhost (127.0.0.1)
    Server OS: Database: MySQL 4.1.18
    Server Date: 04/12/2007 10:20:39 Database Date: 04/12/2007 10:20:39

    Server Up Time:
    PHP Version: 4.4.2 (Zend: 1.3.0)
    HTTP Server: Apache

    Zen Cart
    Zen Cart 1.3.0.1
    Database Patch Level: 1.3.0.1
    v1.3.0.1 [2006-05-10 01:25:55] (Fresh Installation)
    PHP Version 4.4.2

    System BSD/OS xxx.xxx.xxx 4.2 BSDI BSD/OS 4.2 i386
    Build Date Jul 15 2006 21:15:44
    Configure Command './configure' '--prefix=/usr/local/php442' '--with-apache=../apache_1.3.36' '--with-exec-dir=/usr/local/php442/bin' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-mysql' '--with-freetype-dir=/usr/local' '--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-openssl=/usr/local/ssl' '--with-imap=/usr/local' '--with-curl=/usr/local' '--with-regex' '--with-zlib' '--disable-debug' '--disable-rpath' '--enable-mbstring' '--enable-mbregex' '--enable-force-cgi-redirect' '--enable-discard-path' '--enable-pic' '--enable-inline-optimization' '--enable-ftp' '--enable-dba' '--enable-sockets' '--enable-magic-quotes' '--enable-safe-mode' '--enable-track-vars' '--enable-trans-sid' '--enable-wddx' '--enable-sysvsem' '--enable-sysvshm' '--enable-memory-limit' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--enable-bcmath' '--enable-exif' '--with-iconv' '--with-xml' '--with-expat-dir=/usr/local' '--with-dom=/usr/local' '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/local' '--with-xmlrpc'
    Server API Apache
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /usr/local/php442/lib/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

    Configuration
    PHP Core
    Directive Local Value Master Value
    allow_call_time_pass_reference Off Off
    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 no value no value
    error_prepend_string no value no value
    error_reporting 2039 2047
    expose_php Off Off
    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/local/php442/lib/php .:/usr/local/php442/lib/php
    log_errors On On
    log_errors_max_len 1024 1024
    magic_quotes_gpc Off Off
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off
    max_execution_time 30 30
    max_input_time 60 60
    memory_limit 8M 8M
    open_basedir no value no value
    output_buffering 4096 4096
    output_handler no value no value
    post_max_size 8M 8M
    precision 14 14
    register_argc_argv Off Off
    register_globals Off Off
    report_memleaks On On
    safe_mode On On
    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 /bin/sendmail -t -i /bin/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 GPCS GPCS
    xmlrpc_error_number 0 0
    xmlrpc_errors Off Off
    y2k_compliance On On

    apache
    APACHE_INCLUDE no value
    APACHE_TARGET no value
    Apache Version Apache
    Apache Release 10336100
    Apache API Version 19990320
    Hostnameort www.xxx.xxx:80
    User/Group www(51)/84
    Max Requests Per Child: 2048 - Keep Alive: on - Max Per Connection: 200
    Timeouts Connection: 300 - Keep-Alive: 15
    Server Root /usr/local/apache
    Loaded Modules mod_php4, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_usertrack, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

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

    Apache Environment
    Variable Value
    DOCUMENT_ROOT /usr/home/xxx/xxx.xxx/htdocs
    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_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
    HTTP_ACCEPT_ENCODING gzip,deflate
    HTTP_ACCEPT_LANGUAGE en,en-us;q=0.5
    HTTP_CACHE_CONTROL max-stale=0
    HTTP_CONNECTION Keep-Alive
    HTTP_COOKIE zenid=a55a38d32115e76d145c8650682ed981; zenAdminID=cda46dcb8fda6c506eac2f13b0d2afa4
    HTTP_HOST www.xxx.xxx
    HTTP_REFERER http://www.xxx.xxx/admin/index.php
    HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
    HTTP_X_BLUECOAT_VIA 1B33DC5FE2D6E87D
    HTTP_X_FORWARDED_FOR 10.142.1.38
    MvCONFIG_DATABASE_MivaSQL /usr/local/miva/lib/databases/mivasql.so
    MvCONFIG_DIR_BUILTIN /usr/local/miva/lib/builtins
    MvCONFIG_LIBRARY /usr/local/miva/lib/config/env.so
    PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/contrib/bin:/usr/X11/bin
    REMOTE_ADDR 147.243.216.30
    REMOTE_PORT 43193
    SCRIPT_FILENAME /usr/home/xxx/xxx.xxx/htdocs/admin/server_info.php
    SERVER_ADDR 202.157.164.53
    SERVER_ADMIN [email protected]
    SERVER_NAME www.xxx.xxx
    SERVER_PORT 80
    SERVER_SIGNATURE <ADDRESS>Apache/1.3.36 Server at <A HREF="mailto:[email protected]">www.xxx.xxx</A> Port 80</ADDRESS>
    SERVER_SOFTWARE Apache
    GATEWAY_INTERFACE CGI/1.1
    SERVER_PROTOCOL HTTP/1.1
    REQUEST_METHOD GET
    QUERY_STRING no value
    REQUEST_URI /admin/server_info.php
    SCRIPT_NAME /admin/server_info.php

    HTTP Headers Information
    HTTP Request Headers
    HTTP Request GET /admin/server_info.php HTTP/1.1
    Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Accept-Encoding gzip,deflate
    Accept-Language en,en-us;q=0.5
    Cache-Control max-stale=0
    Connection Keep-Alive
    Cookie zenid=a55a38d32115e76d145c8650682ed981; zenAdminID=cda46dcb8fda6c506eac2f13b0d2afa4
    Host www.xxx.xxx
    Referer http://www.xxx.xxx/admin/index.php
    User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
    X-BlueCoat-Via 1B33DC5FE2D6E87D
    X-Forwarded-For 10.142.1.38
    HTTP Response Headers
    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

    bcmath
    BCMath support enabled

    calendar
    Calendar support enabled

    ctype
    ctype functions enabled

    curl
    CURL support enabled
    CURL Information libcurl/7.13.0 zlib/1.1.4

    dba
    DBA support enabled
    Supported handlers cdb cdb_make inifile flatfile

    dbx
    dbx support enabled
    dbx version 1.0.0
    supported databases MySQL ODBC PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8) Sybase-CT

    Directive Local Value Master Value
    dbx.colnames_case lowercase lowercase

    dio
    dio support enabled

    domxml
    DOM/XML enabled
    DOM/XML API Version 20020815
    libxml Version 20623
    HTML Support enabled
    XPath Support enabled
    XPointer Support enabled
    DOM/XSLT enabled
    libxslt Version 1.1.15
    libxslt compiled against libxml Version 2.6.23
    DOM/EXSLT enabled
    libexslt Version 1.1.15

    exif
    EXIF Support enabled
    EXIF Version 1.4 $Id: exif.c,v 1.118.2.37.2.4 2006/01/01 13:46:52 sniper Exp $
    Supported EXIF Version 0220
    Supported filetypes JPEG,TIFF

    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

    imap
    IMAP c-Client Version 2001

    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 no value no value
    mbstring.language neutral neutral
    mbstring.substitute_character no value no value

    mysql
    MySQL Support enabled
    Active Persistent Links 1
    Active Links 2
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value

    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 /usr/home/xxx/mysql/mysql-xxx.sock 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.7i 14 Oct 2005

    overload
    User-Space Object Overloading Support enabled

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

    posix
    Revision $Revision: 1.51.2.4.2.1 $

    session
    Session Support enabled
    Registered save handlers files user

    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 Off Off
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain www.xxx.xxx 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 1000 1000
    session.gc_maxlifetime 3600 1440
    session.gc_probability 1 1
    session.name zenAdminID PHPSESSID
    session.referer_check no value no value
    session.save_handler user files
    session.save_path /usr/home/xxx/xxx.xxx/htdocs/cache /tmp
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid Off Off

    shmop
    shmop support enabled

    sockets
    Sockets Support enabled

    standard
    Regex Library Bundled library enabled
    Dynamic Library Support enabled
    Path to sendmail /bin/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=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
    user_agent no value no value

    tokenizer
    Tokenizer Support enabled

    wddx
    WDDX Support enabled
    WDDX Session Serializer enabled

    xml
    XML Support active
    XML Namespace Support active
    EXPAT Version expat_2.0.0

    xmlrpc
    core library version xmlrpc-epi v. 0.51
    php extension version 0.51
    author Dan Libby
    homepage http://xmlrpc-epi.sourceforge.net
    open sourced by Epinions.com

    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
    sysvsem
    sysvshm

    Environment
    Variable Value
    HOME /
    TERM bsdos-pc
    PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/contrib/bin:/usr/X11/bin

    PHP Variables
    Variable Value
    PHP_SELF /admin/server_info.php
    _REQUEST["zenid"] a55a38d32115e76d145c8650682ed981
    _REQUEST["zenAdminID"] cda46dcb8fda6c506eac2f13b0d2afa4
    _COOKIE["zenid"] a55a38d32115e76d145c8650682ed981
    _COOKIE["zenAdminID"] cda46dcb8fda6c506eac2f13b0d2afa4
    _SERVER["DOCUMENT_ROOT"] /usr/home/xxx/xxx.xxx/htdocs
    _SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    _SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
    _SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
    _SERVER["HTTP_ACCEPT_LANGUAGE"] en,en-us;q=0.5
    _SERVER["HTTP_CACHE_CONTROL"] max-stale=0
    _SERVER["HTTP_CONNECTION"] Keep-Alive
    _SERVER["HTTP_COOKIE"] zenid=a55a38d32115e76d145c8650682ed981; zenAdminID=cda46dcb8fda6c506eac2f13b0d2afa4
    _SERVER["HTTP_HOST"] www.xxx.xxx
    _SERVER["HTTP_REFERER"] http://www.xxx.xxx/admin/index.php
    _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
    _SERVER["HTTP_X_BLUECOAT_VIA"] 1B33DC5FE2D6E87D
    _SERVER["HTTP_X_FORWARDED_FOR"] 10.142.1.38
    _SERVER["MvCONFIG_DATABASE_MivaSQL"] /usr/local/miva/lib/databases/mivasql.so
    _SERVER["MvCONFIG_DIR_BUILTIN"] /usr/local/miva/lib/builtins
    _SERVER["MvCONFIG_LIBRARY"] /usr/local/miva/lib/config/env.so
    _SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/contrib/bin:/usr/X11/bin
    _SERVER["REMOTE_ADDR"] 147.243.216.30
    _SERVER["REMOTE_PORT"] 43193
    _SERVER["SCRIPT_FILENAME"] /usr/home/xxx/xxx.xxx/htdocs/admin/server_info.php
    _SERVER["SERVER_ADDR"] yyy.yyy.yyy.yyy
    _SERVER["SERVER_ADMIN"] [email protected]
    _SERVER["SERVER_NAME"] www.xxx.xxx
    _SERVER["SERVER_PORT"] 80
    _SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.36 Server at <A HREF="mailto:[email protected]">www.xxx.xxx</A> Port 80</ADDRESS>
    _SERVER["SERVER_SOFTWARE"] Apache
    _SERVER["GATEWAY_INTERFACE"] CGI/1.1
    _SERVER["SERVER_PROTOCOL"] HTTP/1.1
    _SERVER["REQUEST_METHOD"] GET
    _SERVER["QUERY_STRING"] no value
    _SERVER["REQUEST_URI"] /admin/server_info.php
    _SERVER["SCRIPT_NAME"] /admin/server_info.php
    _SERVER["PATH_TRANSLATED"] /usr/home/xxx/xxx.xxx/htdocs/admin/server_info.php
    _SERVER["PHP_SELF"] /admin/server_info.php

 

 

Similar Threads

  1. Unable to upload images through categories/products
    By iCarp in forum General Questions
    Replies: 7
    Last Post: 5 Aug 2015, 05:11 PM
  2. Unable to upload images
    By yelsha42 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 5 May 2011, 09:55 AM
  3. Unable to Upload Product Images in admin
    By bgruhn76 in forum General Questions
    Replies: 8
    Last Post: 26 Feb 2009, 06:38 PM
  4. Unable to upload attribute images...
    By retrobec in forum Bug Reports
    Replies: 11
    Last Post: 17 Nov 2008, 12:54 AM
  5. unable to upload images
    By bigplaywebguy in forum General Questions
    Replies: 5
    Last Post: 11 Nov 2008, 07:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg