Skip to content

Common Issues

Chris Kankiewicz edited this page Mar 21, 2020 · 3 revisions

The following are common issues and some information on why these occur and how to solve them.


open_basedir restriction in effect

Symptoms

You may see an error like the following:

PHP Fatal error:  Uncaught RuntimeException: SplFileInfo::isFile(): open_basedir restriction in effect.

Explanation

Directory Lister has security restrictions in place to to mitigate directory traversal attacks. Specifically, the open_basedir directive is set to the application root directory. Thus, any attempt to access files outside of the application root will be denied and cause an error similar to the one above. This applies to symbolic links pointing to files outside of the application root as well.


Class 'DOMDocument' not found

Symptoms

You may see an error like the following:

Fatal error: Uncaught Error: Class 'DOMDocument' not found

This error occurs when you're server is missing the PHP DOM extension. This extension is required for rendering README files on the page. You will need to install that extension.

Ubuntu / Debian
sudo apt install php-dom
Fedora / Redhat
sudo yum install php-xml

Alternatively you can disable READMEs by setting DISPLAY_READMES to false in your .env file.


Call to undefined function mime_content_type()

Symptoms

You may see an error like the following:

Fatal error: Uncaught Error: Call to undefined function mime_content_type()

This error occurs when you're server is missing the PHP fileinfo extension. This extension is required for rendering README files on the page. You will need to install that extension.

Ubuntu / Debian
sudo apt install php-mime-type
Fedora / Redhat
???

Alternatively you can disable READMEs by setting DISPLAY_READMES to false in your .env file.

You can’t perform that action at this time.