Solved Moodle Error : Invalid get-string() identifier

Sometime if you login to moodle as administrator, and tries to browse the admin pages, you might see error like below in admin dashboard,

Invalid get_string() identifier: 'searchboxpaddingtop' or component 'theme_adaptable'. Perhaps you are missing $string['searchboxpaddingtop'] = ''; in /home/myhosting/public_html/mydomain.com/theme/adaptable/lang/en/theme_adaptable.php?

    line 349 of /lib/classes/string_manager_standard.php: call to debugging()
    line 7081 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
    line 195 of /theme/adaptable/settings/header.php: call to get_string()
    line 43 of /theme/adaptable/settings.php: call to include()
    line 51 of /admin/settings/appearance.php: call to include()
    line 8002 of /lib/adminlib.php: call to require()
    line 7889 of /lib/adminlib.php: call to admin_get_root()
    line 48 of /admin/purgecaches.php: call to admin_externalpage_setup()

Solution : you need to purge the caches, as following,

  1. Go to “Administration”
  2. Click “site administration”
  3. Click “Development”
  4. Click “Purge All Cache”
  5. You will be redirected to “admin/purgecaches.php” page, which will have “Purge All Cache” button.
  6. Click on this “Purge All Cache” button.

Leave a Comment