Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

Filter by
Sorted by
Tagged with
1 vote
0 answers
21 views

Mobile browser not loading new css styles

I have the Sign Static Files setting on in Magento settings. I have verified that deployed_versio.txt has a new version number after setting up static files with setup:static-content:deploy. However ...
Webninja's user avatar
  • 1,591
0 votes
0 answers
22 views

Product page is not fully loading

I am having trouble on some of the product page to get fully loaded. On some of them, even the add to cart button is not clickable until I will refresh the page. Its a random behaviour. Some I have ...
roger's user avatar
  • 541
0 votes
1 answer
95 views

Facing an issue in PDP page in content in Magento 2

I am getting the below error in console in Magento 2 for js and also due to that my details and review tabs overlap with each other. Can anyone knows how to debug this js.
Mitul Vadalia's user avatar
0 votes
0 answers
143 views

Compilation from source: LESS file is empty: adminhtml/Magento/spectrum/es_MX/css/styles-old.less

I am upgrading a local site to 2.4.5. When I run a static content, deploy command: php bin/magento setup:static-content:deploy -f es_MX en_US It throws me this error: Compilation from source: /var/...
Eliacim DAVILA - CENSERE's user avatar
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
0 votes
1 answer
470 views

Magento 2.4.3 - Refused to execute Script

I just created a staging environment for my live server and I have some issues with my porto theme after that. I can see it in the inspector "Refused to execute script "script path/frontend/...
Jan-petter Havna's user avatar
2 votes
2 answers
381 views

Hosting Magento with Nginx getting 500 error on static files

I am currently upgrading an Magento 2.3.5 site to 2.4.4. Everything seems to going well and I have the site running in local on Docker (using Lando.dev) with nginx and the Magento nginx.conf.sample. ...
Robert Wilde's user avatar
0 votes
1 answer
587 views

change jsLayout html template

