Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

Filter by
Sorted by
Tagged with
1 vote
1 answer
44 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
39 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
2 answers
12 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 ...
user avatar
0 votes
2 answers
62 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 ...
user avatar
  • 1
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
0 answers
50 views

Magento 2 not requesting styles-m.css and styles-l.css

This question is already asked here but it didn't get any suitable answer and it's already 2 years old. I did 2 Magento installs, 1 for 2.4.2 and other for 2.4.1 and neither of them asks for styles-m....
user avatar
0 votes
0 answers
20 views

Nginx on Magento 2.3.2 not rewriting the /version on request urls

I am desperate with this. I have the following config files: upstream fastcgi_backend { # use tcp connection # server 127.0.0.1:9000; # or socket #server unix:/var/run/php5-fpm.sock;...
user avatar
0 votes
2 answers
67 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
53 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?
user avatar
0 votes
1 answer
22 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/...
user avatar
0 votes
0 answers
133 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 ...
user avatar
  • 111
2 votes
0 answers
110 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 ...
user avatar
  • 1,123
0 votes
1 answer
299 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.
user avatar
  • 1
2 votes
0 answers
51 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.
user avatar
1 vote
1 answer
92 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 ...
user avatar
  • 721
1 vote
1 answer
198 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 ...
user avatar
  • 285
1 vote
0 answers
42 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, ...
user avatar
0 votes
1 answer
117 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 ...
user avatar
  • 2,380
0 votes
1 answer
34 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 (...
user avatar
0 votes
1 answer
68 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 ...
user avatar
0 votes
2 answers
333 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. ...
user avatar
0 votes
1 answer
15 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
user avatar
0 votes
1 answer
655 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 ...
user avatar
  • 320
0 votes
1 answer
115 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 ...
user avatar
  • 652
0 votes
1 answer
33 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 ...
user avatar
  • 2,380
1 vote
0 answers
101 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 ...
user avatar
1 vote
1 answer
385 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-...
user avatar
  • 87
3 votes
2 answers
136 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 ...
user avatar
  • 167
1 vote
3 answers
55 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/...
user avatar
  • 587
2 votes
1 answer
877 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 ...
user avatar
0 votes
3 answers
1k 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 ...
user avatar
0 votes
1 answer
633 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 ...
user avatar
  • 377
1 vote
0 answers
83 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:...
user avatar
0 votes
2 answers
158 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:
user avatar
1 vote
1 answer
412 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....
user avatar
  • 337
3 votes
3 answers
1k 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 ...
user avatar
  • 871
0 votes
1 answer
71 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/...
user avatar
2 votes
1 answer
61 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....
user avatar
1 vote
3 answers
5k 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] ...
user avatar
  • 2,739
2 votes
2 answers
28 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:...
user avatar
2 votes
1 answer
515 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 ...
user avatar
  • 397
2 votes
1 answer
59 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:...
user avatar
  • 728
1 vote
1 answer
818 views

Missing file from static Magento 2

I have recently upgraded from Magento 2.2.4 to Magento 2.3. This has caused some compatibility issues between some of our modules. One instance of this is that we are missing a file: /pub/static/...
user avatar
  • 398
0 votes
2 answers
213 views

Get current product name in static web template html file on product view page

I want to get the current product name in static html file which is called in product view page like below file app/design/frontend/Vendorname/themename/Aheadworks_AdvancedReviews/web/template/...
user avatar
  • 451
0 votes
0 answers
351 views

Magento 2.3.0 : Getting error in static content deploy command

I am using Porto and updated Magento from 2.2.5 to 2.3.0 while deploying static content I am facing error that styles-1.css missing in the theme folder.
user avatar
0 votes
0 answers
1k views

Magento 2.3 Static Content Deployment problem & missing css file

Running Magento 2.3 i noticed a problem with the static content being deployed, well, I believe it to be that anyway. I was messing around with Varnish for a few days and had a nightmare getting it ...
user avatar
2 votes
1 answer
36 views

Does indexer:reindex need "var", "generated" and "pub/static" to be writable?

I would like to know if, when doing "php bin/magento indexer:reindex" the folders "var", "generated" and "pub/static" have to be writable ? Alternatively, does reindexing only work at database level? ...
user avatar
2 votes
2 answers
3k views

Static Content 404 with Magento 2 and Nginx

Preface: I have read through as many posts as I can find about this issue, but I have tried all solutions suggested already. The Issue Using a quick docker setup to get a local instance of Magento 2 ...
user avatar
  • 455
2 votes
2 answers
236 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....
user avatar
  • 41