1

I just used all those functions:

Flush Magento Cache

Flush Cache Sm Module

Flush Catalog Images Cache

Flush JavaScript/CSS Cache

Flush Static Files Cache

And refreshed all my files. After that, when I enter my website I recieved this on the front page:

 1 exception(s):
Exception #0 (Exception): Warning: file_put_contents(/var/www/vhosts/ecustock.ro/httpdocs/pub/static/frontend/Sm/lovefashion/ro_RO/css/config_1.css): failed to open stream: No such file or directory in /var/www/vhosts/ecustock.ro/httpdocs/app/design/frontend/Sm/lovefashion/Magento_Theme/templates/html/complie_less.phtml on line 92

with 36 more errors after that

7
  • Are you in production mode? Enter command php bin/magento deploy:mode:show to see the result.
    – PY Yick
    May 31, 2018 at 7:19
  • Run following command : php bin/magento setup:static-content:deploy -f and give required permession for pub and var folders May 31, 2018 at 7:22
  • It is a permission issue may be
    – Amit Bera
    May 31, 2018 at 7:23
  • This server is powered by Plesk. Log in by browsing 188.213.20.104:8443 You can log in as user 'root' or 'admin'. To log in as 'admin', use the 'plesk login' command. Use the 'plesk' command to manage the server. Run 'plesk help' for more info. [root@server ~]# php bin/magento deploy:mode:show Could not open input file: bin/magento [root@server ~]# May 31, 2018 at 7:25
  • I can't use php bin/magento deploy:mode:show May 31, 2018 at 7:28

1 Answer 1

0

Change the to developer mode using below

php bin/magento deploy:mode:set developer

Setup using below command

php bin/magento setup:upgrade

Compile using belwo command. this will take long time.

php bin/magento setup:di:compile


php bin/magento setup:static-content:deploy

php bin/magento indexer:reindex

php bin/magento cache:flush
13
  • I opened the SSH console and typed: cd / php bin/magento deploy:mode:set developer but I get this error: Could not open input file: bin/magento May 31, 2018 at 7:44
  • goto your Magento root folder in SSH and paste or type 'php bin/magento deploy:mode:set developer May 31, 2018 at 7:49
  • I accesed root server using "cd /" and the command is still not working... May 31, 2018 at 8:09
  • Please go to your magento installed folder that will in www like this [[email protected] www] you might have to do cd www then use commands. you don't have go cd/ php bin etc. or update your question with your current director screenshot. May 31, 2018 at 8:16
  • Here it's the screen with the SSH commands and errors: imgur.com/a/OLkjyG4 -> in the screen you can also see the directory where magento is installed. If you want to see all the errors i get, this is the website: ecustock.ro May 31, 2018 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.