Error open_basedir restriction in effect - no PDF

Hi all,
Can’t generate invoices PDF on 1.4.10, although I don’t know why exist this path -> /var/www/html/.

File:
log-2017-02-24.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-02-24 10:50:37 --> Severity: Warning  --> file_get_contents(http://site.altervista.org/assets/default/css/templates.css): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
 /membri/site/vendor/kovah/mpdf/mpdf.php 14287
ERROR - 2017-02-24 10:50:37 --> Severity: Warning  --> file_get_contents(): open_basedir restriction in effect. File(/var/www/html/assets/default/css/templates.css) is not within the allowed path(s): (/membri/site/:/membri2/site/:/membri/.dummy/) /membri/site/vendor/kovah/mpdf/mpdf.php 14307
ERROR - 2017-02-24 10:50:37 --> Severity: Warning  --> file_get_contents(/var/www/html/assets/default/css/templates.css): failed to open stream: Operation not permitted /membri/site/vendor/kovah/mpdf/mpdf.php 14307
ERROR - 2017-02-24 10:50:37 --> Severity: Warning  --> file_get_contents(http://site.altervista.org/assets/default/css/custom-pdf.css): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden

Do you have any suggestions as to how to solve this?

you use apache, nginx ? the folder permission you have checked?

Apache, but let’s talk of free hosting, so I don’t have direct management.

The path of the file needs to be included in the open_basedir directive() of your PHP configuration. Please contact your hosting provider for help as we can’t explain on how to configure this setting for your hosting.

Ok,
Thanks :slight_smile: