TransWikia.com

Php / Magento 'requires' Fatal Error .... need help interpreting problem

Magento Asked by parker lewis on December 14, 2021

I am trying to install a new theme (not getting a reply from support about this and trying to fix it myself). After SFTP’ing the theme folders to my root folder, I am getting the following error when trying to load up the browser/GUI installer in Chrome/Safari.

Warning: require(/srv/public_html/pub/pearl-theme-installation/../app/bootstrap.php): failed to open stream: No such file or directory in /srv/public_html/pub/pearl-theme-installation/index.php on line 6

Warning: require(/srv/public_html/pub/pearl-theme-installation/../app/bootstrap.php): failed to open stream: No such file or directory in /srv/public_html/pub/pearl-theme-installation/index.php on line 6

Fatal error: require(): Failed opening required ‘/srv/public_html/pub/pearl-theme-installation/../app/bootstrap.php’ (include_path=’.:/usr/local/lib/php’) in /srv/public_html/pub/pearl-theme-installation/index.php on line 6

My limited knowledge and understanding tells me that the index.php file requires but cannot find the bootstrap.php file? Is this correct? And if so would it be likely that I have put the theme folders in the wrong place? I have tried to research how to read errors and interpret them, but I am a bit stuck. Thanks.

One Answer

As per the details you shared i think you must set proper filer/folder permissions.

The owner of the Magento file system: Must have full control (read/write/execute) of all files and directories.

To know about the same , you can visit set permission

cd <your Magento install dir> 

find . -type f -exec chmod 644 {} ;  

find . -type d -exec chmod 755 {} ;  

find ./var -type d -exec chmod 777 {} ;  
find ./pub/media -type d -exec chmod 777 {} ;

find ./pub/static -type d -exec chmod 777 {} ;

chmod 777 ./app/etc

chmod 644 ./app/etc/*.xml

chown -R :<web server group> .

chmod u+x bin/magento

It also depends how you installed the Magento . If installed by composer than run composer install first

Answered by inrsaurabh on December 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP