0

I'm getting this error Unexpected input in styles-l-temp.less

frontend/Pearl/weltpixel/en_US          2964/3067           ===========================> 96% %   3 secs
Compilation from source: /opt/bitnami/apps/magento/htdocs/app/design/frontend/Pearl/weltpixel/web/css/styles-l-temp.less
ParseError: Unexpected input in styles-l-temp.less on line 1, column 1
1| #@import '../WeltPixel_FrontendOptions/css/source/module/_store_completehome_extend.less';
2|
3|


  [Magento\Framework\Exception\FileSystemException]
  Cannot read contents from file "/opt/bitnami/apps/magento/htdocs/pub/static/frontend/Pearl/weltpixel/en_US/c
  ss/styles-l-temp.css" Warning!file_get_contents(/opt/bitnami/apps/magento/htdocs/pub/static/frontend/Pearl/w
  eltpixel/en_US/css/styles-l-temp.css): failed to open stream: No such file or directory

So, i remove the #@import to @import and execute these commands:

sudo rm -rf /opt/bitnami/apps/magento/htdocs/var/cache/*
sudo rm -rf /opt/bitnami/apps/magento/htdocs/var/page_cache/*
sudo rm -rf /opt/bitnami/apps/magento/htdocs/var/view_preprocessed/*
sudo rm -rf /opt/bitnami/apps/magento/htdocs/pub/static/frontend/*

Now, when execute static-content:deploy -f command is shows this error:

bitnami@ip-172-26-13-233:/opt/bitnami/apps/magento/htdocs$ sudo /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:static-content:deploy -f

Deploy using quick strategy
frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          
frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          
frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          
frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          
frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          
adminhtml/Magento/backend/en_US         2383/2383           ============================ 100% %  2 secs          frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          
adminhtml/Magento/backend/en_US         2383/2383           ============================ 100% %  2 secs          frontend/Magento/blank/en_US            3037/3037           ============================ 100% %  3 secs          
adminhtml/Magento/backend/en_US         2383/2383           ============================ 100% %  2 secs          
frontend/Magento/luma/en_US             3053/3053           ============================ 100% %  4 secs          
frontend/Pearl/weltpixel/en_US          2951/3067           ==========================>- 96% %   3 secs
#0 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/App/View/Asset/Publisher.php(73): Magento\Framework\View\Asset\File->getSourceFile()
#1 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/App/View/Asset/Publisher.php(61): Magento\Framework\App\View\Asset\Publisher->publishAsset(Object(Magento\Framework\View\Asset\File))
#2 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Service/DeployStaticFile.php(89): Magento\Framework\App\View\Asset\Publisher->publish(Object(Magento\Framework\View\Asset\File))
#3 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Service/DeployPackage.php(189): Magento\Deploy\Service\DeployStaticFile->deployFile('css/styles-l-te...', Array)
#4 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Service/DeployPackage.php(136): Magento\Deploy\Service\DeployPackage->processFile(Object(Magento\Deploy\Package\PackageFile), Object(Magento\Deploy\Package\Package))
#5 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Service/DeployPackage.php(107): Magento\Deploy\Service\DeployPackage->deployEmulated(Object(Magento\Deploy\Package\Package), Array, false)
#6 [internal function]: Magento\Deploy\Service\DeployPackage->Magento\Deploy\Service\{closure}()
#7 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/App/State.php(186): call_user_func_array(Object(Closure), Array)
#8 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Service/DeployPackage.php(108): Magento\Framework\App\State->emulateAreaCode('frontend', Object(Closure))
#9 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Process/Queue.php(300): Magento\Deploy\Service\DeployPackage->deploy(Object(Magento\Deploy\Package\Package), Array)
#10 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Process/Queue.php(219): Magento\Deploy\Process\Queue->execute(Object(Magento\Deploy\Package\Package))
#11 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Process/Queue.php(162): Magento\Deploy\Process\Queue->assertAndExecute('frontend/Pearl/...', Array, Array)
#12 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Strategy/QuickDeploy.php(76): Magento\Deploy\Process\Queue->process()
#13 /opt/bitnami/apps/magento/htdocs/vendor/magento/module-deploy/Service/DeployStaticContent.php(109): Magento\Deploy\Strategy\QuickDeploy->deploy(Array)
#14 /opt/bitnami/apps/magento/htdocs/setup/src/Magento/Setup/Console/Command/DeployStaticContentCommand.php(140): Magento\Deploy\Service\DeployStaticContent->deploy(Array)
#15 /opt/bitnami/apps/magento/htdocs/vendor/symfony/console/Command/Command.php(241): Magento\Setup\Console\Command\DeployStaticContentCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /opt/bitnami/apps/magento/htdocs/vendor/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /opt/bitnami/apps/magento/htdocs/vendor/symfony/console/Application.php(193): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\DeployStaticContentCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Console/Cli.php(104): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /opt/bitnami/apps/magento/htdocs/vendor/symfony/console/Application.php(117): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /opt/bitnami/apps/magento/htdocs/bin/magento(30): Symfony\Component\Console\Application->run()
#21 {main}


  [Magento\Framework\Exception\FileSystemException]
  Cannot read contents from file "/opt/bitnami/apps/magento/htdocs/pub/static/frontend/Pearl/weltpixel/en_US/c
  ss/styles-l-temp.css" Warning!file_get_contents(/opt/bitnami/apps/magento/htdocs/pub/static/frontend/Pearl/w
  eltpixel/en_US/css/styles-l-temp.css): failed to open stream: No such file or directory


setup:static-content:deploy [-f|--force] [-s|--strategy [STRATEGY]] [-a|--area [AREA]] [--exclude-area [EXCLUDE-AREA]] [-t|--theme [THEME]] [--exclude-theme [EXCLUDE-THEME]] [-l|--language [LANGUAGE]] [--exclude-language [EXCLUDE-LANGUAGE]] [-j|--jobs [JOBS]] [--symlink-locale] [--content-version CONTENT-VERSION] [--refresh-content-version-only] [--no-javascript] [--no-css] [--no-less] [--no-images] [--no-fonts] [--no-html] [--no-misc] [--no-html-minify] [--] [<languages>]...

I was trying to add another store with a subdomain. The domain completehome.completeattire.com was created, and the issue occurred when I started the service.

2
  • did you do bin/magento/setup:upgrade && bin/magento setup:di:compile also before static content? maybe it helps Commented Sep 30 at 17:16
  • i tried with sudo /opt/bitnami/apps/magento/htdocs/bin/magento-cli cache:flush sudo /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:upgrade sudo /opt/bitnami/apps/magento/htdocs/bin/magento-cli indexer:reindex sudo /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:static-content:deploy -f still getting error Warning!file_get_contents(/opt/bitnami/apps/magento/htdocs/pub/static/front end/Pearl/weltpixel/en_US/css/styles-l-temp.css): failed to open stream: No such file or directory Commented Oct 1 at 6:00

1 Answer 1

0

Revert your #@import change (use #@import), clear caches and preprocessed files, run setup:upgrade and setup:di:compile, then deploy static content. If it still fails, check the .less files for syntax errors.

Sign up to request clarification or add additional context in comments.

2 Comments

now getting this: Compilation from source: /opt/bitnami/apps/magento/htdocs/app/design/frontend/Pearl/weltpixel/web/css/styles-l-temp.less ParseError: Unexpected input in styles-l-temp.less on line 1, column 1 1| #@import '../WeltPixel_FrontendOptions/css/source/module/_store_completehome_extend.less'
[Magento\Framework\Exception\FileSystemException] Cannot read contents from file "/opt/bitnami/apps/magento/htdocs/pub/static/frontend/Pearl/weltpixel/en_US/css/styles-m.css" Warning!file_get_contents(/opt/bitnami/apps/magento/htdocs/pub/static/frontend/P earl/weltpixel/en_US/css/styles-m.css): failed to open stream: No such file or directory

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.