• Resolved Vegas Website Designs

    (@vegaswebsitedesigns)


    Your plugin uses the PHP function php_uname to detect the OS of the server its being run on. For many hosts, including mine, this function is turned off and can not be enabled. I understand the need to determine the OS of the server but does this function need to be called over and over again? I have a stream of PHP warnings in my logs for this issue. Typically about 50 of them a day. Can this be re-written to either eliminate the use of this function, or to run it once on plugin activation and then store the value?

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    Any file included on wordpress, a plugin, theme or core file… will run on every wp-admin page.

    It needs to check every time, because if you’re doing development on windows and then migrate to linux, or vice versa, the plugin would not know about the change any other way.

    That log you see is due to server settings, and I don’t see it on most hostings, including cheap providers such as bluehost or godaddy.
    Perhaps you can change the log level for your site, to Warn or Crit only.

    And of course, if you have a working alternative for uname that is accurate enough, I would like to hear it.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: php_uname() has been disabled for security reasons’ is closed to new replies.