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
0 answers
20 views

how to fix the text ADD TO WISHLIST in the front end [closed]

while adding some css to the frontend , the add to wishlist became like in the photo this is the code i keep editing display:inline; to display:none; but the add to wishlist is still shown something ...
sarah's user avatar
  • 1
0 votes
0 answers
22 views

LESS file changes not working

the LESS file changes is not shown on frontend , i tired removing cache and different files rm -rf var/cache/* var/view_preprocessed/* then upgrading and deploying but when i deploy the website is ...
sarah's user avatar
  • 1
0 votes
0 answers
12 views

How to deploy magepack bundling on production

magento.app.yaml when i am deploying on cloud error is occur W: /etc/platform/bletrhxa5fb2a_stg/auto_post_deploy.sh: 3: /etc/platform/bletrhxa5fb2a_stg/auto_post_deploy.sh: magepack: not found In ...
Nabeel Ahmed's user avatar
1 vote
2 answers
77 views

How and when should I use the Magento 2 commands bin/magento setup:upgrade, bin/magento setup:di:compile, and bin/magento static:content:deploy -f?

I'm new to Magento 2 and I'm trying to understand the purpose and appropriate usage of some important commands. Specifically, I would like to know more about the following commands: bin/magento setup:...
user avatar
0 votes
0 answers
94 views

Deployment script takes around 30 min on magento 2.4.5-p1. how to reduce the time?

When I run the deployment command on our production mode site, it takes around 30 mins to complete. How can I make it faster? Magento Version: 2.4.5-p1
T P T's user avatar
  • 51
5 votes
2 answers
1k views

Static-content deploy slow after upgrading

after upgrading M2 from 2.4.2 to 2.4.5-p1 the static content deployment increased significantly. The time to deploy increases for every new theme/language. Used to be ~5min total for all themes to ...
Gerhard's user avatar
  • 65
0 votes
2 answers
929 views

Fatal error: Cannot declare class Product, because the name is already

This error pops up when I run php -dmemory_limit=-1 bin/magento s:d:c File; parseResource.php <?php class parseResource { public $resourcePath = ""; ...
faisal's user avatar
  • 1
1 vote
1 answer
70 views

Issue migration 2.4.1 to 2.4.4

I'm facing several issues in my migration process from 2.4.1 to 2.4.4. On the backend, when I try to login : If wrong credentials: error message; this is fine. If proper credentials, then, the url ...
Claims's user avatar
  • 1,146
2 votes
2 answers
35 views

styles.css not found 404 after executing setup:static-content:deploy

I'm trying to setup the project locally and after executing php bin/magento setup:static-content:deploy -f es_ES only sass directory is showing up but no css directory. As you can see it is trying to ...
Kristijan Isajloski's user avatar
2 votes
3 answers
767 views

Magento 2.4.4: What is the theme that Magento admin uses?

I recently made a change to my setup:static-content:deploy command as php -d memory_limit=4G bin/magento setup:static-content:deploy -f --theme Perfectmakeupmirrors/argento-luxury-custom to narrow ...
CodeForGood's user avatar
8 votes
7 answers
8k 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/...
Savan Patel's user avatar
  • 2,338
0 votes
1 answer
35 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
user3718303's user avatar
1 vote
1 answer
973 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 ...
Kloppo's user avatar
  • 95
0 votes
1 answer
51 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=&...
Manjunath's user avatar
  • 177
0 votes
1 answer
725 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 ...
Ramesh KR's user avatar
  • 866
0 votes
1 answer
324 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 ...
Roger Firpo's user avatar
0 votes
0 answers
127 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 ...
Kloppo's user avatar
  • 95
0 votes
1 answer
315 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 ==========================...
SagarPPanchal's user avatar
0 votes
1 answer
40 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/...
kogutu's user avatar
  • 1
0 votes
1 answer
750 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 ...
Keydose's user avatar
  • 101
1 vote
2 answers
410 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 ...
Sam Assoum's user avatar
0 votes
1 answer
46 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 ...
Dominic Pixie's user avatar
0 votes
1 answer
327 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 ...
sina Dabbagh's user avatar
0 votes
1 answer
494 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 ...
Jure's user avatar
  • 11
0 votes
1 answer
939 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 ...
sourabh yadav's user avatar
0 votes
2 answers
460 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 ...
Krupali's user avatar
  • 1,140
0 votes
1 answer
706 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....
TheFrakes's user avatar
  • 337
0 votes
1 answer
941 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: $ ...
Jackom's user avatar
  • 473
0 votes
2 answers
218 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 ...
David Reis's user avatar
0 votes
1 answer
1k 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/...
Black's user avatar
  • 3,280
0 votes
0 answers
149 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 ...
Hassan Kamar's user avatar
0 votes
1 answer
698 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 ...
Shailesh's user avatar
  • 133
2 votes
1 answer
88 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 ...
Bhavesh Prajapati's user avatar
5 votes
1 answer
489 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/...
MD Foysal Afridi's user avatar
0 votes
1 answer
463 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 ...
Prits's user avatar
  • 626
0 votes
1 answer
223 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 ...
Black's user avatar
  • 3,280
1 vote
2 answers
1k 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:...
Shailesh's user avatar
  • 133
4 votes
5 answers
19k 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 ...
Balwant Singh's user avatar
0 votes
1 answer
292 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 ...
Peter Karsai's user avatar
0 votes
2 answers
188 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 ...
Abilash Erikson's user avatar
0 votes
1 answer
79 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 ...
CodeForGood's user avatar
6 votes
3 answers
2k 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 ...
Goose84's user avatar
  • 2,581
0 votes
1 answer
314 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:...
Sarvesh Tiwari's user avatar
1 vote
2 answers
227 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 ...
BugHunterUK's user avatar
0 votes
1 answer
5k 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/...
senatorharry's user avatar
0 votes
1 answer
233 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 ...
Daniel Benson's user avatar
0 votes
1 answer
182 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
Muhammad Abdullah's user avatar
1 vote
1 answer
313 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 ...
Jana's user avatar
  • 11
0 votes
1 answer
276 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="...
Vincent Teyssier's user avatar
0 votes
1 answer
224 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 ...
Visanth Sampath's user avatar