Answer the question
In order to leave comments, you need to log in
How to solve the problem with the error: open_basedir restriction in effect. File(/tmp) is not within the allowed path?
I have added the ability to export data from the database in an .xlsx file using the XLSXWriter class on my site. And everything worked fine until one day the server started to blunt hard due to some glitches in the crown. I wrote to those support, they looked, they did something there and the server worked fine. But now this damn data export in Excel does not work. Here's what pops up:
A PHP Error was encountered
Severity: Warning
Message: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/ventura/data:.)
Filename: libraries/XLSXWriter.php
Line Number: 45
A PHP Error was encountered
Severity: Warning
Message: fopen(): Filename cannot be empty
Filename: libraries/XLSXWriter.php
Line Number: 540
A PHP Error was encountered
Severity: Warning
Message: str_repeat(): Second argument has to be greater than or equal to 0
Filename: libraries/XLSXWriter.php
Line Number: 201
A PHP Error was encountered
Severity: Notice
Message: ZipArchive::addFile(): Empty string as filename
Filename: libraries/XLSXWriter.php
Line Number: 85
A PHP Error was encountered
Severity: Warning
Message: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/ventura/data:.)
Filename: libraries/XLSXWriter.php
Line Number: 45
A PHP Error was encountered
Severity: Warning
Message: fopen(): Filename cannot be empty
Filename: libraries/XLSXWriter.php
Line Number: 540
A PHP Error was encountered
Severity: Notice
Message: ZipArchive::addFile(): Empty string as filename
Filename: libraries/XLSXWriter.php
Line Number: 88
A PHP Error was encountered
Severity: Warning
Message: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/ventura/data:.)
Filename: libraries/XLSXWriter.php
Line Number: 45
A PHP Error was encountered
Severity: Warning
Message: fopen(): Filename cannot be empty
Filename: libraries/XLSXWriter.php
Line Number: 540
A PHP Error was encountered
Severity: Notice
Message: ZipArchive::addFile(): Empty string as filename
Filename: libraries/XLSXWriter.php
Line Number: 91
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question