Need help decrypting error and warning messages

The Health Check plugin is triggering the first error. Is this when you’re running 2.7? get_transient() was only introduced in 2.8, which would explain it’s absence. The second failure is merely a failed HTTP request. This can happen every now and then (mainly due to timeouts). It shouldn’t interrupt the normal functioning of WordPress (the … Read more

insert a warning message into post-new.php

function my_admin_notice(){ global $pagenow; if ( $pagenow == ‘post-new.php’ || $pagenow == ‘post.php’) { echo ‘<div class=”error”> <p>This notice only appears on the add and edit post & page.</p> </div>’; } } add_action(‘admin_notices’, ‘my_admin_notice’); http://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices

Website Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Wppr_Public’ does not have a method ‘amp_support’

The warning message is pretty clear. You’re passing method amp_support from class Wppr_Public as callback, but this class doesn;t have such method… So how to fix it? You should find that class and look for this function. Maybe it’s some typo or that method changed its name or moved to another class or something like … Read more

wp warning declaration compatible [closed]

Lets say that you’re a cook, and I tell you in order to pass a test you have to make: 3 cakes 1 pie 7 cookies And you come back to me with 4 cakes and a pie, those don’t match, you failed the test. The same thing is happening in your code: Warning: Declaration … Read more

class-wp-hook.php on line 288

Reinstalling core should fix this issue. This is more than likely related to a botched update from 5.3 to 5.3.1. Edit: To clarify, 5.3.1 included some hardening with relation to kses (specifically wp_kses_bad_protocol()) as noted in the release post. In the error output above, a core file was referencing a core function that didn’t exist, … Read more

Getting notices on fresh 3.6.1 install

First: Good girl/guy! Debugging is important 🙂 Second: As those are PHP errors, there still has to be something that causes those errors. And it’s not DB related. Please turn off all plugins and switch to the default theme. If these errors still occur, then something happened during installation. Please go into your Dashboard and … Read more

Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images

Here’s an updated version of the code that will avoid the warning by adding a simple check that will return $content unmodified if it’s an empty string. The original code adds <html> to the modified markup (check the page source), which we don’t want. The code below fixes that too. add_filter( ‘the_content’, ‘wpse_add_img_post_class’ ); function … Read more

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