• Hi There,

    I wanted to upload media onto a website by using the “add media” function on the website page. For some reason it doesn’t show any media once I try and add it to a page.

    Any idea why? I haven’t worked on the website for a while.

Viewing 15 replies - 1 through 15 (of 16 total)
  • there are many different reasons it could fail so you need to do some debugging
    How big is the file you are uploading?
    can you upload a 10kb image?
    are you on the latest version of WP, plugins and theme (if not backup before upgrading)
    Have you disabled all your plugins to see if there is a conflict?
    Have you turned WP-DEBUG on in the wp-config.php file?
    Have you looked at your server’s error log (no I don’t know where this is, look in your cPanel or call your host – it’s location is controled by the host)

    Thread Starter TheTwister

    (@thetwister)

    Yeah I have tried a file which is already on the website.
    I am on the latest version and I have deactivated all the plugins and gone to a default theme and still have no luck.
    I did a WP-DEBUG and it had Constant WP_MEMORY_LIMIT already defined.
    Couldn’t see anything in the error log.

    can you upload a 10kb image?

    Yeah I have tried a file which is already on the website.

    what does this mean?

    Thread Starter TheTwister

    (@thetwister)

    The lowest file i have is 12kb image.
    I’ll try a 10kb image but would it make a difference?

    I can upload it fine, but it doesn’t want to insert onto the page.

    Ok, I misunderstood, so to recap you can upload media to your site you just can’t insert it into a page/post.

    After you upload the media, do you see it in the media library?
    When you edit the page and hit the add media button and select a media image
    1) when you hit the “insert into page’ button, do you see it in the page?
    Do you then remember to press the update button?

    Thread Starter TheTwister

    (@thetwister)

    Yes I see the images when upload them to the library.

    I don’t see anything in the page after i press the “insert into page” button.

    are you using the text or visual editor?

    Thread Starter TheTwister

    (@thetwister)

    text, but i have tried with both.

    add this to your wp-config.php file
    define('WP_DEBUG_LOG', true);
    and test again. This will create a file ‘debug.log’ in yout wp-content folder is an errors are showing.

    Thread Starter TheTwister

    (@thetwister)

    I have two:

    Notice: Constant WP_MEMORY_LIMIT already defined in /home/site/public_html/wp-config.php on line 90

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/site/public_html/wp-includes/functions.php on line 3495
    Skip to main content

    Notice: Constant WP_MEMORY_LIMIT already defined in /home/site/public_html/wp-config.php on line 90

    this sounds like you have two occurances of WP_MEMORY_LIMIT in your wp-config.php and though it is just a notice, you should remove one.

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/site/public_html/wp-includes/functions.php on line 3495

    This is saying the theme you are using or a plugin is using a deprecated function

    1) what theme are you using and what version is it?
    2) are ALL plugins disabled?
    3) what is the version number of WP you are using?

    Thread Starter TheTwister

    (@thetwister)

    I went onto another website and that still has the same issue.

    I’m using 4.1 and all plugins are disabled. But I did downgrade to 4.0 and still have no luck.

    if the other website is on the same server, then this sounds like an issue with the server.

    Have you contacted your host and asked their help?

    Thread Starter TheTwister

    (@thetwister)

    Just have waiting for a reply

    Thread Starter TheTwister

    (@thetwister)

    All fixed!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Unable to upload madia’ is closed to new replies.