Warning when author has no post

Try wrapping the rsort bit in an if statement like this: if (!empty($post_dates)) { rsort($post_dates); } else { echo ‘optional error message here’; } This will check to see if the variable is empty first, and only run rsort() if it is not empty. This check works most of the time, but a false positive … Read more

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: 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

Unknown file php5fcgi.core

*.core files are usually generated by the linux OS when an un handled exception crashes an application, and it include (hopefully) useful deugging information that can help you analyze the cause. From the name of the file it was probably generated from a php5fcgi. But…. those files for sure should not be in your wordpress … Read more

What’s the warning on line 736?

As you can see here (https://core.trac.wordpress.org/browser/tags/5.0.3/src/wp-includes/class-wp-query.php#L736), the 736 line of that file contains: $qv[‘name’] = trim( $qv[‘name’] ); And $qv is defined as: $this->query_vars = $this->fill_query_vars($this->query_vars); $qv = &$this->query_vars; So… That means, that you use WP_Query incorrectly somewhere in your code… You should pass string value as name param, and it looks like somewhere in … Read more

Warning on my WordPress site [closed]

There is not a single reason why you see this type of warning. A nulled theme or plugin is a happy ground for malware, virus rootkits, backdoors and more. As this is true for most sites Major Browser and Search Engines are taking steps to protect the users. As such warnings exist for the protection … Read more