WordPress.org

Ready to get started?Download WordPress

Forums

Trouble with uploading images and popup plugin (10 posts)

  1. MrTree
    Member
    Posted 4 years ago #

    Hi,
    I've just installed word press and I'm having issues uploading images.
    I get a 500 internal server error (using the non flash uploader) when I upload anything other than tiny images (largest I've uploaded is 545x363). The larger (failed) images appear in the library but no smaller version is available and I can't embed them in posts...

    What I'd ideally like is to upload large photographs of any size and then have a smaller version created automatically (approx. 500x300) then when a reader click on that image a larger res version is presented (occupying most of the screen) as an overlay just like with the "Preview theme" feature. Does anyone know of a plugin that I can use to do this?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Check with your hosts that the GD Library is installed on your server. WordPress normally produces a number of images of differing sizes from each upload by default.

  3. MrTree
    Member
    Posted 4 years ago #

    Yeah I get the thumbnail etc with the smaller images...

    I'll check about my hosts (I'm with 1and1 if anyone knows the answer already).

    -edit-
    Yes, I just took a look at phpinfo() and it is supported.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    1 & 1 is normally set up for WordPress although you might want to try adding AddType x-mapp-php5 .phpto the top of your WordPress .htaccess file if you have any problems downloading plugins & themes or updating WP at some point.

    Check your current theme's functions.php file for something like:

    $GLOBALS['content_width'] = 500;

  5. MrTree
    Member
    Posted 4 years ago #

    I tried using the default theme (twentyten I think) and that has the maximum as 640 which at first appeared correct but changing that value didn't change anything when uploading a larger image...

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress?

    - increasing the available memory?
    http://wordpress.org/support/topic/253495#post-1017842

  7. MrTree
    Member
    Posted 4 years ago #

    I've re-installed wp from scratch and like I said it was a fresh installation anyhow, without any plugins or themes active.

    I'll try to look into the available memory but we're not talking about massive figures here, through trail and error I was able to determine that 700x466 works and 750x500 doesn't (I've set $content_width to 800 in twentyten/functions.php).

    The error that's being generated by wordpress is:
    "Are you sure you want to do this?"
    My browser is just displaying the generic 500 error tho.

  8. MrTree
    Member
    Posted 4 years ago #

    According to phpinfo() the memory_limit=40
    I tried adding define('WP_MEMORY_LIMIT', '32M'); to wp-config.php but to no avail...

  9. MrTree
    Member
    Posted 4 years ago #

    Hummm,
    I added:
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    to my .htaccess file and it seems to be working better now, I can upload the 750x500 image, but when I try to upload the full size image I get an out of memory error...
    Well that's progress I guess, now to try some memory tweaks...

  10. MrTree
    Member
    Posted 4 years ago #

    Ok, so the full size image is clearly not going to work with 40MB and I'm not sure I can increase the memory beyond this point by myself.

    Anyhow, the image scaled to 50% is too big anyhow so I think I'll sick with this for now. Now to figure out how to make enlarged images show up as an overlay but I may create another thread on another day for that!

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic