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.

0
votes
2answers
26 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
21 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
0
votes
0answers
26 views

Area code not set: Area code must be set before starting a session on deploy:set:mode production

I've spent many hours trying to solve the following issue. Some specs my server is running: Ubuntu 16.04 PHP 7.1 Magento 2.2.5 My issue is that when I try to switch from developer to production ...
1
vote
0answers
45 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" ...
0
votes
0answers
38 views

magento2 static deploy killed or timesout

I keep getting Killed while trying to deploy static content after I migrated to the new host. It almost looks like it times out, deploy is very slow too. I have max_execution_time = 18000 which is ...
2
votes
0answers
25 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
33 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 ...
0
votes
0answers
18 views

M2.2 - Does pipeline deployment only benefit JS/CSS updates?

I'm looking at taking advantage of pipeline deployment for our site to keep downtime for updates to a minimum. However, someone mentioned to me that the pipeline deployment is really only beneficial ...
2
votes
1answer
37 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
26 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
32 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
29 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
79 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
24 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
40 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
41 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
29 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
25 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
25 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
30 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
185 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
244 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
185 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
384 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
49 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
48 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
44 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
49 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
63 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
92 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
159 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
184 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
25 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
43 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
363 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
78 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 ...
1
vote
2answers
730 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
846 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
42 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
154 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
59 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
461 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
462 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
24 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
323 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
58 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
45 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
569 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
72 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/...