is_wp_error() and handling errors

WordPress can be inconsistent as to when is returns a WP_Error object and when it just returns false or string(0) when actually there was an error. I am not sure exactly what feedburner is returning that is not triggering a WP_Error from wp_remote_get() – but if you know wp_remote_get() will return an WP_Error, I would … Read more

Any way to check the integrity of a WordPress site?

WordPress is pretty solid, usually misconfigurations get in the way. You want to make sure: you have your wp-config.php file properly set your database is accessible that your home and siteurl settings are properly set in wp_options table sometimes a plugin fouls things up, you can disable all plugins by unsetting active_plugins in the wp_options … Read more

Out of Memory when Uploading an Image

This isn’t a WordPress problem. There’s no telling on a shared environment what the culprit might be. You probably don’t have access to your php.ini config, nor do we know how many websites your hosting company has jammed on your server. The very nature of a shared server is that each client shares the resources … Read more

update user information

You’re not closing the first if tag. /* Update user information. */ if ( !empty( $_POST[‘url’] ) ){ update_user_meta( $current_user->id, ‘user_url’, esc_url( $_POST[‘url’] ) ); } else{ delete_user_meta( $current_user->id, ‘user_url’); } Also, you should use esc_url_raw on a raw url and then if you’re echoing into the html use esc_url. You also shouldn’t save esc_attr … Read more

How we store error/success messages to the next page

You could save the messages in a $_SESSION variable. This way, the values will be preserved untill you decide to remove them again. function save_message( $type, $message=”” ) { $_SESSION[‘messages’][$type] = $message; } function get_messages() { $return = ”; if ( isset( $_SESSION[‘messages’] ) && is_array( $_SESSION[‘messages’] ) ) { foreach( $_SESSION[‘messages’] as $type => … Read more

Unable To Login With Correct Credentials?

Since you cannot access the WordPress Dashboard with your user account you will need to use FTP or SSH to access the wp-content/plugins directory for your site and rename the plugin folder for wp-customer-reviews. Example: wp-content/plugins/wp-customer-reviews becomes wp-content/plugins/wp-customer-reviews-broken This will disable the plugin and allow you to log into the WP Dashboard again.

call_user_func_array() error on front end

I’ve successfully tracked this problem by adding error_log(“wp-hook: “. print_r($the_, true)); within apply_filters in wp-includes/wp_hook.php The task is then to look at the function calls (the data inside $the_) surrounding the “PHP Warning: call_user_func_array()”. It will be the one directly ahead of the warning, but you may need to look at calls after or before … Read more

Feed could not be found

The Activity Feeds has been deprecated and no longer works after 23rd June, so this is why it would have stopped working. https://developers.facebook.com/docs/plugins/activity This is probably the nearest thing you will be able to have that is similar to the Activity Feed: https://developers.facebook.com/docs/plugins/page-plugin

Unable to Upload Files

I figured out the issue. Under Settings > Media there is a text field saying where to upload the files to, and it was the wrong directory. I just changed it to the right one and it worked.

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