How to resolve error in moodle : Invalid get_string() identifier: ‘searchboxpaddingtop’ or component ‘theme_adaptable’. Perhaps you are missing $string[‘searchboxpaddingtop’] = ”; in

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,

READ  Bash Scripting : Tricks and examples

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 Reply

Your email address will not be published. Required fields are marked *