update_option returns false in AJAX, how to debug?

I found out that my settings where filtered by validation function registered by register_setting. Somehow I thought that it would only affect settings that where going through wordpress’s own settings fields and not a custom AJAX function (the way I have it setup). To the point of the question: I used php exit to debug … Read more

error establishing a database connection 3

I too had faced the same issue many times but after refreshing the browser it solved my problem. Kindly check the wp-config file and verify if the database name and other information is correct. Another thing you can try is restarting your local host.

Help posting values to DB on submit using $wpdb->query

$wpdb has an insert method, so you can try the following: $table=”wp_email_subscribers”; $data = array( ‘first_name’ => $firstname, ‘last_name’ => $lastname, ’email’=> $email , ‘gdpr_consent’=>$gdprconsent ); $format = array(‘%s’,’%s’, ‘%s’, ‘%s’); $wpdb->insert($table,$data,$format); var_dump($wpdb->insert_id);

Why am I being prompted to reinstall wordpress?

If you moved the folder of the root of the site, so that the URL is https://www.example.com instead of https://www.example.com/blog , then you need to tell the database that’s where the site lives. This is done by modifying two entries in the wp-options table to change the URL. You will also need to change the … Read more