Support » Fixing WordPress » base64 images. How to prevent it.

  • Hi,

    I’ve just found out many of my wordpress sites are storing images as base64 into the database.
    Is that normal?
    Is there any way to disable this?
    base64 makes bigger databases and I’m having problems when importing with PhpMyAdmin.


Viewing 2 replies - 1 through 2 (of 2 total)
  • That’s very strange. WordPress doesn’t do that at all, and I’ve never seen a plugin yet that does that. As you’ve said, storing images in the database is just a terrible idea.

    The best chance is that either some plugin or the theme that you’re using is forcing this for whatever reason. The way to find out which one is to de-activate all (yes all) plugins and switch to the default theme, then re-enable each plugin one-by-one and test each time ot see if a new image that you’re uploading is stored in the database or on the file system. That will show you which plugin/theme is causing that issue and you can deal with it then.

    Thanks for your quick answer.
    I’been testing with a fresh WordPress install and I’ve found the reason.
    base64 code starts showing in database when duplicate pages or post with WPML for translation.
    I’ve opened a topic in WPML forum
    with detailed information about how to repeat the issue.

    Hope they can help me.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘base64 images. How to prevent it.’ is closed to new replies.