400 Bad Request and illegal invocation in wp_ajax based on processData set to false or true

You can upload file using ajax using below code: First : Add attributes name=”f-form” and id=”f-form” in your <form> tag. After that, In js script, get form data using new FormData() and send to ajax data, Note : change url: ajax_object.ajaxurl with your ajax url path jQuery(document).ready(function(e) { jQuery(‘#f-submit’).on(‘click’, function(e) { e.preventDefault(); var form = … Read more

My WP-Admin is showing a blank screen

First, Renamed the plugins folder to plugins_old. Second, Replaced the copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. I hope this will solve the problem.

How to find where an image is used by it’s url

function searchstring_wpdb(){ global $wpdb; $mytables=$wpdb->get_results(“SHOW TABLES”); $ss=”cdn.cloudflare.com”; //string to search $used_is=””; foreach ($mytables as $mytable) { foreach ($mytable as $table) { $existing_columns = $wpdb->get_col(“DESC {$table}”, 0); foreach ($existing_columns as $existing_column) { $last_link =$wpdb->get_results($wpdb->prepare(“SELECT * FROM “.$table.” WHERE “.$existing_column.” LIKE %s”, ‘%’.$ss.’%’)); if ($last_link){ foreach ($last_link as $row) { if (strstr($table,’postmeta’)){ $used_is .= ‘, Used in … Read more

WordPress wp-admin Page

I’d guess that the URLs in the wp-options table are incorrect. If he can get to www.example.com , but not www.example.com/wp-admin , then the routing by the host is probably correct. Check the database.

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