Attempt to read property “ID” on null”

Understanding: global $post The WordPress global variable $post, contains the data of the current post within the The Loop. WordPress will assign a value to this variable in each loop iteration. If you’re trying to access $post from outside the WP loop, it will be null or “”. You should be able to use the … Read more

Warning: Cannot modify header information

Well, the error says exactly what’s going on. You’re outputting content, before the data is finished being manipulated. It’s like you’re trying to echo something but WordPress still has to do some stuff and it’s telling you “No, no, let me do my thing first”. You’re calling the echo too early. In short, you’re 99% … Read more

“Warning: call_user_func_array() [function.call-user-func-array]:” above comments form [closed]

Given the error message: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘tl_spam_free_wordpress_comments_form’ was given in /home/euanmitc/public_html/wp-includes/plugin.php on line 403 The error is being generated by whatever Plugin defines this function: tl_spam_free_wordpress_comments_form() …which appears to be Spam Free WordPress Comments. This bit: First argument is expected to be a valid callback … Read more

Displaying warning if no featured image has been set – Post Editor

you can hook yourself into save_post and check there if the image is present. if it is not there fire an admin_notice. more here https://wordpress.stackexchange.com/a/15355/32776 http://codex.wordpress.org/Plugin_API/Action_Reference/save_post Edit: I dont have the time to provide working code but here is a copy paste from the links above. i think that you have to figure what the … Read more

warnings & errors after MAMP to live (hosteurope)

These are warnings, not errors ( edited original question to reflect this ). You have two options: The easy way – Turn off displaying errors and warnings, log them to a file instead The proper way – Fix the warnings, and log them to a file instead of outputting If you need help fixing the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)