• Resolved Concept Image

    (@devci)


    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

    (@thedotstore)

    Hello @devci,

    Thank for reaching out to us.

    We required more details about this issue so, please click here to create support ticket our technical team will contact you.

    Thanks,

    thedotstore

    (@thedotstore)

    Hello @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://’:’http://’;
    to:
    $http_referer = (array_key_exists(‘HTTPS’, $_SERVER) && ‘on’ === $_SERVER[‘HTTPS’])?’https://’:’http://’;

    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.