Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2015
    Location
    Daytona Beach, FL USA
    Posts
    65
    Plugin Contributions
    0

    Default PHP Warning: php_uname() has been disabled for security reasons

    We recently created a new ZenCart 1.5.7b system on Linux from ZenCart 1.5.4 on Windows.

    We see this message
    PHP Warning: php_uname() has been disabled for security reasons
    php_uname() called at [/home/aaatexus/public_html/ZenCart/test2files/includes/functions/general.php:960]
    in the
    myDEBUG-adm-20210107-125243-000000-warning.log
    file.

    How can we fix this? Should we just comment out that line or is there alternative code that should be used?

    Thanks and stay safe in these crazy times!!!

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: PHP Warning: php_uname() has been disabled for security reasons

    Quote Originally Posted by QuickBooksDev View Post
    We recently created a new ZenCart 1.5.7b system on Linux from ZenCart 1.5.4 on Windows.

    We see this message
    PHP Warning: php_uname() has been disabled for security reasons
    php_uname() called at [/home/aaatexus/public_html/ZenCart/test2files/includes/functions/general.php:960]
    in the
    myDEBUG-adm-20210107-125243-000000-warning.log
    file.

    How can we fix this? Should we just comment out that line or is there alternative code that should be used?
    I'm pretty sure that you can just suppress that error (the value returned is used for display only):
    Code:
        list($system, $host, $kernel) = array('', $_SERVER['SERVER_NAME'], @php_uname());
    Be sure to wrap your change with comments, so you remember that YOU made that change!

 

 

Similar Threads

  1. v153 PHP Warning: putenv() has been disabled for security reasons
    By Thannaree in forum General Questions
    Replies: 2
    Last Post: 2 Jan 2015, 05:28 AM
  2. v139h PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r
    By pinksparklegirl in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 4 Aug 2013, 02:50 PM
  3. Warning: ini_set() has been disabled for security reasons
    By flash in forum General Questions
    Replies: 3
    Last Post: 3 Mar 2010, 06:07 PM
  4. Replies: 19
    Last Post: 14 May 2009, 06:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR