PHP script outputs Notice (8): Undefined variable: errstr

PHP script outputs Notice (8): Undefined variable: errstr

PROBLEM

========



PHP script throws the following error:



Notice (8): Undefined variable: errstr





RESOLUTION

==========



Contact Technical Support to review php.ini settings to see if socket functions are disabled on the server.
    • Related Articles

    • PHP

      Php     Sort PHP processes by user: Show PHP Errors: put this code at top of php page you want to test (usually index.php): error_reporting(E_ALL); ini_set('display_errors', 1);
    • PHP session.save_path error

      You receive the following error in PHP: "The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder ...
    • admin-ajax.php Causing load

      Disable WordPress Heartbeat API If you notice that you are having an excessive amount of admin-ajax.php requests, the WordPress Heartbeat API can be disabled to prevent this type of activity from happening automatically. By default WordPress uses the ...
    • Changing PHP version on Linux/FreeBSD accounts

      Note: The option to change PHP versions between php4 and php5 is only available on certain servers, as PHP4 is currently End of Life. To change PHP versions on Linux/FreeBSD, do the following: 1. Select Domain info in the Domain Settings menu. 2. ...
    • Change php version in cpanel

      Login to cpanel Search on the top left hand corner "php" Select "MultiPHP Manager" Under PHP-FPM make sure it's on. In the dropdown labeled php version you can select which version you want. Select the domain(s) you want to edit and click apply. ...