• I am getting a log with all this errors:

    [07-Nov-2018 11:20:32 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/public_html/wp-content/uploads/amazon-associates-link-builder/GeoLite2-Country.mmdb) is not within the allowed path(s): (/opt/cpanel/ea-php72/root/usr:/usr/local/lib/php:/tmp:/etc/pki/tls/certs/ca-bundle.crt:/var/cpanel/php/sessions) in /public_html/wp-content/plugins/amazon-associates-link-builder/ip2country/maxmind_db_manager.php on line 170
    [07-Nov-2018 11:20:32 UTC] PHP Warning:  is_writable(): open_basedir restriction in effect. File(/public_html/wp-content/uploads/amazon-associates-link-builder/) is not within the allowed path(s): (/opt/cpanel/ea-php72/root/usr:/usr/local/lib/php:/tmp:/etc/pki/tls/certs/ca-bundle.crt:/var/cpanel/php/sessions) in /plugins/amazon-associates-link-builder/ip2country/maxmind_db_manager.php on line 171
Viewing 1 replies (of 1 total)
  • Thread Starter Daniele Scasciafratte

    (@mte90)

    seems that the plugin is not using the full root path and this create issues…

    Changing line of ip2country/maxmind_db_manager.php 42 to:
    $this->db_upload_dir = get_home_path() . $db_upload_dir;
    seems that fix the problem.

Viewing 1 replies (of 1 total)
  • The topic ‘file_exists(): open_basedir restriction in effect’ is closed to new replies.