2022 Developer Survey is open! Take survey.

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
1 vote
2 answers
98 views

Static content deploy error after upgrading magento 2.4.3-p1 to 2.4.4

php ver 8.1 Error happened during deploy process: Deprecated Functionality: pathinfo(): Passing null to parameter #1 ($path) of type string is deprecated in /vendor/magento/framework/View/Asset/...
user avatar
  • 2,152
0 votes
1 answer
29 views

Compilation error Magento 2.4.3

what kind of compilation error is this? Can I share with you other info? I have Magento 2.4.3 https://ibb.co/sVFd0Nq
user avatar
1 vote
1 answer
46 views

Magento 2.4.1 - Static content deployment needed in developer mode

I am in the middle of a situation regarding the static content deployment and I find it strange. I built Magento 2 themes based on Luma/Blank or even not based on those. When I was working under the ...
user avatar
  • 33
0 votes
1 answer
21 views

Override vendor file issue in magento2

I am trying to override the below class file in my custom module. Magento\Deploy\Service\DeployStaticContent.php Vendor/Module/etc/di.xml <?xml version="1.0" ?> <config xmlns:xsi=&...
user avatar
  • 135
0 votes
1 answer
44 views

Magento 2 Js file not updating

I have edited the Js file in my module and tried deleting the file in an appropriate location like pub/static/My_Theme/My_Modul/js/test.js But still getting the same file when I checked in the source ...
user avatar
  • 828
0 votes
1 answer
49 views

Static files don't fully deploy on a docker-based deployment

I'm having trouble implementing the deploy strategy described in e.g. https://info2.magento.com/rs/585-GGD-959/images/The%20New%20Magento%202.2%20Deployment%20Capabilities%20%26%20Patterns.pdf I build ...
user avatar
0 votes
0 answers
41 views

Rename loaded requireJS file after each change

I have a question about deploying JS files loaded using requirejs-config.js. I have a third-party plugin that needs overrides. So, I built a new plugin and inside the requirejs-config.js file I added ...
user avatar
  • 33
0 votes
1 answer
43 views

