Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

Filter by
Sorted by
Tagged with
4
votes
4answers
359 views

Css not working after Magento 2 installation on AWS

I've installed Magento 2 on AWS, however, the admin page is appearing like this: What should I do? Thanks!
0
votes
0answers
20 views

How to get the deployed version number via PHP?

I need to use the updated deployed version of static files in my module. How could I get it?
1
vote
2answers
2k views

Magento 2 -All thumbnails not display

I installed Magento in XAMPP, and the installation is fully complete. However, when I go to Fontend and Backend, the loading is very long, also all the thumbnails crash. I tried install again, but the ...
36
votes
20answers
144k views

Magento 2 CSS and JavaScript not loading from correct folder

I am attempting to install and run Magento 2 on WAMP on a Windows 7 machine with little success. After jumping through the many and various hoops to get the site to load I am now faced with 404 ...
0
votes
1answer
18 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
0answers
11 views

(URGENT) SM Market Theme is not displaying strings properly

for my Magento 2 website I am using the SM Market Theme. Everything was fine with the strings. Then I enabled the in-line translation. Simultaneously I reinstalled an extension (Multi Vendor ...
1
vote
1answer
794 views

Flush static files cache on production mode

There is something about Magento2 that troubles me so much. When I have a website on production mode and I need to make a simple image change how I can do it? I thought changing the image via FTP ...
0
votes
1answer
7k views

Unable to retrieve deployment version of static files from the file system

I asked my hosting site to update PHP so that I could configure Payzone to Magento 2. It seems that it may have upset something as when I try to go on the website, magento admin or File zilla I get an ...
0
votes
2answers
27 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. ...
2
votes
1answer
754 views

Magento 2 static deploy en_US argument invalid on XAMPP

I've cloned a working magento 2 repo, done composer install and when I'm trying do do: setup:static-content:deploy I get the error: [InvalidArgumentException] en_US argument has invalid value, please ...
0
votes
3answers
1k views

Magento 2.0 Static Content Deploy PHP Fatal Error

INSTALLED MAGENTO 2.0 IN FOLDER on UBUNTU 16.10 SAME CSS ISSUE AGAIN... cd /var/www/html/store sudo php bin/magento setup:static-content:deploy PHP Fatal error: Uncaught Error: Call to undefined ...
1
vote
1answer
803 views

Cellspacing and cellpadding doesn't apply to tables in WYSIWYG editor in Magento 1.x

In one of my client's websites(Magento CE 1.9.2.4), the product description needs to have a table structured content with cellspacing and cellpadding applied. Now when he tries to apply that style to ...
0
votes
1answer
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
0
votes
1answer
69 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
1answer
32 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 ...
3
votes
10answers
6k views

Magento 2.1.3 static content issue

I have installed Magento 2.1.3 , After that I reload the page, css and js are not loading so, I remove the pub/static content. Then regenerate the static content, after that I checked css url path ...
5
votes
1answer
2k views

Magento 2 - Unable to resolve the source file for image

I have created an image and have uploaded this to my theme/web/images folder. I have then ran the following: php bin/magento setup:static-content:deploy However I cannot get the image to show on ...
0
votes
1answer
19 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
3answers
277 views

Pub Folder Not Updating

I've had this issue with my Magento 2.2.3 installation where nothing gets updated in the pub folder. So every time I re-deploy, product images don't get re-populated, and no CSS changes will go ...
3
votes
4answers
8k views

Custom theme - styles-m.css failed to open stream: No such file or directory

When setting up a new custom theme that has Magento/blank as a parent, we were able to deploy static assets locally but deploying to our staging site failed with an error. [Magento\Framework\...
21
votes
15answers
35k views

Missing write permissions in directory pub/static when run bin/magento setup:upgrade

The day before, I updated a new module and it was working normally. Now, when I run bin/magento setup:upgrade, I receive the below Exception. I tried setting permissions to 777 (or 770) for the pub ...
0
votes
1answer
792 views

Magento 2 custom Theme no css and products loaded in frontend

I created a new Template based on the Blanco/Luma theme as pointed out in several howto's as in this topic) Strange thing is that the css and the products (and images) which are available do not load ...
4
votes
3answers
6k views

Magento 2: Static files are present but shows 404

I installed Magento 2 in my local environment and executed each command: php bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento ...
0
votes
3answers
387 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 ...
1
vote
0answers
15 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 ...
2
votes
1answer
159 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 ...
4
votes
6answers
6k views

Magento 2 How to make magento not to cache static content of Checkout module?

I'm modifying the checkout process, every time I edit a html file or a javascript file, I must use the command magento setup:static-content:deploy because the html or javascript is cached by magento. ...
2
votes
3answers
2k views

Styles are not loading after removing pub/static and run setup:static-content:deploy in Magento 2

I have been facing strange issue, as the part moving modifications in static content. we removed pub/static and deployed setup:static-content:deploy. After doing this, files are generated properly in ...
3
votes
2answers
76 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 ...
0
votes
1answer
47 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-...
0
votes
0answers
13 views

How to create cookie free domain for magento 1.9 [duplicate]

In GTMetix I have checked "Use cookie free domian" the result is 0, So how can I set up that static content like Images, CSS, Js in magento1.9 . static content delivery is very slow on my domain. ...
1
vote
4answers
12k views

Magento2: Wrong path of static contents

I know so many others have asked the same question but still no reliable ans is available. Suddenly my site is hitting the wrong path of static content (CSS/JS/IMAGES) because of this my site is not ...
1
vote
3answers
41 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
1answer
47 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:...
0
votes
2answers
69 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:
5
votes
5answers
13k views

There are no commands defined in the “setup:static-content” namespace

There are no commands defined in the "setup:static-content" namespace. Did you mean one of these? setup setup:config setup:cron setup:db-data setup:db-schema setup:db setup:di setup:...
10
votes
3answers
2k views

Use “ifconfig” to conditionally add CSS assets

Is there any way to use ifconfig in Magento 2 to conditionally add CSS assets, similar to Magento 1? Here's an example from Magento 1: <action ifconfig="config_path/group/field" method="addItem"&...
1
vote
4answers
2k views

Magento 2 checkout not loading on production environment

Magento 2 local development installation is working fine, however the production installation has some issues regarding the checkout. Certain files are not loaded, resulting in an endless spinning ...
0
votes
0answers
18 views

Magento 2 multistore Catalog Product CONTENT - EDIT & SAVE - CONTENT stays always DEFAULT

We had to upgrade to Magento 2.2.9 recently. It is a multi-language store, with DE and EN content. (store-view) Product descriptions in CATALOG-PRODUCTS-CONTENT are DE in DE-store and EN in EN-...
2
votes
2answers
2k 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 ...
2
votes
2answers
1k views

Magento 2: Static content signing

What is the use and benefit of static content signing in Magento 2 ? Is it recommended to disable it from backend ?
34
votes
7answers
45k views

Magento 2: How can I deploy my theme only

I was using this for deploy the content but it is taking too much time. php bin/magento setup:static-content:deploy then I figure out adding the language make fast but it still deploy all the ...
2
votes
2answers
3k views

Magento2 developer mode doesnt generate static files on demand

I am running Magento 2 locally in developer mode After installing i would not expect to have to run php bin/magento setup:static-content:deploy if in developer mode. However, the only directory ...
0
votes
1answer
213 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
0answers
38 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:...
1
vote
0answers
108 views

Same content (language) for multiple countries (store views)

I'm trying to implement an e-commerce site (using Magento 2) that has the following requirements: be available in N countries (eg http://example.com/country_code/ ) with X languages share the same ...
0
votes
1answer
9k views

Latest css changes not get updated in pub/static folder - magento 2.0.1

I installed magento 2.0.1 and working in developer mode.Now the problem is whenever I change css its not get reflect into pub/static folder . I could refer this Magento2: Re generate css file in pub/...
0
votes
0answers
66 views

Use relative URL's for static content in Magento 2

Is it possible to use relative URL's in Magento 2? So change links like https://www.domain.com/my-product-title to /my-product-title. And also use relative URL's for javascript and css references?
1
vote
1answer
121 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....
23
votes
7answers
20k views

Strange Error when running setup:upgrade after module installation

I have tried to install wyomind google shopping and have the following error when running bin/magento setup:upgrade. [UnexpectedValueException] Unable to retrieve deployment version of static files ...