Direct Database Health Fix

[
“type” => “radio”,
“title” => “What is your gender?”,
“options” => [“Male”, “Female”, “Other”]
],
“question_2” => [
“type” => “radio”,
“title” => “What is your age range?”,
“options” => [“18-29”, “30-39”, “40-49”, “50-59”, “60+”]
],
“question_3” => [
“type” => “radio”,
“title” => “How would you rate your overall energy levels?”,
“options” => [“Very Low”, “Low”, “Moderate”, “High”, “Very High”]
],
“question_4” => [
“type” => “radio”,
“title” => “How often do you exercise per week?”,
“options” => [“Never”, “1-2 times”, “3-4 times”, “5-6 times”, “Daily”]
],
“question_5” => [
“type” => “radio”,
“title” => “How would you describe your sleep quality?”,
“options” => [“Very Poor”, “Poor”, “Fair”, “Good”, “Excellent”]
],
“question_6” => [
“type” => “radio”,
“title” => “Do you have any chronic health conditions?”,
“options” => [“None”, “Diabetes”, “Hypertension”, “Heart Disease”, “Multiple conditions”]
],
“question_7” => [
“type” => “radio”,
“title” => “How often do you feel stressed?”,
“options” => [“Never”, “Rarely”, “Sometimes”, “Often”, “Always”]
],
“question_8” => [
“type” => “radio”,
“title” => “How would you rate your overall mood?”,
“options” => [“Very Poor”, “Poor”, “Neutral”, “Good”, “Excellent”]
],
“question_9” => [
“type” => “radio”,
“title” => “Do you take any medications or supplements?”,
“options” => [“None”, “Vitamins only”, “Prescription medications”, “Both vitamins and medications”, “Other supplements”]
],
“question_10” => [
“type” => “radio”,
“title” => “How often do you have regular medical checkups?”,
“options” => [“Never”, “Every few years”, “Annually”, “Every 6 months”, “As needed only”]
]
]);

// Update production database
$result = $wpdb->update(
‘wp_ennu_assessment_configs’,
[‘questions’ => $working_questions],
[‘assessment_type’ => ‘health’]
);

if ($result !== false) {
echo “✅ Health questions updated successfully\n”;

// Clear all caches
wp_cache_flush();
$wpdb->query(“DELETE FROM wp_options WHERE option_name LIKE ‘_transient_%'”);

// Clear LiteSpeed cache
if (function_exists(‘litespeed_purge_all’)) {
litespeed_purge_all();
}

echo “✅ All caches cleared\n”;
echo “✅ HEALTH ASSESSMENT SHOULD NOW WORK\n”;
} else {
echo “❌ Database update failed: ” . $wpdb->last_error . “\n”;
}
?>

Related Posts
Leave a Reply

Your email address will not be published.Required fields are marked *

Image link
Image link
General Popup with Launcher

Creating popups has never been easier thanks to pixfort's next-generation popup builder.

Do you have presale questions?

Contact our team if you have any question

Our usual reply time: 1 Business day

Follow us on

Image link
Image link
General Popup with Launcher

Creating popups has never been easier thanks to pixfort's next-generation popup builder.

Do you have presale questions?

Contact our team if you have any question

Our usual reply time: 1 Business day

Follow us on

Image link
Hey there

Search for a specific article on our website

Get started

Check these useful guides to get started

Still need Help?

Send us a support message

Our usual reply time: 1 Business day
Contact us

Our team will reply as soon as possible.

[contact-form-7 id=”aa06684″ title=”Simple Contact Form”]

Our usual reply time: 1 Business day