Dupal CKEditor giving seemingly random php errors
Having made a fresh install of Drupal 7 and then enabled CKEditor some seemingly random php errors were appearing when browsing between pages. Here's an example:
Of course, not much is truly random and after some head scratching the problem became a little bit more clear. It seems CKEditor did not have a profile enabled for managing Plain Text fields that were being used for anonymous comments.
The simple answer therefore is to go and enable any missing profiles in CKEditor configuration area of Drupal. You can find it under Configuration -> Content Authoring -> CKEditor. Under the Profiles section, duplicate an existing profile, create a new one or if you want to apply a common config, edit an existing profile.
Ensure that all missing input formats are enabled in profiles and the error message will be banished!