HTTP error when uploading an image

I’ve had the same problem and found it was due to the upload file size set for the server (in my case 2mb). There is another setting which escapes me at this point, but is basically a limit on the amount of space that can be used to process uploaded images…which WordPress does when it … Read more

Cannot load media and I get “PHP Warning: Invalid argument supplied for foreach(“

@TheDeadMedic was right, in my second code snippet, admin_init should be admin_menu. That solved my problem, thanks a lot to all of you! Corrected code: //remove from menu function remove_posts_menu() { remove_menu_page(‘edit.php’); remove_menu_page(‘edit.php?post_type=page’); remove_menu_page(‘edit-comments.php’ ); } add_action(‘admin_menu’, ‘remove_posts_menu’);

Angular not defined [closed]

You should use wp_enqueue_script to add the script. The documentation contains information about the function and how it should be used and some helpful examples. Basically, you will need to add something like this to the functions.php file: function myextension_enqueue_scripts() { wp_enqueue_script( ‘myextension-angular’, plugins_url( ‘/assets/js/angular.min.js’ , __FILE__ ), // If you are working on a … Read more

Problem after updating plugins

There is problem with the “wordpress-seo” permission so please following steps. There are two way 1) Upload from the wp-admin Step 1 -> Change the “wordpress-seo” permission or rename the “wordpress-seo” plugin to another Step 2 -> If you have change the permission then just upgrade the plugin and if you have rename the plugin … Read more

can’t get errors

First of all, you have ini_set(‘display_errors’, 0); in there, so you tell PHP that it should NOT display any errors. And there can be another reason… error_reporting can be set in such way, that no errors are reported. So this might help: define(‘WP_DEBUG’, true); if (WP_DEBUG) { define(‘WP_DEBUG_LOG’, true); define(‘WP_DEBUG_DISPLAY’, true); ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’,1); ini_set(‘error_reporting’, … Read more

Theme Check errors of theme code

Textdomain Error The error message mean, that you haven’t a textdomain. There is required for translation of this string. In the first error message is the problem the missing textdomain on the function _n_noop(). Right usage as example below. _n_noop( ‘Security Release’, ‘Security Releases’, ‘your_textdomain’ ); Text Domain Information about the textdomain find you in … Read more

Block Update Profile Errors

Solution: First, Jeff Farthing of theme-my-login pointed out that I was using add_filter instead of add_action, and helped to craft the first code below, however it still has the same problem, so this is a step in the right direction but is not my solution: function tml_profile_errors( &$errors ) { if ( empty( $_POST[‘state’] ) … Read more