Stack Exchange Network

Stack Exchange network consists of 174 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

The tag has no usage guidance.

2
votes
1answer
25 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
21 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
19 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
26 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
41 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
21 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
31 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
39 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
25 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
23 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
24 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
27 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 ...
1
vote
0answers
123 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
127 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-...
1
vote
1answer
116 views

Magento2: I have an error running the command setup:static-content:deploy

I have a Magento 2.2.3, I get the error below after running bin/magento setup:static-content:deploy. This error only gives me when my custom theme makes fallback in the Magento/luma theme if I make ...
1
vote
1answer
137 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 ...
0
votes
0answers
37 views

Magento 2 custom theme setup:static-content:deploy en_GB on production mode does not work!

I've been doing this for while and having to end up either going to developer mode then production to push e.g css changes or run setup:upgrade then setup:static-content:deploy en_GB && cache:...
0
votes
0answers
30 views

Magento 2 Autoprefixer in production mode

Magento 2 comes with a preinstalled autoprefixer for Grunt. But is it possible to use the autoprefixer in the production mode too? I have a lot of CSS which does not work without the vendor prefixes ...
1
vote
0answers
34 views

Magento 2 Static Content Deploy is Not working

I'm using Magento 2.2.3. I am trying to do the Static Content Deploy through CLI in my Lampp. This is the code I'm used, php bin/magento setup:static-content:deploy or php bin/magento setup:static-...
0
votes
1answer
39 views

Custom Theme is ignored after move to production server [duplicate]

I recently moved my Magento 2.2.3 site to production server (different server, url and path). However, the custom theme seems to be ignored. If I enter the site, it shows the following error in the ...
0
votes
2answers
46 views

Magento2 deploy static files overwrite instead of manually delete

When I run bin/magento setup:static-content:deploy it does not overwrite existing files but leaves them intact. This leads to the unpleasant situation that I have to clear static file before I ...
0
votes
3answers
80 views

Magetno 2 custom theme's css not deploying on production mode

I've set magento 2.2.2 on production mode. I have a custom theme with a custom css main.css: Now when I do changes to css file when magento in production mode it doesn't add straight away because it;...
1
vote
1answer
85 views

Magento 2 - Custom theme is not working on production server

A few days ago I finished the custom theme (very simple, based on Luma and Blank themes, changing colors etc only). My theme works perfectly on the local server, but when uploaded to the live server ...
1
vote
2answers
121 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....
1
vote
0answers
24 views

magento 2 - deploy for custom theme can not complete

never seen this one before, when I run php bin/magento setup:static-content:deploy it passes the luma and blank just fine but when goes to my theme and the backend, it gives only a few dots and ...
0
votes
1answer
38 views

Issue with upgrading Magento Version from 2.1.7 to 2.1.12

We are trying to upgrade Magento Version from 2.1.7 to 2.1.12. The upgrade process went well but after running static content deploy we are facing the issue. Like this many, '.less' files failed. ...
0
votes
1answer
170 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:...
0
votes
1answer
60 views

Magento 2 Generate static files without gulp

Has anyone tried to generate static sass files without gulp? I want to do the same as when I execute the following commands... gulp deploy --theme Namespace/Theme gulp sass --theme Namespace/Theme ...
0
votes
2answers
507 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 ...
2
votes
3answers
456 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, ...
1
vote
0answers
37 views

Magento 2 | Deploy static content from only one source

I got some errors when trying to compile where CSS is not being generated for adminhtml. I got this in the shell: Compilation from source: /microcloud/domains/operm2/domains/dev.domain.co.uk/http/...
0
votes
3answers
113 views

Magento 2 - CSS is only successfully compiled after removing a series of directories

I'm having a little trouble compiling the CSS in Magento 2. I'm well versed in the ways of Magento 1x but I've only worked a little in M2, so I apologise. When experimenting with M2 I managed the CSS ...
0
votes
0answers
22 views

How to handle static asset generation in production?

I'm wondering how to handle the setup:static-content:deploy command in production efficiently, right now I'm running the command after setup:upgrade however I run into an issue where frontend assets ...
0
votes
0answers
53 views

When enabled opcache static not update

I am using magento 2.2.2 When I enabled opcache the pub/static file not update, but turn off it can update, why? This is my setting opcache.consistency_checks 0 0 opcache.dups_fix Off Off ...
2
votes
1answer
330 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
381 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 ...
1
vote
1answer
23 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 ...
0
votes
1answer
241 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
0answers
42 views

M2: any changes require re-deploy (either in production or developer mode)

I have a fresh install of Magento 2.2.2 on side account at webhosts and the odd behaviors I'm experiencing contradicts the normal odd behaviors I'm reading about. I spent the last few weeks reading ...
0
votes
1answer
44 views

Permissions on webserver

My problem came out when we tried to install an extension...then we tried to install another two or three but none of them are working. We cannot have any working extension on our version of Magento (...
3
votes
1answer
393 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/...
0
votes
1answer
68 views

Magento 2.1.8 Deploy static content error

I get this error in my console when trying to deploy static files: Compilation from source: adminhtml/Magento/backend/en_US/css/styles.less Unable to get content for 'adminhtml/Magento/backend/en_US/...
2
votes
1answer
60 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 ...
4
votes
4answers
135 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!
0
votes
0answers
23 views

magento 2 when deploy, upgrade display the cluttered characters in command?

On Windows 10 when I deploy upgrade of Magento 2, it displays the cluttered characters in command line and it makes deploying the upgrade very slow. Please help me.
1
vote
1answer
168 views

Magento 2 | deploy static content error

I got this error when running setup:static-content:deploy on Magento 2.1.8: Compilation from source: /microcloud/domains/vampm2/domains/mydomains.co.uk/http/vendor/magento/theme-frontend-blank/web/...
2
votes
1answer
78 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
2answers
114 views

Get an error when deploy magento2

When I generate static files in the deployment, I run php bin/magento setup:static-content:deploy but it fails. I have disabled the extension=php_intl.dll in etc/php/7.0/cli/php.ini and restarted ...
0
votes
1answer
51 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
42 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. ...