Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

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

Add static content to product view

I would like add some static text to product views on product-info-main and should be multi language compatible how would I do that? As I understand I can inject static-block content but somehow is ...
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
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 "...
0
votes
3answers
390 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] ...
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/...
0
votes
2answers
2k views

Error in Magento 2 when trying to deploy

I have this error: Fatal error: Class 'Locale' not found in vendor/magento/framework/Locale/Bundle/DataBundle.php on line 64 in Magento 2 when I try do use this command to clear the cached ...
0
votes
1answer
32 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 ...
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
36 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
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 ...
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 ...
0
votes
0answers
10 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:...
0
votes
0answers
15 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?
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/...
0
votes
2answers
75 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
196 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.
0
votes
0answers
452 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
98 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
1answer
143 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: ...
0
votes
0answers
20 views

Display content between set products on magento 2 category page

I was wondering if there would be a solution to display blocks, with content i can enter in the backend, between or after a set amount of products. I know i can display some static content at the top ...
0
votes
2answers
150 views

Uncaught Type Error in magento 2 and 404 error

I've been attempting to set up Magento 2 on a WAMP server and have ran into a few errors. My Magento UI doesn't look right and I have 2 errors in the error log (When you F12 the page). "Uncaught ...
0
votes
1answer
305 views

Unable to import custom less file in custom theme's modules in Magento2

I have created a custom theme in Magento 2 and I want to add _customvariables.less and _custommixins.less in all other less files. I have added these files in the following location. magento2/app/...
0
votes
2answers
262 views

Magento2 deploy static files overwrite instead of manually delete

When I run bin/magento setup:static-content:deploy it does not overwrite existing files but leaves them intact. This leads to the unpleasant situation that I have to clear static file before I ...
0
votes
0answers
60 views

Magento2 multiple webservers static directory [duplicate]

I'm trying to run Magento2 on multiple webserves behind a load balancer. So far I have sessions stored in database app/etc/env.php shared across webservers running the site in production mode The ...
0
votes
1answer
102 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 ...
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
136 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
47 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
1answer
65 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/...
0
votes
1answer
60 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
280 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 ...
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
174 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,...
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 ...
0
votes
1answer
58 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 ...
0
votes
2answers
193 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: ...
0
votes
1answer
298 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
740 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 ...
0
votes
1answer
358 views

Backend Admin 404 not found for jscolor.js

I recently did an upgrade, compile, reindex, flush, clean on my magento 2.0.7 instance. Everything is working fine except on the backend interface I am getting 404 not found on anything in the pub/...
0
votes
2answers
380 views

Image won't displayed on front end, but displayed in back end “Static Block”

I was adding static block on my website and insert the image, but the image won't displayed in front end, but in back end "static block" the image was displayed. This is the code : <img alt="...
0
votes
1answer
361 views

ko.getObservable is not a function in admin section

After updating may Magento2 instance to commit I am seeing the error ko.getObservable is not a function in the file events.js. I have performed and composer install, bin/magento update and bin/...