• Resolved axwellion

    (@axwellion)


    When I press the “system info” button I get the following PHP error:

    PHP Warning: is_dir(): open_basedir restriction in effect. File(D:\INETPUB\VHOSTS\bolivianswithoutdisabilities.org\httpdocs/wp-content/themes/enigma-premium/give_templates/*) is not within the allowed path(s): (D:/INETPUB/VHOSTS//bolivianswithoutdisabilities.org\;C:\Windows\Temp\) in D:\INETPUB\VHOSTS\bolivianswithoutdisabilities.org\httpdocs\wp-content\plugins\give\includes\admin\system-info.php on line 204

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Devin Walker

    (@dlocc)

    Hey @axwellion – Thanks for reporting the issue. I haven’t seen other reports of that PHP warning. It seems you’re on a Windows server, is that correct? I believe the issue may be directory permissions from the looks of the warning. Also, if this site is in a live environment you’re doing to want to turn PHP strict error reporting off. Notices and warnings should only show in staging and development environments.

    Please let me know about the directory permissions and thanks for using Give!

    Thread Starter axwellion

    (@axwellion)

    Hi Devin. yes, I am on a windows server.
    What would be the permissions I should set? I don’t want to give RWE to every file and folder. Can you suggest appropriate permissions?
    Also, as far as PHP error reporting – Yes, this is a live environment, so how can I change the error level?
    Thanks for these suggestions.
    Matt

    Plugin Author Devin Walker

    (@dlocc)

    Hey @axwellion

    I’m not too familiar with how the Windows environment works. In order to prevent the errors from showing you can set WP_DEBUG to false. Check out: https://codex.www.ads-software.com/Debugging_in_WordPress

    Try adding:

    define( 'WP_DEBUG', false );
    define( 'WP_DEBUG_DISPLAY', false );

    to wp-config.php. That should prevent the notices and warnings from displaying.

    Plugin Author Devin Walker

    (@dlocc)

    Also, in version 1.8 we’re coming out with a new system info panel which mean this won’t be an issue anymore due to the report being able to be directly copied to the clipboard.

    Thread Starter axwellion

    (@axwellion)

    Thanks for that update.

    Thread Starter axwellion

    (@axwellion)

    as far as disabling all warnings, I did a lot of searching and come across this drastic solution, but even this does not stop the warnings, and the apparent subsequent crash that these warns cause.
    ini_set(‘log_errors’,’On’);
    ini_set(‘display_errors’,’Off’);
    ini_set(‘error_reporting’, E_ALL );
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);

    I guess this will be my problem to try to solve.
    I am on a shared server without access to the PHP.ini which is where others have suggested the solution could reside, so not sure what to do next.
    Thanks again

    Plugin Author Devin Walker

    (@dlocc)

    You may have already checked out: https://php.net/manual/en/function.error-reporting.php which may be of use. You can set error_reporting(0); which may prevent them for displaying. Otherwise, I would contact my host and if they can’t resolve the issue look into migrating to a new environment as a last resort.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The “system info” button causes a PHP error’ is closed to new replies.