• Resolved UmbrellaWeb

    (@umbrellaweb)


    Hello,

    With WP debug enabled in the wp-config file the plugin generates the followe messages:

    PHP Notice: Undefined index: SERVER_NAME in /home/SITE/public_html/wp-content/plugins/wpsso/lib/com/util.php on line 1269

    This has started happening after upadting to the latest version. It fills up the debug log significantly.

    Can you fix please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    That’s odd.

    $_SERVER[ 'SERVER_NAME' ] should be defined by PHP. See here for more info: https://www.php.net/manual/en/reserved.variables.server.php

    Which version of PHP are you using?

    Which web server are you using?

    js.

    Plugin Author JS Morisset

    (@jsmoriss)

    Although WPSSO only uses $_SERVER[ 'SERVER_NAME' ] and $_SERVER[ 'REQUEST_URI' ] to check for query arguments (and disable caching when query arguments are detected), I can replace $_SERVER[ 'SERVER_NAME' ] by the home URL in the next version – that should fix your issue, and make for better code too. ??

    js.

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    @jsmoriss currently using latest version of php7.4 on standard cpanel server for one of the sites.

    Strangley it doenst happen on a litespeed enabled server…

    Look forward to the update. Hopefully that will fix this issue ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Notice’ is closed to new replies.