0

I have tried to run this php bin/magento setup:static-contnet:deploy command on the magento root folder then it showing the below error

"Notice: Undefined offset: 0 in /home/nuluv938/public_html/vendor/magento/module-deploy/Console/Command/DeployStaticContentCommand.php on line 403"

While rest commands are working fine.

Without running the deploy command I am unable to create the front-end folder inside the pub/static path directory.

  • Which is your magento and php version ? – Kishan Patadia Feb 27 '18 at 7:03
  • versions: magento2.2.2 and PHP Version 7.0.27. Yesterday it was working perfect but Now it is not working. – Banvari Feb 27 '18 at 7:09
  • @Banvari Have you got any solution for this I am also facing same issue. I will be very thankful for you help. – Ashish Madankar M2 Professiona Jun 5 '18 at 5:04
  • please check var log for more information about error. – Aasim Goriya Aug 3 '18 at 11:16
  • run this command php bin/magento setup:static-contnet:deploy -f – Ansar Husain Aug 16 '18 at 11:02
4

This issue generally occurs when you keep backup folders in module/theme view files

app/code/{{namespace}}/{{module}}/view

or 

app/design/...

Remove backup files and try again, it would be working fine.

  • Yes it worked for e as well. Thank you. – Zeeshan Oct 17 at 11:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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