Ajax Response Error

Double comment blocks makes me the same problem: /* … */ */ Try to remove all commented blocks from your functions.php or included sub-functions. Clean your functions.php and add one by one function and you will find the issue. Third thing was PHP passing by reference, try to avoid it.

Error [Column ‘post_title’ cannot be null] when title is disabled for Custom post type

I would suggest the following improvements for better code readability and to make it easier to maintain later. Assuming you’ve removed title from your custom post type using the following function : remove_post_type_support( ‘slider’, ‘title’ ) Now if you use name=”post_title” instead of name=”wys_slider_title” WordPress will still use it and update the post title accordingly. … Read more

WP default file upload hook not working if used in a plugin

maybe validate_user_storage_space is firing too early or its too late. try wrapping this function inside another function then hook second function with one of below action hook init or after_setup_theme or plugins_loaded like below. add_action( ‘init’, ‘validate_user_init’ ); //after_setup_theme plugins_loaded function validate_user_init(){ add_filter(‘wp_handle_upload_prefilter’, ‘validate_user_storage_space’, 1); add_filter(‘wp_handle_sideload_prefilter’, ‘validate_user_storage_space’, 1); } function validate_user_storage_space( $file ) { //your … Read more

Unable to customize themes in wordpress after migrating to https from http

Run bellow query in your MySQL: UPDATE wp_options SET option_value = replace(option_value, ‘http://’, ‘https://’) WHERE option_name=”home” OR option_name=”siteurl”; UPDATE wp_posts SET guid = replace(guid, ‘http://’,’https://’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://’, ‘https://’); UPDATE wp_postmeta SET meta_value = replace(meta_value,’http://’,’https://’); Or you can Add the following code above the “That’s all, stop editing!” line in your … Read more

Why would adding a template file to a child theme cause an error in template-loader.php?

Your initial idea is correct, WordPress shouldn’t look for index.php if it finds category.php for a category archive. However, that may change if you don’t have file permission and ownership set properly, or if FileSystem cache is messing with file_exists() check. Follow these steps: Make sure your child theme files are readable by the web … Read more