Title: PHP Warning
Last modified: May 2, 2019

---

# PHP Warning

 *  Resolved [Concept Image](https://wordpress.org/support/users/devci/)
 * (@devci)
 * [7 years ago](https://wordpress.org/support/topic/php-warning-193/)
 * Hi,
 * I think your plugin could suit my needs. It’s quite simple and do not have too
   many options/functionality.
 * However when I activated the plugin, I have a PHP Warning as follow on dev:
    
   Notice: Undefined index: HTTPS in …/www/wp-content/plugins/page-visit-counter/
   public/class-page-visit-counter-public.php on line 266
 * Can you add a check to avoid it ?
 * Thank you !

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

 *  [thedotstore](https://wordpress.org/support/users/thedotstore/)
 * (@thedotstore)
 * [7 years ago](https://wordpress.org/support/topic/php-warning-193/#post-11492802)
 * Hello [@devci](https://wordpress.org/support/users/devci/),
 * Thank for reaching out to us.
 * We required more details about this issue so, please [click here](https://www.thedotstore.com/support/)
   to create support ticket our technical team will contact you.
 * Thanks,
 *  [thedotstore](https://wordpress.org/support/users/thedotstore/)
 * (@thedotstore)
 * [7 years ago](https://wordpress.org/support/topic/php-warning-193/#post-11516036)
 * Hello [@devci](https://wordpress.org/support/users/devci/),
 * We can’t get any this type of warning because, this type of issue comes based
   on the server type.
 * We have find out the solution for avoid this type of warning is you can check
   below.
 * Replace this line: 266
    $http_referer = (‘on’ === $_SERVER[‘HTTPS’])?’[https://&#8217](https://&#8217);:’
   [http://&#8217](http://&#8217);; to: $http_referer = (array_key_exists(‘HTTPS’,
   $_SERVER) && ‘on’ === $_SERVER[‘HTTPS’])?’[https://&#8217](https://&#8217);:’
   [http://&#8217](http://&#8217);;
 * So, after replace this line your warning will be removed.
    Let us know your input
   here so we can implement this thing in next upcoming version.
 * Let us know still you need any further assistance.
 * Thanks,

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

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/page-visit-counter_65aed3.svg)
 * [Page Visit Counter](https://wordpress.org/plugins/page-visit-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-visit-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-visit-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/page-visit-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-visit-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-visit-counter/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [thedotstore](https://wordpress.org/support/users/thedotstore/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/php-warning-193/#post-11516036)
 * Status: resolved