Failed opening 'spout-2.4.3\spout-2.4.3\src\Spout\Autoloader\autoload.php'

292 views Asked by At

PHP Warning: include_once(): Failed opening 'spout-2.4.3\spout-2.4.3\src\Spout\Autoloader\autoload.php' for inclusion (include_path='.:/opt/alt/php71/usr/share/pear')

I uploaded my site online and I am getting that error. I am uploading a xlsx file. It works fine in local, but gets this error online. I've searched for the same problem and they said that i should edit something in php.ini but i cant find php.ini on my cpanel. Now I don't know what to do :(( . Tyia.

I found these on my cpanel and i dont know what to edit. Im sorry.

enter image description here

enter image description hereenter image description here

1

There are 1 answers

5
Suresh Kamrushi On

If you are not able to find php.ini file then alternatively you can update the ini setting using below code, which can be added at the top of PHP file or your config file if you have.

<?php
echo ini_get('ConfigName');

if (!ini_get('ConfigName')) {
ini_set('ConfigName', 'SomeValue');
}
?>

ConfigName : will be setting name which you want to update in php.ini.
More info: http://php.net/manual/en/function.ini-set.php