We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [static-content-deploy]

Refers to static view files deployment. Writing static files to the Magento file system when the Magento software is set for production mode.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Magento 2 - Exception: File can't be read in Magento static content deploy

Please tell me where is the problem. I used bin/magento setup:upgrade and bin/magento setup:static-content:deploy en_GB en_US -f
0
votes
0answers
61 views

getting errors when running setup:static-content:deploy -f magento 2.2.8

I am trying install a new theme in magento 2.2.8 and when i run in terminal php bin/magento setup:static-content:deploy -f This is the error that appear: #0 /var/www/clients/client19/web982/web/...
0
votes
2answers
106 views

Static content deploy issue for Magento 2.3.2

Hello! After upgrading Magento 2.1.8 to Magento 2.3.2, I get an error when run command: > php setup:static-content:deploy or > php setup:static-content:deploy en_US -f Text of my Error: ...
2
votes
1answer
29 views

Variable @button__shadow-active is undefined while running deploy static content in Magento 2

I am getting this error whenever running php bin/magento setup:static-content:deploy. It showing variable @button__shadow-active is undefined in file en_US/css/source/_extends.less in _extends.less. ...
0
votes
3answers
70 views

Don't work bin/magento setup:static-content:deploy after upgrade Magento to 2.3.2

Hello! When i run command bin/magento setup:static-content:deploy i give errors: And my second error: frontend/Magento/blank/en_US 4225/4225 ============================ 100%...
1
vote
0answers
23 views

Static Content deploy parallel jobs is not working in Docker

When using --jobs=4 or -j=4 with setup:static-content:deploy command its working on my local machine and it build the assets in parallel but when using this command inside a docker container with php:...
0
votes
1answer
23 views

Static files not getting generated magento 2.3

I ran command php bin/magento setup:static-content:deploy -f and i am getting this error https://prnt.sc/ot0gpp Please help what to do, my static files are not getting generated because of which my ...
0
votes
3answers
32 views

Is there any way to reflect the css,js changes without running static content deploy in Magento 2?

Is there any other method other than running deploy command to get new changes in the files in Magento 2?
0
votes
1answer
26 views

Could not read config file while deploying static content in Magento 2?

It shows error in FileResolver file.
0
votes
1answer
35 views

Magento 2 variable @mobile-cart-padding is undefined (Porto Theme)

I Cloned Magento 2 project from GitHub without any error. After I configured env files with DB details. when I deploy the project getting variable @mobile-cart-padding is an undefined error. I am ...
1
vote
3answers
81 views

I can't tell all clients to clear their browser cache!

recently we have changed few files js/CSS/phtml files on our site as we tested them we experienced strange thing in incognito mode the new CSS and js is working fine but if we switched to normal mode ...
0
votes
0answers
53 views

Magento 2 Deploying static content causes “Undefined variable: template” error

I just did a static content deploy and cache flush on my Magento 2 site, and when I did, the entire site crashed with the following error: Notice: Undefined variable: template in /vendor/magento/...
0
votes
1answer
42 views

After upgrade static content is set with out pub/

