[Drupal][Admin_menu] Missing argument system_clear_cache_submit

I was getting this warning message

warning: Missing argument 1 for system_clear_cache_submit(), called in My_website_path\sites\all\modules\admin_menu\admin_menu.inc on line 522 and defined in My_website_path\modules\system\system.admin.inc on line 1367.

since a while. I was feeling lazy to check the cause of it, all i have to do is to reload the home page of the drupal project.

Finally I fixed it by defining an empty array in the admin_menu.inc file:

$form_state = array();
$form_array = array();
system_clear_cache_submit($form_state, $form_array);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s