Ready to get started?Download WordPress


base64 images. How to prevent it. (3 posts)

  1. ivansa
    Posted 9 months ago #


    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.


  2. catacaustic
    very awesome
    Posted 9 months ago #

    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.

  3. ivansa
    Posted 9 months ago #

    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 http://wpml.org/forums/topic/wpml-and-base64/
    with detailed information about how to repeat the issue.

    Hope they can help me.



You must log in to post.

About this Topic