Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

1
vote
0answers
209 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/...
0
votes
1answer
1k 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
132 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
44 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
1k 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 ...
1
vote
1answer
260 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 ...
14
votes
6answers
12k 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 ...
2
votes
1answer
3k 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
58 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
1k 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 ...
2
votes
2answers
2k 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 ...
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 ...
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
10k 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
55 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
255 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
2answers
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
166 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
527 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
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:...
1
vote
1answer
297 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
110 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 ...
21
votes
6answers
21k 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
1k 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
568 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
57 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
541 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
250 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
142 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
190 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
1k 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
666 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/...
5
votes
2answers
1k 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 ...
1
vote
1answer
660 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 ...
3
votes
2answers
1k views

Magento 2: Is deploying static content necessary in developer mode? [duplicate]

Some threads say compilation is not necessary in developer mode, what about static-content:deploy? When I working on magento 2 modules, I often have problems getting my changes updated in the front ...
1
vote
0answers
604 views

Magento 2 static files URL fail

after reading the official guide here Magento Guide I have setup my magento this way: I have created one website in english and one in spanish I have configured Apache this way <VirtualHost *:80&...
0
votes
1answer
291 views

CSS and JS not loading after installing Magento 2, setup:static-content:deploy shows error

I have recently installed Magento2. CSS and JS not loading after installing Magento 2. I have used composer to install. This magento 2 files I have taken by a checkout from a live website. Also the ...
0
votes
1answer
729 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 ...
3
votes
2answers
10k views

Fatal error: Class 'Locale' not found magento 2.0.2 [closed]

when I run this command static-content:deploy then I got the below error "PHP Fatal error: Class 'Locale' not found in /opt/lampp/htdocs/magento/magento2_1/vendor/magento/framework/Locale/...
1
vote
1answer
223 views

Magento 2 grunt:exec removes all static files

Magento 2 grunt exec:theme_name removes all static files, then adds only less files. Yesterday everything was working correctly, today suddenly it's not working. Any ideas how to fix it?
1
vote
2answers
461 views

setup:static-content:deploy needs to run very frequently [closed]

Why does my css keep breaking and none of the clicks works in Magento2 frequently, even without any changes done in any of xml files. Everytime I need to run php bin/magento setup:static-content:...
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 ...