<html lang="en"> <head > <script> var BASE_URL = 'http://mage.test/'; var require = { "baseUrl": "http://mage.test/static/version1561748846/frontend/Brent/...
0
votes
2answers
60 views

Magento 2.2.1 error during static content deploy

I have a own template in app/design/frontend/tm/XXX-theme. I built it like described in the dev docs. Parent theme is luma. Magento run in developer Mode. After i use setup:static-content:deploy ...
1
vote
2answers
23 views

Magento 2 issue diffence CSS content on same file domain/pub/static/…/file.css and domain/static/…/files.css?

I have problem with magento 2.2.7 but cannot find way fix so hope someonce can help. File name: domain/pub/static/.../file.css and domain/static/.../file.css. After I changed content of file.css and ...
0
votes
1answer
28 views

New magento template file is not created in pub/static

I wanted to create a custom checkbox in checkout view. I did it by adding the following code <item name="showMore" xsi:type="array"> <item name="component" xsi:type="string">...
1
vote
1answer
41 views

Some CSS not working in frontend

This question has probably been asked a billion times, but I haven't found the exact same issue. I'm working on a M2 (v2.2.1) shop. Recently I accidentally removed the .htaccess file from pub/static. ...
0
votes
3answers
761 views

Magento 2.2.8 | setup:static-content:deploy gives errors | Cannot read contents from file jquery.fileupload-ui.css No such file or directory

I can't deploy static content on my production site. Running command: php bin/magento setup:static-content:deploy en_GB Gives me following error: [Magento\Framework\Exception\FileSystemException] ...
1
vote
0answers
37 views

Magento clean install is now doing this during Setup:Static-content:deploy

A fairly new and clean install on a dev platform. Magento 2.3.1 using the latest porto theme. PHP 7.2 Running setup:static-content:deploy seems to be running duplicate versions of each of the themes ...
1
vote
0answers
14 views

Changing theme does not work

I have changed something in my theme, but it does not appear after deploying static files. Removed all necessary folders and cleaned cache but still not working. Strange thing is, that on my test ...
1
vote
1answer
150 views

magento 2.2 static content deploy errors

I am trying to deploy static content in developer mode in magento 2.2 community edition. I am getting multiple errors in terminal related to css. Getting error as - [Magento\Framework\Exception\...
3
votes
2answers
275 views

Magento 2: Issues when deploying static content on EFS

When running the static content deploy with jobs option, we get this error: In Queue.php line 366: Error while waiting for package deployed: 42; Status: 0 setup:static-content:deploy [-f|--...
2
votes
0answers
165 views

Custom Css issue on deploying theme on magento 2.3.1

I m working on custom extension and I stumble across this The contents from the "/var/www/html/pub/static/frontend/Magento/blank/en_U S/ImaginationMedia_SocialOrder/css/orders/list.css" file can'...
0
votes
0answers
78 views

Symlinks issue after MAGETWO-96314

I have a problem (duhh) with symlinks inside public_html. Everything stopped working after this patch https://github.com/magento/magento2/commit/202ce32dd4bed272a9ddb1a4618fa0e14a179dcb#diff-...
1
vote
0answers
43 views

Magento 2.3 Client Side less compilation static files not found

if I enable the Client side less compilation and flush the static file cache I will get 404 Errors for all files in the media and pub/static direction. I'm using nginx. If I compile the files manual ...
0
votes
1answer
597 views

Magento 2 Theme Development - grunt watch not detecting changes of custom LESS file

We are running Magento 2 in version 2.3.1, but the error occurred in version 2.3.0 also. The situation is the following: we've created a custom theme which has Magento/luma theme as parent. according ...
0
votes
1answer
29 views

JavaScript Change in custom module not refreshed by deployment

I am going crazy right now. I made a change in a JavaScript file in a custom module which is installed via composer from my own repo. But I can't, under any circumstances, get those changes reflected ...
1
vote
1answer
36 views

Problems With Magento installation

I tried to install Magento 2.3, but I have problems with main page. I follow up the wizard installation and obtain the successful installation page. Now, when I try to access to my page, I see this: ...
2
votes
3answers
101 views

user error with pub/static folder

I accidentally delete the pub/static by running the command "rm -rf pub/static*" instead of "rm -rf pub/static/*". Now, i need to run "setup:static-content:deploy -f "in developer mode every time I ...
1
vote
1answer
216 views

.lib-url-check is undefined Magento 2.3 static content deploy error

Magento 2.3 when deploying static content this error occurs: Compilation from source: /var/www/html/MyProject/vendor/magento/theme-frontend-blank/web/css/styles-m.less .lib-url-check is ...
0
votes
1answer
100 views

Magento 2 Stuck on Checkout page

I am using magento 2.2.3. And my issue is, on frontend I am getting below errors which stucks checkout page. Means, Page Loader is continuosly loading on checkout page so customer can not do anything :...
1
vote
1answer
41 views

Magento2 : Why static content isn't generated properly?

I have seen so many answers related to this question but nothing resolved my issue , this is the issue I have cleared cache , pub/static , generated , var/cache , var/view_preprocessed, setup:...
1
vote
1answer
163 views

Magento 2 : After deleting the pub/static/frontend folder everything collapsed

When I delete the pub/static/frontend or backend folder, everything falls on the frontend and backend, and every time I need to call static-content: deploy for everything to work fine. Using ...
4
votes
1answer
134 views

Magento2 Getting error as variable @baseUrl is undefined in file /var/view_preprocessed

On doing php bin/magento setup:static-content:deploy -f I am getting error Compilation from source: vendor/magento/theme-frontend-blank/web/css/email-inline.less variable @baseUrl is undefined ...
0
votes
0answers
35 views

Magento 2.1.6 - 'Unable to Get Content' Error During Static Resource Deployment

I am running into an issue with deploying static resources. When doing so, I see an unable to get content for and a path to a .less file. This happens multiple times in the course of the deployment ...
1
vote
1answer
139 views

Deployment script taking too long

When I am creating new module I ran following commands for full deployment: php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/...
0
votes
0answers
156 views

Upgrading Theme

Using Magento 2.3 with Porto theme version 3.1.6, trying to upgrade to 3.1.7. After downloading the theme files and uploading them to my server, I run: php bin/magento setup:static-content:deploy ...
1
vote
1answer
165 views

Magento 2 - looking for faster and better way to deploy static content

I am using a multi store setup with Arabic and English and everything is working well including building modules and template building. However, if I make a change to any less file or JS file (...
2
votes
1answer
122 views

Is SCD_ON_DEMAND variable available for Magento 2 Open source version?

Can we configure global variable SCD_ON_DEMAND variable in env.php or somewhere else to mention about it for Magento 2 open source edition projects. This SCD_ON_DEMAND variable is using in Magento 2....
0
votes
0answers
15 views

Set Default “Jobs” for setting developer mode

I noticed recently the "jobs" parameter for the CLI command bin/magento deploy:static:content. Setting this to 4 for me seems to really speed up the time this command takes however when setting ...
0
votes
0answers
47 views

Static version pub/static/versionxxxx increases everytime I load the page

When I do static:deploy, the version text file is written in pub/static. When I repeatedly load the website and look at the source, the version number on the link is growing each time. I checked ...
1
vote
1answer
340 views

Compilation from source on static-content deploy in magento 2.3.0 when upgraded from magento 2.2.2

Hello i had upgraded magento 2.2.2 to 2.3.0 and i am getting following error when i do setup:static-content:deploy Compilation from source: /home/xxxxxxxx/public_html/xxxx/xxxxxx/vendor/magento/theme-...
0
votes
2answers
259 views

Magento 2.2.5: When deploying not coping css to pub/static

I have a Magento 2.2.5 based website and when I do a below command: php bin/magento setup:di:compile and then php bin/magento setup:static-content:deploy And then I look in the pub/static/frontend/...
0
votes
1answer
39 views

Front-End stopped working after magento upgrade

Front-end stopped working after a 2.2.6 upgrade. As you can see on screenshots, there is something wrong with the styles-m.css file.
0
votes
0answers
11 views

Magento odd deployment

I've inherited an M2 site that was built on a live dev server then copy and pasted to a production server and everything is still set in development mode. My question is that since there is not really ...
2
votes
1answer
291 views

Why are browsers failing to load some static content?

Using Magento 2.2.6. I just installed a brand new install of 2.2.6 using Apache on OS X High Sierra, and with both Chrome and Firefox, after logging into the admin, the subnavigation does not work, ...
2
votes
2answers
46 views

Overriding Magento 2 static adminhtml backend isn't working

I've got file : "vendor/magento/module-ui/view/base/web/templates/grid/listing.html" after deploy this file create: "pub/static/adminhtml/Magento/backend/en_US/Magento_Ui/templates/grid/listing....
0
votes
1answer
30 views

Why Static content deploy in magento2

for less , it is meaningful to compile , but why js and HTML templates are also generated, is there any significance doing that, in security and performance
2
votes
1answer
274 views

Upgrade to 2.2.6 missing static JS files

When I upgraded my Magento 2.2.2 to 2.2.6. I got one critical error in pub/static missing one file named trim-input.js "pub/static/version1540806968/frontend/{...}/{...}/pl_PL/mage/trim-input.js" ...
2
votes
0answers
34 views

Magento 2: Should the static version index?

I'm new to Magento. I'm wondering about static versions. I understand their purpose, but wondering if for SEO they should be indexable or non-index? Thanks.