We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

Filter by
Sorted by
Tagged with
1
vote
1answer
705 views

error magento 2: FilesystemIterator::__construct(/var/www/html/pub/static/_requirejs/frontend/Magento): failed to open dir: Permission denied [closed]

I'm getting error when , going to clear cache from backend admin. 'flush static cache '( Preprocessed view files and static files) button only. Because of this error i'm not able to clear static ...
0
votes
1answer
105 views

cdn deploy static files magento - still deploying to “normal” directories

I'm trying to get my static files to be deployed in static.domain.com I have pointed my base url and secure base urls like below After I did - the website is trying to pull data from that location ...
1
vote
1answer
486 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/...
4
votes
2answers
4k 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 ...
2
votes
1answer
502 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 ...
2
votes
0answers
183 views

2.2 Faster way to regenerate css in developer mode

In developer mode, static files are mostly symlinked so making changes is immediately visible in frontend. However, when making changes to CSS this is not the case. The minimal files I have to ...
2
votes
2answers
139 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 ...
0
votes
1answer
3k 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
806 views

Dont remove pub/static content in setup:upgrade command

It is possible to keep pub/static folder as it is after run setup:upgrade command. Becuase I have multilanguage site and every time when we add new module I run upgrade command and run content deploy ...
1
vote
0answers
230 views

Adding Bootstrap RTL LESS to Magento 2 theme

I need to include bootstrap-rtl LESS files to my theme when using fa_IR locale. So I did: Add those downloaded LESS files to: app/design/frontend/<Vendor>/<Theme_Name>/web/i18n/fa_IR/...
2
votes
1answer
2k views

Magento 2.2 Build system

I trying to setup build system for setup:di:compile and setup:static-content:deploy based on official devdocs. Build system The build system compiles code and generates static view files for ...
0
votes
0answers
141 views

How to change the icon of toggle navigation link in magento2

Please check the screen shot I want to make close button on toggle navigation link.
0
votes
1answer
48 views

Deploying Static Content on M2 doesn't work

I am trying to deploy static content on my production site but I am receiving the error in the screenshot. Why is this occurring?
0
votes
3answers
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 ...
2
votes
1answer
348 views

Magento 2: Change only one static file

Sometimes I only need to change one static file, is it possible to do that? Example I have changes to: /static/versionxxxxxxxx/frontend/Superlove/custom/da_DK/Magento_PageCache/js/page-cache.js Can ...
19
votes
7answers
16k 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 ...
3
votes
1answer
4k views

Magento Developer mode not working - still trying to load pub/static

Enabling developer mode in magento is giving some errors for me, it is still trying to load all my static content. Ive disabled the "sign static content" option. Also, when I put my Magento ...
0
votes
1answer
69 views

Pub/static js path wrong in magento2 after install ebizmarts mage monkey plugin

Recently i have tried to install Ebizmarts_MageMonkey plugin in magento2. After install frontend not working properly. Got an error like some js missing. 404 not found error http://test.com/pub/...
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
2answers
3k views

how to speed up static content deploy for development

Especially after changing .html knockout js template files I have to always deploy static content with bin/magento setup:static-content:deploy <languages>. This makes development very slow. I ...
1
vote
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 php bin/magento setup:static-content:deploy if in developer mode. However, the only directory ...
0
votes
3answers
2k views

Is there a way to export static blocks and cms pages in mass from local to online?

I have a localhost version of Magento and another which is already in Hostgator. My changes on files I can ftp quick and easily, of course. But I would like to know if there is some faster way to "...
2
votes
1answer
1k views

Unable to find styles-l.css original path in custom theme

I want to add/modify some styles to styles-l.css, but i am unabl to identify the original path location, as i mentioned the below static content file path. pub/static/frontend/Smartwave/porto/en_US/...
4
votes
2answers
2k views

Knockout HTML template being cached

Does anyone know how to stop Knockout HTML templates from being cached (for dev purposes)? I don't have this issue with any other files (CSS, PHTML, XML, JS), it only happens with HTML templates. As ...
1
vote
3answers
11k 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 ...
0
votes
1answer
65 views

custom var in _module.less -> deploy problem

