Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

Filter by
Sorted by
Tagged with
0
votes
1answer
76 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
8k 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/...
1
vote
1answer
583 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 ...
2
votes
1answer
603 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
0answers
14 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?
2
votes
1answer
633 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 ?
0
votes
2answers
32 views

Magento 2 - Site not loading properly in Developer mode

I am working on M2 and I set M2 developer mode.My site home page works fine but the other pages not loading.Just showing errors/warnings on inner pages. Screenshot
0
votes
1answer
30 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
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 ...
16
votes
7answers
14k 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 ...
1
vote
1answer
694 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 ...
1
vote
3answers
65 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
1answer
39 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
2answers
838 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 ...
0
votes
1answer
737 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
3k views

After changing default theme to custom theme contents and blocks missing

While developing custom theme when initialized my new theme from content -> theme -> selected my own theme after that my site content are missing. But when i select some dropdown menu i can able to ...
2
votes
1answer
22 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....
0
votes
3answers
298 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] ...
4
votes
6answers
5k 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
2answers
20 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:...
1
vote
4answers
2k views

product images missing after installing extension

When I am installing some extension in Magento 2 using PHP bin/magento then after doing that then my site has a problem which is the all the images including product and everything appears to be ...
3
votes
3answers
5k 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\...
2
votes
1answer
453 views

static-content:deploy not working

I'm overriding a core JS file in my module. When I run php bin/magento static-content:deploy and refresh the page the JavaScript does not seem to change. I started tracking the issue. I found ...
31
votes
7answers
37k views

magento2: 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 ...
0
votes
2answers
68 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/...
0
votes
0answers
432 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 ...
0
votes
1answer
2k 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 ...
1
vote
1answer
150 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 ...
1
vote
1answer
41 views

Magento2 : Why static content isn't generated properly?

I have seen so many answers related to this question but nothing resolved my issue , this is the issue I have cleared cache , pub/static , generated , var/cache , var/view_preprocessed, setup:...
1
vote
1answer
151 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/...
0
votes
0answers
189 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.
32
votes
15answers
118k views

Magento 2 CSS and JavaScript not loading from correct folder

I am hoping that someone on here can help. 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 ...
1
vote
3answers
95 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 ...
1
vote
2answers
110 views

How to edit file in app/design/frontend without having to redeploy static content in Magento2?

Using Magento2, version 2.19 We are editing below file: app/design/frontend/xx/xxxxx/Magento_Newsletter/templates/subscribe_popup.phtml How can I show the changes to this file in the frontend of ...
2
votes
1answer
31 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? ...
3
votes
1answer
291 views

Magento 2 - CMS Content Won't Save

I'm having a crazy issue where I'm trying to copy over CMS content and it seems that when there are certain words, the content does not save. It just refreshes the admin page and brings me back to ...
2
votes
3answers
753 views

Magento CSS Not Loading Error

I have tried every suggestion that is out there but im still getting this error In my config data they are figured as: i have tried the solutions none of them are working im still getting the same ...
5
votes
3answers
10k 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:...
2
votes
1answer
239 views

Upgrade to 2.2.6 missing static JS files

When I upgraded my Magento 2.2.2 to 2.2.6. I got one critical error in pub/static missing one file named trim-input.js "pub/static/version1540806968/frontend/{...}/{...}/pl_PL/mage/trim-input.js" ...
2
votes
2answers
40 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....
1
vote
1answer
428 views

Magento 2 | deploy static content error

I got this error when running setup:static-content:deploy on Magento 2.1.8: Compilation from source: /microcloud/domains/vampm2/domains/mydomains.co.uk/http/vendor/magento/theme-frontend-blank/web/...
0
votes
1answer
92 views

Magento 2 - Minified static files not used

I enabled the setting to minify and merge JS & CSS. When I run static-content:deploy it does generate files with a .min.(css|js) appendage and the file contents are minified. However, when I load ...
0
votes
2answers
2k 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 setup:static-content:deploy if in developer mode. However, the only directory under static is ...
3
votes
2answers
3k views

Error while sending QUERY packet on static-content:deploy

I get the following error when I use static-content:deploy -vvv. How can I remedy this? If it is an issue with SQL max_allowed_packet, I am on a shared server so cannot change this myself, but may be ...
22
votes
6answers
22k views

Static Content is not loading after upgrade

After upgrade from the Magento 2.1.0 to the Magento 2.1.3 (using composer) static content is not loading anymore. In the browser console I can see that all files is unavailable (404): I don't see ...
0
votes
1answer
131 views

Magento 2 static file paths incorrect after migration

After manually moving Magento 2.2.4 site to a Windows IIS server, the pages are blank. Only a few lines of HTML is loaded, and I can see in the body tag there is an incorrect static file path: ...
2
votes
1answer
62 views

Versioned Static Content not Being Compressed

On my live server my versioned content (the url containing the versioned number) is not returning the static files compressed. However when I check the literal path to the content, by removing the “...
2
votes
1answer
823 views

failed to open stream: No such file or directory for static-content deploy

I have recently added a new root source css file for magento storefront by putting it in default_head_blocks.xml throught below statement. <css src="css/custom.css"/> Now I ran upgrade command ...
3
votes
0answers
391 views

magento 2 custom email template image/logo not displayed

I am custom template for Magento 2 Created two new email template in admin backend order confirmation email template Shipment notification email template Both are sharing same header and footer ...
3
votes
2answers
327 views

Magento 2: What's the `Magento` in a Static Asset URL?

In Magento 2, a static asset URL from a module looks like this http://example.magento.com/static/frontend/Magento/blank/en_US/Pulsestorm_FrontendTutorial1/hello.js What's the Magento for between the ...