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
1
vote
1answer
1k views

Magento 2 setup:staitic-content:deploy doesn't update css

I'm running Magento 2 in production mode. I made some changes in my theme's css files. I try to make the css change reflecting on the live site, by using following command. php bin/magento setup:...
2
votes
2answers
866 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/...
0
votes
1answer
36 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 ...
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|--...
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 ...
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
107 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
71 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%...
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/...
1
vote
0answers
24 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:...
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-...
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 ...
1
vote
2answers
778 views

Less file changes not taken in production

In prod mode with Magento 2.0.5 Making changes to app\design\frontend\mythemes\2016\web\css\source\_extend.less Then , rm -rf var/cache/* var/view_preprocessed/* pub/static/* php bin/magento setup:...
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 ...
1
vote
1answer
638 views

Flush static files cache on production mode

There is something about Magento2 that troubles me so much. When I have a website on production mode and I need to make a simple image change how I can do it? I thought changing the image via FTP ...
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?
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?
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 ...
1
vote
3answers
84 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/...
1
vote
1answer
56 views

how to edit existing terms and conditions

After adding term & condition in magento 2.2.6, I can't find the edit or delete option. Tried to clear cahe, reindex, deploy static but noting working.
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 ...
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
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
772 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] ...
0
votes
3answers
51 views

Theme files gone after extension installed

I am really not familiar with Magento 2 - a colleague has built one mainly using a pre-purchased theme but I haven't been involved until today. This morning I manually installed an extension which ...
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
152 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\...
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
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
501 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 ...
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
603 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: ...
1
vote
1answer
140 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
218 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
164 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
0answers
181 views

magento 2 crash after set to Client side less compilation

i'm working on magento 2.2.2 .after i set client side less compilation mod (default value is server side compilation mod can be accessed via STORES > Configuration > ADVANCED > Developer > Front-end ...
4
votes
1answer
135 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 ...