Possible Duplicate:
Cannot modify header information - headers already sent, Why its happening
Headers already sent by PHP
I got the following error message on my wordpress dashboard.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homez.152/mamouman/www/wp-content/themes/arthur/functions.php:47) in /homez.152/mamouman/www/wp-content/themes/modularity/functions/admin-js.php on line 2`
Here is the content that i just added in my functions.php file
add_filter('wp_nav_menu_items','add_search_box', 10, 2);
function add_search_box($items, $args) {
ob_start();
get_search_form();
$searchform = ob_get_contents();
ob_end_clean();
$items .= '<li>' . $searchform . '</li>';
return $items;
}
And here is my admin-js.php.