Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
34 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
36 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
23 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
11 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
40 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
1answer
51 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
38 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
21 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
23 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
62 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
27 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
34 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
2answers
47 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've ...
1
vote
1answer
92 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
44 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
38 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
53 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
62 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
27 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
45 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
83 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
89 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
60 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
13 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
37 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 ...
0
votes
1answer
198 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
3answers
108 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
33 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
152 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
36 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
28 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
204 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
33 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.
0
votes
2answers
41 views

Specific Theme for specific language, can I compile each theme in just the applicable languages?

We have a site that has been designed with a new theme for each language and each language on a different URL. It's not how I would have built it but we have to "run what you brung". The problem I ...
1
vote
0answers
30 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.
1
vote
3answers
191 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
102 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 ...
1
vote
1answer
33 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 ...
0
votes
0answers
94 views

getting issue in deploy after minify js & css in Magento 2.2.4

I have enabled minify js & css then run deploy command but getting error messgae during deploy: #0 /var/www/vhosts/example.com/httpdocs/vendor/tedivm/jshrink/src/JShrink/Minifier.php(247): ...
1
vote
0answers
33 views

Magento 2 : Error on running magento command

I'm new on Magento 2. (2.2.5, nginx, linux, MySQL 5.7.22, PHP 7.1.21) I was setting the configuration of store and when I refreshed the store page I get diamond question marks, also in admin console, ...
2
votes
2answers
357 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.
0
votes
1answer
58 views

Set Default to developer mode issue

When We set mode default to a developer, files are removed from pub folder. Magento 2.x PHP 7.x
1
vote
1answer
148 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 ...
0
votes
4answers
68 views

Website showing error log after running Magento Setup:static-content:deploy -f ..?

I am creating magento website and run stativcontent deploy -f after that i get Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/home/soft/public_html/megahaat.tk/var/cache/" is not writable in ....
1
vote
1answer
89 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 ...
0
votes
1answer
31 views

Which Magento 2 core function creates the url for the static folder files including css, js and images

I want to add a parameter at the end of the static content urls, but i am unable to find a global method where i can make a change and it starts reflecting on the all static content urls. My file and ...
0
votes
1answer
33 views

Is it possible to push the modified css or js file without changing static version number into the customer browser?

At present when we modify the JS or CSS file, the only way to update the Customers browser is to change the sign for static files globally by running static-content:deploy or at most we can give --no-...
1
vote
0answers
37 views

Magento 2 CDN cache

I have enabled CDN for my Magento 2 store static contents. But just would like to confirm, will there be any issue , if I run the below commands? Should I rebuild the CDN cache after running ...
2
votes
0answers
417 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/...