B
B
BushaevDenis2018-03-14 10:59:27
PHP
BushaevDenis, 2018-03-14 10:59:27

Why is there a white screen when creating an instance of a class?

Installed through the composer phpspreadsheet according to the manual in the office. docs ( https://phpspreadsheet.readthedocs.io/en/develop/).
I imported spaces and tried to create an instance of the class and ended up with just a blank screen, no errors, warnings or anything.
The code:

ini_set('display_errors', 1);
error_reporting(E_ALL);

require('/var/www/share/_resources/spreadsheet/vendor/autoload.php');


use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;

$spreadsheet = new Spreadsheet();

echo 'test';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BI0R0B0T, 2018-03-16
@BI0R0B0T

Most likely an error in the path to the autoloader.
On fatal error , display_errors is not overridden

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question