Tag Info

Hot answers tagged

1

It means Wordpress is outputting something to the browser too early. The file indicated seems to be your own session file (php stores user sessions in small text files in the tmp directory). Check first the wp-config.php file. Remove the final closing php tag. Make sure you're not outputting anything in that file (look for print_r, var_dump, echo, print, ...


1

It looks like your $categories is an empty array. To solve this always check if the array is empty or not. In line 117 add code to check if array is empty <?php if( !empty( $categories ) ){ ?> and in line number 167 replace <?php } ?> with <?php } } ?> If you want to permanently remove any error or warning message you can use the ...


1

Ok, I've narrowed this down. Always check if_user_logged_in() before constructing a new WP_User from the current user's ID. Simply put, don't call: new WP_User(0); or you'll get the warning above.



Only top voted, non community-wiki answers of a minimum length are eligible