How can i change the jslayout html template to be phtml so i can call other blocks in it? first i have requirejs-config.js below code var config = { "map": { "*": { ...
Bayzel's user avatar
  • 187
1 vote
1 answer
349 views

Magento 2.3.7 developer mode : I need to regenerate my static content all the time

Env : Magento 2.3.7 PHP 7 VM on Linux I'm facing an issue : my instance of Magento 2 is in developer mode. But I need, all the time, to redeploy static content (like JS and CSS ; with -f argument) ...
Thomsath's user avatar
1 vote
1 answer
965 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
724 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
2 answers
22 views

Page loads once with no errors, multiple 403's after reload

I've been working with Magento for a number of years but I've never come across this before. I'm working on a custom theme for a new site - vanilla Magento 2.4.3 Open Source install - and recently ...
Adam Greenwell's user avatar
0 votes
2 answers
439 views

Magento 2.4 issue with CSS/JS not being sent to browser after installation/deployment; most probably server related (Nginx/Apache)

I have seen a couple of similar issues, but none of the solutions/reasons helped me. I installed Magento 2.4; tried it switch it to default and developer modes, forced it to compile and deploy static ...
NIck's user avatar
  • 1
0 votes
1 answer
45 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
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
223 views

How to add static pages in the Magento 2 search result?

I'm using a Magento 2.4 and in my project I have many static pages that I would like to be part of my search results. How could I add Magento 2 static pages in my search results?
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
55 views

Static content served from http://localhost instead of http://localhost:8888

Probably a simple question but I have installed magento 2.4 and I am getting console errors like the one below: Access to font at 'http://localhost/magento2/pub/static/version1610053755/frontend/...
Colin Gell's user avatar
0 votes
0 answers
214 views

Magento 2.2.6 CMS homepage content goes here

I am getting CMS homepage content goes here. content on the front page as well as on the admin panel with no images and any other content, how to resolve this issue. Run below commands also sudo find ...
ishaq's user avatar
  • 183
2 votes
0 answers
210 views

Magento 2.3: Automatically add HTML tags in a Static Block after save

Automatically adding HTML tags in a Static Block after save When saving static block from admin then after saving static block it is automatically adding HTML tags How can we solve it so that it will ...
sumeet bajaj's user avatar
  • 1,286
0 votes
1 answer
696 views

How to fix skip to content option in magento 2

I have issue with the magento2. When we open a website the skip to content appear before loading the complete website . How i remove this option. Image is atatched.
Ali's user avatar
  • 1
2 votes
1 answer
61 views

Css compilation issue on server

My styles are not working with bin/magento setup:static-content:deploy. It is working only after running grunt commands. Due to this my code is not working in server. we are using Magento 2.3.5-p2.
Ramyasri's user avatar
1 vote
1 answer
154 views

Cloudfront Redirects to Origin only when Static Content Signing is Enabled

I'm using AWS CloudFront with Magento 2.4. When dev/static/sign is disabled, I have absolutely no issues with the CDN. When dev/static/sign is enabled though, all static resources are redirected to ...
Hunter's user avatar
  • 799
1 vote
1 answer
468 views

Issue when clean static files in Magento 2

In my Magento 2 site every time I try to clear the static file cache and try to reload the page in the frontend, several errors come out in the JS console, as if there were continuous conflicts ...
Jackom's user avatar
  • 473
1 vote
0 answers
142 views

Magento 2.3.1 - Deployed version mismatch

I'm trying to update my Magento 2.3.1 installation with some new files. However, it keeps referring to my OLD signed static file(s). Inside pub/static/deployed_version.txt the number is updated, ...
senatorharry's user avatar
0 votes
1 answer
252 views

Magento 2 - admin backend not working correctly in production mode

I switched my store from development to production mode with php bin/magento deploy:mode:set production Then I executed grunt clean php bin/magento setup:static-content:deploy de_DE But this is how ...
Black's user avatar
  • 3,280
0 votes
1 answer
40 views

Deployment does no create /js folder with main.js

During the process of updating my Magento2 website, the console commands fail to create my main.js file, and shows me this error static/frontend/website/default/pt_PT/js/main.js net::ERR_ABORTED 404 (...
Pedro Ferreira's user avatar
0 votes
1 answer
103 views

Static content deploy generate thousands of weird folder names

i've run setup:static-content:deploy -f and now i'm getting a lot of strange folders on my pub/static/frontend folder For example one folder has the name "G7oLVFdw'; waitfor delay '0:0:6' -- " This ...
Armindo Pereira's user avatar
0 votes
2 answers
626 views

Add static page via custom theme

I created a custom Theme for our shop which works pretty fine. Just one thing is bothering me: I created some words in the footer and want to link them to custom pages which only have static content. ...
Java_Waldi's user avatar
0 votes
1 answer
18 views

Simple colums in editor

the best way to create column in the editor is? I try to create with Bootstrap class but, it's not working... Thanks
Alain Picard's user avatar
0 votes
1 answer
1k views

Magento 2.3.3 - Blank White Screen on Frontend (All Pages)

I am getting a white screen returned for all front end pages on Magento 2.3.3. I am using a third party theme (Sahara Fashion 3), which I have extended from. The theme itself was loaded properly ...
Marisa's user avatar
  • 330
0 votes
1 answer
243 views

Magento Cloud Integration - js and css files

We have recently inherited a Magento 2 cloud environment that has a working production and staging. We also have an integration environment that should have identical code to staging but neither the ...
Typhado's user avatar
  • 692
0 votes
1 answer
80 views

Script only loading directly after clearing the cache, but cant get found after second reload

I am using the extension Aheadworks_Wbtab. I don't know whats going on. If I flush the cache and reload then the slider shows and works fine. But if I reload again, then the slider dissapears and I ...
Black's user avatar
  • 3,280
1 vote
0 answers
166 views

Production Mode - CSS/JS missing when reloading with CTRL + Shift + R

Hello everyone, As the title suggests, I'm currently having some problems with a Magento 2 site, running in production mode, and it's static content / caching. The website loads just fine, but when I ...
Webdevguy's user avatar
1 vote
1 answer
1k views

Deploying static content not updating css

As far as I understand it, In order to change the style of an email, I need to override the _email-extended.less file. I go to the path below app/design/frontend/Smartwave/Porto/web/css/source/_email-...
gxrobb's user avatar
  • 87
3 votes
2 answers
172 views

Multi website frontend page is broken after upgrading to 2.3.3

I have a Magento 2 multi-website with each website has their own store view, after I upgrade it from 2.5 to 2.3.3, the main website is looking fine, but the others are broken and when I inspect, got ...
jojo's user avatar
  • 179
1 vote
3 answers
361 views

Where / how do versions work with pub static content?

I am debugging a JavaScript problem and I am confused as to how the static files and versions work... I see the following in a stacktrace and can open this in a new tab: https://example.com/static/...
Barry's user avatar
  • 587
2 votes
1 answer
1k views

How to use Magento 2.3 and Cloudfare CDN?

I'm currently trying out the Cloudflare CDN (free plan), but I didn't notice much in website performance. My server was having "server load" problems and it did stop, but It seems the website's ...
Tiago Costa's user avatar
0 votes
3 answers
2k views

Double quotes change into " in Tiny MCE editor in Magento 2.x

In Tiny MCE editor on a product page in M2.3, all my double quotes are changed into &quot; after saving. Example: <a href="{{store direct_url=&quot;contact&quot;}}"> This breaks ...
Els den Iep's user avatar
0 votes
1 answer
1k views

Magento 2 Get pub/static File Path [duplicate]

I am trying to add a link into the HTML head from (content/configuration/html) head section in the backend(admin) to a file that's located in my pub/static/version*****/frontend/ folder. How can I ...
miller75's user avatar
  • 409
1 vote
0 answers
165 views

Static Content deploy parallel jobs is not working in Docker

When using --jobs=4 or -j=4 with setup:static-content:deploy command its working on my local machine and it build the assets in parallel but when using this command inside a docker container with php:...
Sina Miandashti's user avatar
0 votes
2 answers
225 views

Magento 2 - Site not loading properly in Developer mode

I am working on M2 and I've set M2 developer mode. My site home page works fine but the other pages are not loading. They just show errors and warnings on inner pages. Screenshot:
Shoaib Saleem's user avatar
2 votes
1 answer
591 views

Migrate Static Blocks and multi stores from One Magento to Another

What is the best way to migrate Magento Content i.e Blocks, Pages, and All content from one Magento instance to another. I have 2 Magento setups. One of which has all data and another is fresh Magento....
Tester's user avatar
  • 367
4 votes
3 answers
3k views

I can't tell all clients to clear their browser cache!

recently we have changed few files js/CSS/phtml files on our site as we tested them we experienced strange thing in incognito mode the new CSS and js is working fine but if we switched to normal mode ...
Ghulam.M's user avatar
  • 963
0 votes
1 answer
111 views

After upgrade static content is set with out pub/

<html lang="en"> <head > <script> var BASE_URL = 'http://mage.test/'; var require = { "baseUrl": "http://mage.test/static/version1561748846/frontend/Brent/...
brentwpeterson's user avatar
2 votes
1 answer
70 views

Magento 2.2.6 overriding css or less files or locating the actual file to edit

Not sure why i'm finding this so difficult but I have a file that has some css that needs to be fixed. The file and code are in these files: pub/static/frontend/website/mywebsite/en_US/css/styles-l....
Singleton's user avatar
2 votes
3 answers
6k 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] ...
Greg's user avatar
  • 2,929
2 votes
2 answers
36 views

Page Styling (css) does not appear in the new Theme implementation (descendant of Luma Theme)

I just created empty theme which is descendant of Luma theme. but unfortunately the styling is not appear: theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Yusuf Ibrahim's user avatar
2 votes
1 answer
639 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 ...
Trenox's user avatar
  • 397
2 votes
1 answer
127 views

Magento2: Why isn't static content generated properly?

I have seen so many answers related to this question but nothing resolved my issue: I have cleared: cache pub/static generated var/cache, var/view_preprocessed Ran setup:upgrade di:compile cache:...
Flutterer's user avatar
  • 728