#StackBounty: Magento 2 js not loading after installing a new theme

Bounty: 50

This is my current magento 2 website
http://jamesviana.online/

enter image description here
Above is the error
I have installed a new paid theme which have been installed the backend is working while in the frontend the js not been taken.

I have tried to deploy the magneto 2 cli commands in php bin/magento static:content:deploy but no use.

While indexing it shows this error

Warning: SessionHandler::read(): open(/var/www/magento2/var/session/sess_69186e4b7bf9a9b00a807cc1452a452d, O_RDWR) failed: No such file or directory (2) in /var/sites/j/jamesviana.online/public_html/vendor/magento/framework/Session/SaveHandler/Native.php on line 22
Fatal error: Uncaught exception 'Exception' with message 'Warning: SessionHandler::write(): open(/var/www/magento2/var/session/sess_69186e4b7bf9a9b00a807cc1452a452d, O_RDWR) failed: No such file or directory (2) in /var/sites/j/jamesviana.online/public_html/vendor/magento/framework/Session/SaveHandler.php on line 105' in /var/sites/j/jamesviana.online/public_html/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 [internal function]: MagentoFrameworkAppErrorHandler->handler(2, 'SessionHandler:...', '/var/sites/j/ja...', 105, Array)
#1 /var/sites/j/jamesviana.online/public_html/vendor/magento/framework/Session/SaveHandler.php(105): SessionHandler->write('69186e4b7bf9a9b...', 'adminhtml|a:0:{...')
#2 [internal function]: MagentoFrameworkSessionSaveHandler->write('69186e4b7bf9a9b...', 'adminhtml|a:0:{...')
#3 {main}
  thrown in /var/sites/j/jamesviana.online/public_html/vendor/magento/framework/App/ErrorHandler.php on line 61

I have given 777 permission for all folders I have tried with this cli command also

php -dmemory_limit=80G bin/magento setup:static-content:deploy

Issue remains. In my local system with the same version and with the paid theme which is working good. only in my live server it have been showing this issue can anyone give a better solution to solve this it will be very helpful.


Get this bounty!!!

Leave a Reply