WordPress.org

Ready to get started?Download WordPress

Forums

Images upload fine but WP shows 0X0 Size (7 posts)

  1. loginame
    Member
    Posted 4 years ago #

    There are numerous posts in this forum regarding this problem with seeming ly no answers. I am now experiencing this problem. All plugins are disabled. I upload an image, the image is crunched and all 3 image sizes appear in wp-content/uploads as expected. In the WP interface though the image shows up as 0X0 width and if you go to edit the image it says that image data doesn't exist. All the while a thumbnail is visible in the interface. I have seen references by others to first save a post as a draft and the image upload will work properly but this doesn't work for me. Any suggestions would be greatly appreciated as I have reached an impasse.

  2. loginame
    Member
    Posted 4 years ago #

    I stand partially corrected. If I create a new post I have no problems. If I try to add an image to an existing post then I have the problem noted above. Changing th post status to draft has no consequence.

  3. loginame
    Member
    Posted 4 years ago #

    So, I cleared all of the post revisions but this had not impact. Not sure why it would but it was worth a try. I can confirm that the image has uploaded just fine. The post attachment url links to the image. So, this problem seems to be solely related to the WP interface/database.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    See http://wordpress.org/support/topic/164999 for some possible solutions.

  5. Clarence Johnson
    Member
    Posted 3 years ago #

    Anybody??????

    Esmi: like you, I have the same exact problem. I'm on WP 3.0.1. This is frustrating....

  6. Jeff
    Member
    Posted 3 years ago #

    I very recently found that this problem can be solved with AJAX Thumbnail Rebuild plugin http://wordpress.org/extend/plugins/ajax-thumbnail-rebuild/ with a slight modification

    Add 1 line after line 172

    line 172 	 $fullsizepath = get_attached_file( $id );
    +	 	 if ($fullsizepath == '') $fullsizepath = get_post($attachment_ID)->guid;

    (from http://breiti.cc/wordpress/ajax-thumbnail-rebuild/comment-page-1/#comment-338 )

    AJAX Thumbnail Rebuild as modified recreates all the thumbnails and the post_meta that is used by the Add Image function. The images that are seen as 0x0 don't seem to have the correct post_meta information.

  7. tanira
    Member
    Posted 3 years ago #

    i was having the IO ERROR and my images were 0x0 size too.

    this AJAX Thumbnail Rebuild with the change on line 172 + changes on the php.ini file solved the problem, thanks.

    the php.ini file looks like this:

    [Verisign Payflow Pro]
    pfpro.defaultport = 443
    pfpro.defaulttimeout = 30
    pfpro.defaulthost = "test-payflow.verisign.com"
    
    [ODBC]
    odbc.allow_persistent = On
    odbc.defaultbinmode = 1
    odbc.max_links = -1
    odbc.check_persistent = On
    odbc.defaultlrl = 4096
    odbc.max_persistent = -1
    
    [Assertion]
    
    [mSQL]
    msql.allow_persistent = On
    msql.max_persistent = -1
    msql.max_links = -1
    
    [Sybase]
    sybase.max_links = -1
    sybase.compatability_mode = Off
    sybase.min_error_severity = 10
    sybase.allow_persistent = On
    sybase.min_message_severity = 10
    sybase.max_persistent = -1
    
    [MySQL]
    mysql.default_socket =
    mysql.max_links = -1
    mysql.default_password =
    mysql.default_port =
    mysql.allow_persistent = Off
    mysql.max_persistent = -1
    mysql.default_user =
    mysql.default_host =
    mysql.trace_mode = Off
    mysql.connect_timeout = 60
    
    [exif]
    
    [Sybase-CT]
    sybct.allow_persistent = On
    sybct.max_persistent = -1
    sybct.min_client_severity = 10
    sybct.max_links = -1
    sybct.min_server_severity = 10
    
    [Session]
    session.bug_compat_42 = 0
    session.auto_start = 0
    session.cache_limiter = nocache
    session.bug_compat_warn = 1
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
    session.name = PHPSESSID
    session.hash_function = 0
    session.entropy_length = 0
    session.serialize_handler = php
    session.cookie_path = /
    session.entropy_file =
    session.gc_probability = 1
    session.cache_expire = 180
    session.gc_divisor = 1000
    session.cookie_domain =
    session.gc_maxlifetime = 1440
    session.referer_check =
    session.save_handler = files
    session.cookie_lifetime = 0
    session.use_cookies = 1
    session.use_trans_sid = 0
    session.hash_bits_per_character = 5
    
    [mbstring]
    
    [soap]
    soap.wsdl_cache_ttl = 86400
    soap.wsdl_cache_enabled = 1
    soap.wsdl_cache_dir = /home/storage/2/42/e1/estadonews/tmp
    
    [mail function]
    sendmail_path = /usr/sbin/sendmail -t -i
    smtp_port = 25
    smtp = localhost
    
    [PostgresSQL]
    pgsql.max_links = -1
    pgsql.allow_persistent = On
    pgsql.log_notice = 0
    pgsql.auto_reset_persistent = Off
    pgsql.ignore_notice = 0
    pgsql.max_persistent = -1
    
    [Ingres II]
    ingres.allow_persistent = On
    ingres.default_password =
    ingres.default_database =
    ingres.max_persistent = -1
    ingres.default_user =
    ingres.max_links = -1
    
    [SQL]
    sql.safe_mode = Off
    
    [bcmath]
    bcmath.scale = 0
    
    [MySQLi]
    mysqli.default_host =
    mysqli.default_pw =
    mysqli.reconnect = Off
    mysqli.default_user =
    mysqli.default_socket =
    mysqli.max_links = -1
    mysqli.default_port = 3306
    
    [Tidy]
    tidy.clean_output = Off
    
    [Syslog]
    define_syslog_variables = Off
    
    [browscap]
    
    [Informix]
    ifx.max_links = -1
    ifx.byteasvarchar = 0
    ifx.max_persistent = -1
    ifx.default_password =
    ifx.nullformat = 0
    ifx.textasvarchar = 0
    ifx.charasvarchar = 0
    ifx.allow_persistent = On
    ifx.blobinfile = 0
    ifx.default_host =
    ifx.default_user = 
    
    [FrontBase]
    
    [PHP]
    asp_tags = On
    include_path = ".:/usr/share/pear"
    ignore_repeated_source = Off
    variables_order = "EGPCS"
    track_errors = On
    output_buffering = 4096
    doc_root =
    log_errors = On
    safe_mode_allowed_env_vars = PHP_
    safe_mode_protected_env_vars = LD_LIBRARY_PATH
    auto_append_file =
    disable_classes =
    enable_dl = Off
    display_startup_errors = Off
    user_dir =
    extension_dir = "/usr/lib/php/modules/"
    register_argc_argv = On
    display_errors = On
    allow_call_time_pass_reference = Off
    safe_mode_exec_dir =
    default_socket_timeout = 60
    register_globals = On
    unserialize_callback_func =
    y2k_compliance = On
    magic_quotes_runtime = Off
    expose_php = Off
    log_errors_max_len = 1024
    post_max_size = 105M
    report_memleaks = On
    engine = On
    memory_limit = 64M
    short_open_tag = On
    upload_tmp_dir = /home/storage/2/42/e1/estadonews/tmp
    max_execution_time = 300
    safe_mode_include_dir =
    serialize_precision = 100
    precision = 14
    upload_max_filesize = 100M
    register_long_arrays = On
    safe_mode = Off
    zend.ze1_compatibility_mode = Off
    zlib.output_compression = Off
    ignore_repeated_errors = Off
    default_mimetype = "text/html"
    disable_functions =
    file_uploads = On
    magic_quotes_sybase = Off
    max_input_time = 60
    magic_quotes_gpc = Off
    error_reporting = E_ALL & ~E_NOTICE
    safe_mode_gid = Off
    auto_prepend_file =
    implicit_flush = Off
    allow_url_fopen = Off
    
    [com]
    
    [MSSQL]
    mssql.compatability_mode = Off
    mssql.allow_persistent = Off
    mssql.max_persistent = -1
    mssql.min_error_severity = 10
    mssql.min_message_severity = 10
    mssql.max_links = -1
    mssql.secure_connection = Off
    
    session.save_path = "/var/lib/php-cgi/session"

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.