Questions tagged [static-content]
Denotes questions related to Static Content in Magento2.
181 questions
0
votes
0
answers
17
views
Why isn't the default behaviour for setup:static-content:deploy using " --jobs 1"?
I recently looked into how I could make my setup:static-content:deploy process faster. I then came across the --jobs flag.
This flag makes the process parallel, and even when you specify only --jobs 1,...
1
vote
0
answers
33
views
Magento 2.4.3 static content auto generation
I want to automatically generate static files on my magento 2.4.3 production server, is there an alternative for 'static_content_on_demand_in_production' => 1, in magento 2.4.3?
1
vote
0
answers
42
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 ...
2
votes
2
answers
58
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 ...
2
votes
2
answers
603
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.
...
1
vote
1
answer
568
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) ...
0
votes
1
answer
1k
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
798
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
419
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
1
answer
264
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
0
answers
271
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 ...
0
votes
1
answer
914
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.
1
vote
1
answer
214
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
0
answers
208
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
57
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
2
answers
769
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
2k
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
126
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
1
answer
2k
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-...
1
vote
3
answers
891
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/...
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 the ...
1
vote
0
answers
194
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:...
2
votes
1
answer
737
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....
0
votes
1
answer
128
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
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] ...