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
51
votes
16answers
78k views

Magento2: Re generate css file in pub/static folder

I have installed Magento 2 and set developer mode, then I have installed one module that contains css and js files. The module works fine and css and js files are rendering from pub/static folder. Now ...
19
votes
7answers
16k views

Strange Error when running setup:upgrade after module installation

I have tried to install wyomind google shopping and have the following error when running bin/magento setup:upgrade. [UnexpectedValueException] Unable to retrieve deployment version of static files ...
5
votes
2answers
2k views

Magento 2.2: Custom Theme Deployment Breaks at 95%

Just updated from Magento 2.1.10 to 2.2.2, and keep receiving the following when I deploy static content. Any insights on what the errors signify? #0 /app/web/vendor/magento/framework/App/View/Asset/...
4
votes
10answers
14k views

Magento 2 shows 404 error and front end css crashed

I have installed Magento 2 successfully. When i am trying to open front end that looks like this picture and backend shows 404 error. how to solve this?
4
votes
1answer
494 views

Magento 2: How do you compile with you only what you want with “setup:static-content:deploy”?

How do you compile with you only what you want with "setup:static-content:deploy" ? How can compile only current theme ? How can compile only .less files of theme ?
4
votes
2answers
2k views

Error in content deploy in magento 2.2.1

I have installed the magento 2.2.1 but on deploying static content it is giving following error PHP Fatal error: Uncaught Error: Call to a member function getPackage() on null in /var/www/html/...
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 ...
4
votes
4answers
269 views

Css not working after Magento 2 installation on AWS

I've installed Magento 2 on AWS, however, the admin page is appearing like this: What should I do? Thanks!
4
votes
0answers
1k views

Magento 2 - Unable to resolve the source file for image

I have created an image and have uploaded this to my theme/web/images folder. I have then ran the following: php bin/magento setup:static-content:deploy However I cannot get the image to show on ...
3
votes
1answer
2k views

Magento 2: js-translation.json 404 (Not Found) on production mode

After switching to the production mode, an error appeared in the console : pub/static/adminhtml/Magento/backend/en_US/js-translation.json 404 (Not Found) pub/static/adminhtml/Magento/backend/en_US/js-...
3
votes
2answers
747 views

Magento 2.2.2 deploy specific theme

I've started to use magento 2.2.2 and I've noticed that running static content deploy for a specific theme (using -t flag) is no more working. All themes are deployed instead of the requested one only....
3
votes
1answer
2k views

Magento 2 - Really Bad Performance in Docker

we are using Docker on macOS for development and deployment and have massive performance problems especially in deployment. Our deployment does a full project build with: git clone composer install ...
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|--...
3
votes
0answers
260 views

2.2 Pipeline deployment

I was reading on the new Pipeline deployment here but I don't understand how this is supposed to work in a repository. In developer mode static content is dynamic, but if the build system commits ...
2
votes
3answers
3k views

Set default locale for bin/magento setup:static-content:deploy

When running deploy static content on my store i always need to add the locale at the end of the command or my store breaks. bin/magento setup:static-content:deploy en_GB I was wondering if I am ...
2
votes
3answers
4k views

Setup:static-content:deploy issue with locale

I have enabled Production mode, and when I run setup:static-content:deploy, it creates two folders - en_AU and en_US. In pub/static/frontend/mytheme/, en_US folder has all nessesary files generated, ...
2
votes
2answers
139 views

How to edit file in app/design/frontend without having to redeploy static content in Magento2?

Using Magento2, version 2.19 We are editing below file: app/design/frontend/xx/xxxxx/Magento_Newsletter/templates/subscribe_popup.phtml How can I show the changes to this file in the frontend of ...
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. ...
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....
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....
2
votes
3answers
342 views

Magento 2 why always need to run static content deploy every after upgrade?

I'm using Magento 2.2.6 version, I already set to developer mode, but when I ran setup:upgrade, and when I open my Magento project the css and js not loaded. But after I ran setup:static-content:...
2
votes
1answer
500 views

static-content:deploy not working

I'm overriding a core JS file in my module. When I run php bin/magento static-content:deploy and refresh the page the JavaScript does not seem to change. I started tracking the issue. I found ...
2
votes
1answer
2k views

