• I’m fairly new to WordPress, and I wonder if anyone can suggest an alternative method of importing images to the library?

    I’ve updated to and am running 4.2.2. For some reason the ‘add new’ feature on the Media Library won’t import – although I have managed a couple of imports since updating – I just get the message An error occurred in the upload. Please try again later.’

    I have tried ‘later’ quite a few times to no avail and not had any previous response to posts regarding this. I need to be able to import.

    Any Advice Please!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hard to say without any error messages. First thing I would check is to make sure that your wp-content/uploads directory is writable. CHMOD it to 777 and try again.

    Something is off because the “Add New Media” shouldn’t be having errors like that. So lets do some basic troubleshooting to see if we can identify where the issue is. Disable all plugins and turn on a default WordPress theme (twentyfifteen). Test the site. Can you upload media successfully? If you still get an error message this tells us the issue is between WordPress and the server. I would check file permissions at this point and make sure that whatever user account WordPress has on the server that it has write access to the “wp-content” directory. Learn more about permissions here: https://codex.www.ads-software.com/Changing_File_Permissions

    But if there’s no issues when using a default WordPress set up, then the issue is with either the theme and/or plugins. So lets test that by re-enabling your custom theme. Test to see if uploading and attaching media works correctly. If yes, great, your theme is good to go. If not, time to contact the theme developer and let them know about the issue. Make sure to provide the developer with as much detail about your WordPress setup as possible so they can try and recreate the issue.

    Now if the custom theme works fine, that tells us the issue might be in a plugin. So we’ll now re-enable plugins, one at a time, testing the Add New media functionality after we re-eneable a plugin. If it works, great, move on to the next plugin. If at any point you see the issue, note which of the plugins you last enabled and contact the plugin developer and let them know about the issue. Again, provide as much detail about your WordPress setup as possible so they can best recreate the issue.

    Hopefully by the end of this process you’ll have a better understanding where the problem is and can get it fixed. If despite these steps the issue still persists, you may need to work with your hosting service to identify the issue (it may be how the server is configured).

    Also, you may want to try a manual update of WordPress: download the latest version of WordPress to your desktop, unzip, and then re-upload via FTP/SFTP to the server and replace the existing WordPress files **except the ‘uploads’ folder and ‘wp-config.php’ file**. Sometimes automatic updates don’t completely work on the rare occasion and a manual update can help fix things.

    Hi…pls. help…I couldn’t update my blog…even by blogging or updating any photos…eversince I updated to 4.2.2 my site was never the same again…First I couldn’t upload photos…then my host help me…when i updated my photo gallery again….this time i coudn’t even save any of my writings on my blog and also the photos…please I need your help?

    @yazonmanila – per the forum rules, please post your own topic. It’s highly unlikely that you are on the same host, using the same server, and have the same theme and plugins as the original poster. Think of these topics as individual support tickets – each problem, even if it seems the same or related, should have its own support ticket. Thanks!

    Thread Starter basils57

    (@basils57)

    Hi bemdesign, and thanks for the response.

    I’ve disabled all plugins and switched to twenty fifteen, and tried again. It doesn’t load and just says ‘crunching’, so I’m assuming I follow the rest of your suggestions?

    Oh sorry…how i can remove it?

    Thread Starter basils57

    (@basils57)

    Hi again bemdesign

    I’d got through most things, finding nothing untoward, and thinking of a reinstallation.
    I then checked with my host company, and they suggested that:

    “this error is caused by mod_security blocking a potentially malicious upload. While it may be completely harmless, mod_security has no way of knowing if it is harmless or not.

    Typically, the content in question is a file being uploaded which contains a special character such as a single or double quote within the file name which is often used by attackers to inject malicious scripts into websites.”

    I checked, and had an apostrophe ‘s’ in the image name, changed it and hey presto, it uploaded!

    My thanks again, and apologies for making what I now realise is a fairly basic error.

    Glad you got it figured out! I always try and avoid naming things with spaces or other special characters if I know it’s going on the web somewhere. Doing so certainly reduces issues like this from even cropping up – avoids those dangerous apostrophes! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Different method of importing images?’ is closed to new replies.