Title: Fix for Warning: HTTPS not defined
Last modified: August 22, 2016

---

# Fix for Warning: HTTPS not defined

 *  Resolved [Jose Luis Cruz](https://wordpress.org/support/users/joseluiscruz/)
 * (@joseluiscruz)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fix-for-warning-https-not-defined/)
 * It shows a debug warning text when getting the current URL and you are not using
   https:
 * `Undefined index: HTTPS in .../contact-form-7-dynamic-text-extension.php on line
   412`
 * you have to change that line in the file from this:
    `if ($_SERVER["HTTPS"] =
   = "on") {$pageURL .= "s";}`
 * to this:
    `if (!empty($_SERVER['HTTPS']) && $_SERVER["HTTPS"] == "on") {$pageURL.
   = "s";}`
 * To check if the variable is set before getting the value.
 * [https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [maddogprod](https://wordpress.org/support/users/maddogprod/)
 * (@maddogprod)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fix-for-warning-https-not-defined/#post-5709380)
 * I’ve changed this and I’m still getting that error message. Is this related to
   the Contact Form 7 update?
 *  [maddogprod](https://wordpress.org/support/users/maddogprod/)
 * (@maddogprod)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fix-for-warning-https-not-defined/#post-5709402)
 * UPDATE – I got it working. Sorry.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fix for Warning: HTTPS not defined’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7-dynamic-text-extension/assets/icon-256x256.
   png?rev=3019574)
 * [Contact Form 7 - Dynamic Text Extension](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/reviews/)

## Tags

 * [bugfix](https://wordpress.org/support/topic-tag/bugfix/)

 * 2 replies
 * 2 participants
 * Last reply from: [maddogprod](https://wordpress.org/support/users/maddogprod/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/fix-for-warning-https-not-defined/#post-5709402)
 * Status: resolved