Non Object Notice Error – How to fix please

Replace your code with as mentioned below: public function admin_body_class($classes) { global $wpdb, $post; $screen = get_current_screen(); $status=”parent-“; if( isset( $post->post_parent ) && $post->post_parent > 0 ) { $status=”child-“; } $classes .= ‘ ‘ . $status . $screen->post_type; return $classes; }

WordPress “Allowed memory size” on wp-db.php [closed]

You need to increase the php-memory-limit you can find out how much you have now with <?php phpinfo(); ?> Edit php.ini .Search “memory_limit” in your php.ini, and change the value of it. If no “memory_limit” found, add the following line at the end of php.ini memory_limit = 128M ; /* Change the 128M to your … Read more

Error thrown Cannot use object of type WP_Error as array

One of your plugin or your theme is throwing this error. Best way to identify it is to look at the path of the file that is throwing this error. Should be something like wp-content/plugins/xxx. Then if you go to your WordPress install, navigate to wp-content/plugins look for that folder and rename it, the plugin … Read more

php 7.0 update to 7.1 and at least 7.2

Many plugins have an ’empty’ index.php that doesn’t do anything; the plugin code is elsewhere. But you need to contact the plugin’s author/support to get a definitive answer.

Query Concatenation

In SQL statement use placeholders instead of variable: %s (string) or %d (number). The second argument of prepare() is array of variables to substitute into the placeholders. $skill_select = $wpdb->get_results( $wpdb->prepare(” SELECT skill_name, char_id, um_id, c.class_id FROM `wp_ml_skill_class` sc JOIN `wp_ml_skill` s ON (s.skill_id = sc.skill_id) JOIN `wp_ml_character` c WHERE c.class_id = %d AND c.char_id … Read more

Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73

*Without quotes PHP interprets the REQUEST_URI as a constant** but corrects your typo error if there is no such constant and interprets it as string. When error_reporting includes E_NOTICE, you would probably get an error such as: Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in <file path> on line <line number> But if … Read more

Theme causing SSL break on chrome

Google has marked matx.coderpixel.com as a phishing site. That’s not your domain, of course. However you are using resources from that site. Specifically you are using several images from matx.coderpixel.com/wp/wp-content/uploads/2016/04, including android_phone.jpg, cloudy_hill.jpg, desk.jpg, keyboard.jpg, and man_with_ipad.jpg. It is a bad (and unless you have the rights to use these images, illegal) practice to serve … Read more