Up Arrow

WordPress Visual Editor Becomes Blank Being Updated To 4.4

  • Date: January 1st, 2016 | by Samrat Azad
  • Facebook
  • Tweet
  • Googleplus
  • IN

Recently in one of my WordPress project, visual editor went blank being upgraded to version 4.4, but in the front end content was showing properly for posts and pages.

After a little bit of research i found that it happens due to old MySQL version that is running on the server. WordPress recommends MySQL version  to be 5.6 or greater for WordPress 4.4 Clifford.

WordPress uses database char-set “utf8mb4″and database collection for table “utf8mb4_unicode_ci” for the latest version.

The problem occurs when you run latest WordPress in your server with old MySQL version like 5.0 – 5.4 or older than that, database char-set “utf8mb4″and database collection for table “utf8mb4_unicode_ci” does not support old MySQL version and that causes the visual editor not working in the admin panel.

Now the solution is :

Update your MySQL version by asking your hosting provider (if you are running VPS or dedicated server, obviously quite a few are using this type of server for blog or personal website)

If you run your website on shared server and your hosting provider does not want to update your MySQL version then you can try the following steps

  • 1st backup your database and keep the backup in a safe place, so if anything goes wrong you can restore to the previous position
  • Open up phpMyAdmin in a browser and select your wordpress database, then select each wordpress table and click “operations” button on top
  • From table options change the “Collation” field “utf8mb4_unicode_ci” -> “utf8_general_ci” then click “Go” button. This way you can change all the tables collection type.
  • Or you can open your SQL dump file (e.g: wp-sql-file.sql ) in an editor like wordpad or dreamweaver, then replace all “COLLATE=utf8mb4_unicode_ci” to “COLLATE=utf8_general_ci” and “CHARSET=utf8mb4” to “CHARSET=utf8”
  • Save the SQL file, drop all table and then import the database again
  • Open your wp-config.php file and change this code “define(‘DB_CHARSET’, ‘utf8mb4’);” to “define(‘DB_CHARSET’, ‘utf8’);”

 

That’s it, hope this will get the issue resolved, thanks !

Recent Posts