I have created my own theme, extending Magento/blank. In my own theme, I have included bootstrap among others, and removed the less files from the default theme (I'm not using stles-l.css or styles-m....
0
votes
0answers
287 views

Magento 2.1.3 static css files not generating

When I open the front end of my website it can't find different files and they are only css files not being found e.g. /pub/static/version1486733880/frontend/Meigee/blacknwhite/en_IE/css/styles.css I ...
2
votes
9answers
5k views

Magento 2.1.3 static content issue

I have installed Magento 2.1.3 , After that i reload the page, css and js not loading so, I remove pub/static content then, regenerate the static content, after that I checked css url path http://...
0
votes
2answers
2k views

Static files aren't deploying in developer mode

I am using Magento 2 (developer mode) and I just created a new theme, added a local-l.css to my /var/www/vendor/app/design/frontend/vendor/theme/web/css/source/local-l.css and when I refresh the ...
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 ...
0
votes
0answers
176 views

static deploy not taking correct files to Pub/Static folders

I've made an update to one of my scss files, and updated the corresponding css file, in the web/css folder of my theme but when I re-run static deploy for en_GB it's not taking the new changes forward,...
1
vote
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 ...
1
vote
1answer
532 views

CSS not load Magento 2

I installed a module, and then I uninstalled it. Since then I do not have CSS. I did not find the frontend nor the CSS but after running this: php bin/magento setup:static-content:deploy php bin/...
5
votes
4answers
11k 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:...
1
vote
1answer
385 views

automatic generation of dir/files under pub/static not working

automatic generation of dir/files under pub/static not working. When i google about this find that i have to delete that file in which i did change and then run below given command. php bin/magento ...
0
votes
1answer
112 views

Changed logo via config, changes not showing on frontend

I've changed the logo & copyright tagline via Content->Configuration->Edit->Header etc., then flushed the cache, rebuilt the indexes, even recompiled DI, yet the new logo and copyright ...
24
votes
6answers
25k 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 ...
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 ...
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 ...
2
votes
1answer
593 views

Change background color Magento 2 header panel and compile less on Staging server

In /app/design/frontend/MyThemeName/my-theme/web/css/source/_theme.less I added @header-panel__background-color: @color-green-green1; To change the background color of the header panel (I have a ...
0
votes
1answer
60 views

Undefined Index error when attempting to setup:static-content:deploy. How to fix?

What am I attempting to do here?: In the console I kept getting a message that says 404: unable to find styles-m.css. It finds styles-l.css and print.css but not mobile, no matter what I do. Google ...
2
votes
1answer
601 views

Images on custom module are not copied on pub/static

I did a custom module and added a custom css. All worked fine, but this css has some images linked directly like: background-image:url(./img/digit-sm.png);. And obviously has its folder img on the ...
2
votes
0answers
269 views

Magento2: Mixin is undefined on deploying static content

I have created several mixins in my custom theme within the file "_mixins.less", these work locally and are loaded properly from my other less files. However, when I want to deploy static content I ...
2
votes
2answers
96 views

Is static content ever stored in the di / generated folders?

I'm doing some theme development, which I am somewhat new to. I am making changes to some files, and I like to test if they can compile correctly, so I run the setup:static-content:deploy somewhat ...
2
votes
2answers
158 views

static content deploy issues

I'm having major issues with the static content deploy command because it doesn't give any errors but it isn't fixing my issue. Here is what my website looks like currently: Here are the results of ...
0
votes
2answers
195 views

I need help on deciphering a compilation error

I'm trying to perform a test compile, and I'm receiving a few errors during compilation. Here is a copy of the system.log file that gets generated: [2016-11-22 05:28:44] main.CRITICAL: ...
7
votes
1answer
2k views

Magento 2 setup:static-content:deploy symlinks

When removing all the pub/static files in Magento 2 and opening the homepage, the files are generated as symlinks. When using the command setup:static-content:deploy the files are copied, even after ...
1
vote
0answers
707 views

Magento 2 - Custom admin theme not working in production mode

I create a custom admin theme to override few admin template files. In developer mode theme work perfect, but when I turn on production mode and make: bin/magento setup: static-content: deploy then: ...
1
vote
3answers
3k views

Magento 2 no css/js loaded after setup:static-content:deploy

Magento is searching for files into below location,(one for example) localhost/magento2/pub/static/frontend/Magento/luma/it_CH/mage/calendar.css but after I run setup:static-content:deploy in pub/...
6
votes
2answers
2k views

Magento 2: Nginx pub/static not autogenerating, only works with command line static-content:deploy

I have tried many of the solutions from: Local installation of Magento 2 doest not generate files in the pub/static folder and similar posts: I am in developer mode (verified in command line, and I ...