No matching definition was found for `@family-name:'icons-blank-theme

We have upgraded Magento version from 2.3.4 to 2.4.2, while we execute deploy command we are facing below errors : frontend/Magento/louellabelle/en_GB 3349/3580 ==========================...
user avatar
0 votes
1 answer
25 views

Problem with multiple themes deploy in Magento 2

When I execute CLI command: php bin/magento setup:static-content:deploy. It always has only 4 steps themes, but now I have multiple duplicate themes while running the command. frontend/Magento/blank/...
user avatar
  • 1
0 votes
1 answer
79 views

Magento 2.3.2 - Problems with merged CSS/JS file cache on production

We experience an issue almost every single time we deploy new code to the website, whereby we get 404 errors for merged CSS/JS files. To me, this seems like there is something pointing to the location ...
user avatar
  • 101
0 votes
0 answers
21 views

Load versioned js files asynchronously in magento 2

I am trying to increase my magento websites speed/performance by loading js asynchronously. But the problem is that some js files that i can see in page source are formed dynamicaly. For example- &...
user avatar
0 votes
2 answers
84 views

.phtml file changes won't show, even though my static files and cache are cleared

So this is driving me a little nuts, I'm working on a child theme of Luma and the design requires me to modify some of the catalog blocks, so I've copied over a .phtml file into my theme folder. The ...
user avatar
0 votes
0 answers
30 views

Magento2 static-content:deploy error "no matching definition was found" after updating magento version

Two years ago we started programming a Magento 2 shop with version 2.3.3. However, the development was stopped for 2 years and should now continue. However, I now have a problem with my theme when I ...
user avatar
0 votes
1 answer
14 views

Magento 2 static asset response code when static deployment is running

When you are generating static content and you view a link to an asset for example https://domain/static/version1234/frontend/Vendor/Theme/en_GB/mage/translate.js If you view the file before it's been ...
user avatar
0 votes
1 answer
23 views

Magento js file 404 error after some working on project (tinycolor)

I use Magento 2.2.1 . After some working on project and adding modules, all things were right until I go to the category page. It gives me error with subject tinycolor.js 404 file not found on console ...
user avatar
0 votes
1 answer
82 views

Static files are missing after deploying Magento 2 in production mode

I'm using "push to deploy" method to deploy Magento 2 app with GIT. After pushing to master following commands are executed on the production server: git checkout master && git pull ...
user avatar
  • 11
0 votes
1 answer
369 views

Magento 2.4 getting wrong css & js path on frontend

I'm getting the wrong media, JS & CSS file path on the frontend and backend after installing Magento 2.4.2. Please review the below URLs we are getting. I've tried updating the value in the ...
user avatar
0 votes
2 answers
199 views

Magento 2.4 : Frontend/Backend Not working

I am using below configuration : Magento 2.4.x PHP 7.4 Composer 2.0 Frontend and Backend is not working. All .htaccess files are there in required folder. But still,I am getting below log in apache ...
user avatar
  • 1,130
0 votes
1 answer
250 views

Magento 2 - Pub/Static files create everything EXCEPT mage folder with important js files (like mixins.js or common.js)

I am using Magento 2.4.1 CE. I am not sure what changed, but since about a week when I create my static files the front- and backend break because two folders including important files are missing (e....
user avatar
  • 125
0 votes
1 answer
176 views

Update files when in production mode

When the Magento2 site is in production mode and I want to modify some html/phtml/php/js files how can I update the edited files while remaining in production mode? For the moment I have done this: $ ...
user avatar
  • 285
0 votes
2 answers
71 views

Issue when running deploy static content command - Magento 2

When running the php bin/magento setup:static-content:deploy command I am having an issue with the frontend of the site where it looks like it is loading the Magento/luma theme and ignoring all of my ...
user avatar
0 votes
1 answer
340 views

Magento 2 - Why do I get stupid "compilation from source" errors on setup:static-content:deploy?

If I execute php bin/magento setup:static-content:deploy then I get alot of errors like: Compilation from source: /home/company/staging.company.de/app/design/frontend/company/fresh/web/css/source/...
user avatar
  • 2,402
0 votes
0 answers
43 views

Magento command line putty

I have Magento 2.3. I have moved the website to another server but all command [php bin/magento setup:upgrade , php bin/magento setup:static-content:deploy -f, and any other command ] on command putty ...
user avatar
0 votes
1 answer
75 views

How to resolve Exception of Admin User installation issue while Theme Updating

I'm getting error during executing site/themesetup (via browser). The updation regarding modules happened properly & quickly, but it is encountering error While installing a new admin user(unsure ...
user avatar
  • 133
2 votes
1 answer
57 views

It is possible to deploy only one file using deploy command?

In production mode when I change the design of some particular block or page then I am only working on one or two files like js and CSS. To apply that one change I need to deploy the whole theme. Can ...
user avatar
3 votes
1 answer
186 views

Magento 2.4 deploy command does not creating minify file when I am in production mode

Magento 2.4.0: The static content deployment command does not create minify file when I am in production mode. Getting error on below file. It's not creating so Magento cannot read it. pub/static/...
user avatar
0 votes
1 answer
70 views

How to prevent from always static content deploy content on changing JS and CSS work in Magento 2?

How to prevent from static content deploy after changing in JS or CSS file in Magento 2. After doing some little change changes are not loads in front end if doesn't deploy. How to do that Any help is ...
user avatar
  • 526
0 votes
1 answer
151 views

Magento 2 - Compilation from source, errors during `php bin/magento setup:static-content:deploy`

I get this error when I execute php bin/magento setup:static-content:deploy: Compilation from source: /app/design/frontend/company/fresh/web/css/source/lib/extend/amasty/mega-menu/header.less variable ...
user avatar
  • 2,402
1 vote
2 answers
526 views

Any Drawback on running setup:upgrade, di:compile, static deploy everytime code level edit on Magento 2

Is it ok to run the following set of commands by default everytime I make a code level edit (layout edits, module creation, extension update) php bin/magento setup:upgrade php bin/magento setup:di:...
user avatar
  • 133
1 vote
3 answers
7k views

Magento 2.3: main.ERROR: Unable to resolve the source file issue

I am getting below error when I ran php bin/magento setup:static-content:deploy -f cmd. frontend/Alothemes/digitalstore3/en_US 2494/2645 ==========================>- 94% 5 secs ...
user avatar
0 votes
1 answer
149 views

Static content generation: problems with grunt exec and grunt less

I'm working on a Magento 2.3.4 website that has a custom theme, developed by a different party. I need to modify some .less files and I noticed something strange. grunt exec, that should publish the ...
user avatar
0 votes
2 answers
128 views

css is not working in magento 2 cart page

I have issue in cart page of my website . Currently home page and product pages are loading correctly but the cart page have issue Css and js fies in the cart page is not working Please help to ...
user avatar
0 votes
1 answer
50 views

How to load an external file to load and execute our custom JS files on the Magento site?

seeking some advises. My Magento-2 project has 2 custom JS files that I would like replicated and loaded externally on the site. This arrangement is for our client to use them to add his own code ...
user avatar
0 votes
3 answers
890 views

Zero downtime deployments

I'm using Magento 2.3.4 open source and I am looking into how I can achieve zero downtime The build commands I normally use are: php bin/magento maintenance:enable composer install --no-interaction ...
user avatar
  • 2,429
0 votes
1 answer
138 views

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

I'm running Magento 2 in production mode. I made some changes in my module JS files. I try to make the JS change reflecting on the live site, by using following command. php bin/magento setup:...
user avatar
0 votes
2 answers
116 views

Why do I still need to regenerate static content in developer mode?

I've noticed that in developer mode whenever I enable an extension, or a theme, I will have to regenerate the static content. Here's an example of such a case. According to the magento 2 ...
user avatar
0 votes
1 answer
3k views

Magento 2 pub/static/_cache/merged files are not created

Magento version 2.1.9 Trying to deploy the website results in strange JS and CSS errors. With the configuration of: dev/js/merge_files = 0 dev/js/enable_js_bundling = 0 dev/js/minify_files = 0 dev/...
user avatar
0 votes
1 answer
63 views

Magento 2 Static Content deploy requried?

I am a newbie in Magento2 I read some articles in which they mention like in Developer mode there is no need for Content deploy, it is only required in production mode. but when I worked practically ...
user avatar
0 votes
1 answer
128 views

Static content deploy in magneto 2 [closed]

why we use in general static content deploy command in Magento 2? php bin/magento setup:static-content:deploy -f
user avatar
1 vote
1 answer
254 views

Magento 2 static files not creating mage folder and mixins.js

After upgrading from Magento 2.2.2 to Magento 2.3.3. While generating static content with command "php bin/magento setup:static-content:deploy -f" it updates all the files in pub/static folder ...
user avatar
  • 11
0 votes
1 answer
114 views

Modification to .phtml does not render

In content/page homepage I insert a widget from the porto theme: {{block class="Smartwave\Filterproducts\Block\Home\LatestList" name="latest_product" product_type="4" product_count="50" category_id="...
user avatar
0 votes
1 answer
73 views

skip default luma images generation during static content deployment in magento cloud

I have a requirement where I need to skip the images that were generated by the static-content: deploy in Magento. In my local and the test environments have --no-images option. But how can I ...
user avatar
0 votes
0 answers
279 views

Magento2 2.3.3 not creating symlinks for static files anymore

After a lot of searching on google, I hope someone can help me out. Magento2 version 2.3.3 is running on nginx with the sample config from Magento. PHP 7.1.33 is running via fcgi. The developer mode ...
user avatar
1 vote
2 answers
397 views

Magento 2 - I am facing this every time I run upgrade and deploy command after applying changes

Each time I deploy some changes and run, upgrade compile deploy reindex cache clean commands I face these issues? Anyone ?? I have deployed child theme and after that, I have run these commands
user avatar
-1 votes
1 answer
58 views

Error while running static deploy command in magento 2

I am getting the error again & again, though I have removed/var/pub & pub/static/frontend Error while running static deploy command in Magento
user avatar
1 vote
1 answer
2k views

static content deploy command autometically killed

I am running command setup:static-content:deploy -f its running for while, but after sometime it got killed in magento2.3.2. Please let me know the exact issue for this.
user avatar
0 votes
0 answers
124 views

An error has happened during application run. See exception log for details in magento2.3.3

I had run "setup:static-content:deploy -f en_GB" command, my website shows "An error has happened during application run. See exception log for details." i checked in my log file, CRITICAL: ...
user avatar
  • 569
1 vote
2 answers
814 views

Module not generated in pub/ folder, Magento 2.3.3

Hello! I have Magento version 2.3.3. I run: bin/magento setup:upgrade bin/magento setup:di:compile bin/magento bin/magento setup:static-content:deploy -f And permissions for folders: But after ...
user avatar
2 votes
0 answers
167 views

Magento 2 can't deploy : full red error

(Using putty). I can't deploy my magento 2 anymore... Tried chmod, tried setup upgrade.. Any idea or tips will be much appreciated. #0 /var/www/clients/client0/web6/web/boutique/vendor/magento/...
user avatar
  • 45
0 votes
1 answer
1k views

Running a script inside a docker container using shell script from host

I am new to Docker technology,I am trying to create a shell script on my host to clear caches and to deploy my static content in Magento 2 inside my apach containe. to access to my apach container i ...
user avatar