Magento 2.2 Build system

I trying to setup build system for setup:di:compile and setup:static-content:deploy based on official devdocs. Build system The build system compiles code and generates static view files for ...
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 ...
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
1answer
248 views

Magento 2: publish changes from development env to production

I have two environments for my store developed in Magento CE 2.2.5, one is for development use (where I run the store in developer mode), the other is the production environment (where the I use the ...
2
votes
2answers
865 views

Setup:static-content:deploy “Error : vendor/tedivm/jshrink/src/JShrink/Minifier”

The follwing error occurs during the command php bin/magento setup:static-content:deploy en_US de_DE execution, but the command continues to work. "Error : vendor/tedivm/jshrink/src/JShrink/...
2
votes
1answer
294 views

Magento 2 - Deploying local to live, why rsync doesn't work

I've recently deployed a magento 2 from local to live environment, local was working fine and everything was running smoothly. I've also enabled production mode, but i've not turned on css or js ...
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'...
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.
2
votes
2answers
599 views

After changes in less file setup:static-content:deploy is compulsory

Most of time spend on setup:upgrade and setup:static-content:deploy. Is it compulsory to run both command after changes on less file? I have used Default lUMA theme.
2
votes
1answer
63 views

CSS not loading for Magento 2

After updating Magento 2 from version 2.1.7 to 2.1.8 there is no css loading for the backend (front end works fine). How can I get the css to load for the admin? After deploying static content I got ...
2
votes
1answer
44 views

2.2 static-content deploy generates extra themes

Since version 2.2, static-content:deploy for a theme will generate themes not specified using the --theme flag. So before in 2.1.x I would generate a theme for 3 languages and get exactly 3 themes. ...
1
vote
6answers
4k views

Magento 2: Site not working after delete pub/static folder manually

I am running Magento 2.1 in developer mode. I manually deleted everything in the pub/static/ folder, and then ran the deploy command. I then cleared cache, I am now getting this error I can't solve? ...
1
vote
1answer
3k views

Magento2 calling assets in folder pub/static/versionXXXXXXX after static content deploy

I'm running the command php bin/magento setup:static-content:deploy which exports all the assets in pub/static (creates folders: _requirejs, adminhtml and frontend), changes the deployed version in ...
1
vote
2answers
2k views

Magento2 developer mode doesnt generate static files on demand

I am running Magento 2 locally in developer mode After installing i would not expect to have to run php bin/magento setup:static-content:deploy if in developer mode. However, the only directory ...
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 ...
1
vote
1answer
257 views

js-translation.json fails to generated

Magento 2.1 We have a site setup with both English and French languages. We were noticing some french translations weren't showing on checkout page. Upon further inspection js-translation.json was ...
1
vote
1answer
28 views

Static-content deploy runs only for en_US by default

Is it possible to set other local as default for static-content deploy command somehow? I have "he_IL" store (This is single lang store and I set this lang at the installation, nothing was added ...
1
vote
1answer
692 views

Magento 2 - static content deploy make en_GB default

Simple question, but can't seem to find anywhere online that explains it. Using static content deploy, to generate the theme files like so: bin/magento setup:static-content:deploy Obviously once ...
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 ...
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. ...
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: ...
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 ...
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/...
1
vote
1answer
40 views

Magento 2.1.7 static content deploy creates _temp.min.js file instead of .js file

In Magento 2.1.7 when I have customized some js as per our requirement in app\design\frontend\vendor\theme\Magento_ProductVideo and then fire following commands php -dmemory_limit=6G bin/magento ...
1
vote
1answer
201 views

Magento 2: How to deploy an image file on production site?

We changed one image file at this location and now we want to deploy it on live: app/design/frontend/theme/theme1/web/images/sample.jpg We learned that the only way to deploy static files in ...
1
vote
2answers
2k views

Magento 2.2 set/Deploy Production mode stuck at 'Static content deployment'

I have configured my magento 2.2.3 in server and checked the mode. It was "default". Then I tried to change the mode to production with this command, php bin/magento deploy:mode:set production After ...
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:...