Questions tagged [static-content]
Denotes questions related to Static Content in Magento2.
179
questions
0
votes
1
answer
42
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.
0
votes
0
answers
106
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/...
1
vote
2
answers
32
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 ...
0
votes
1
answer
393
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/...
1
vote
2
answers
295
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.
...
0
votes
1
answer
473
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": {
"*": {
...
1
vote
1
answer
269
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) ...
1
vote
0
answers
45
views
Static content error magento 2.4
I have upgraded magento to 2.4.4 & now I am facing the issue mentioned below.
Compilation from source /var/site/app/design/frontend/Smartwave/porto/web/icon-fonts/README.txt failed
Magento\...
1
vote
1
answer
736
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 ...
0
votes
1
answer
586
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 ...
0
votes
2
answers
17
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 ...
0
votes
2
answers
346
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 ...
0
votes
1
answer
33
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 ...
0
votes
1
answer
313
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 ...
0
votes
2
answers
181
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 ...
0
votes
1
answer
185
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?
0
votes
1
answer
52
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/...
0
votes
0
answers
195
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 ...
2
votes
0
answers
204
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 ...
0
votes
1
answer
619
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.
2
votes
1
answer
59
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.
1
vote
1
answer
144
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 ...
1
vote
1
answer
410
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 ...
1
vote
0
answers
121
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, ...
0
votes
1
answer
247
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 ...
0
votes
1
answer
39
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 (...
0
votes
1
answer
98
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 ...
0
votes
2
answers
565
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. ...
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
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 ...
0
votes
1
answer
222
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 ...
0
votes
1
answer
71
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 ...
1
vote
0
answers
153
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 ...
1
vote
1
answer
991
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-...
3
votes
2
answers
167
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 ...
1
vote
3
answers
271
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/...
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 ...
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 " after saving.
Example:
<a href="{{store direct_url="contact"}}">
This breaks ...
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 ...
1
vote
0
answers
157
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:...
0
votes
2
answers
214
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:
1
vote
1
answer
560
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....
3
votes
3
answers
2k
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 ...
0
votes
1
answer
106
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/...
2
votes
1
answer
68
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....
2
votes
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] ...
2
votes
2
answers
34
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:...
2
votes
1
answer
613
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 ...
2
votes
1
answer
118
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:...
1
vote
1
answer
949
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/...