Questions tagged [pub]

The tag has no usage guidance.

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

How to call image in js from pub/media in magento 2.4

i want to call image in js from pub/media, if i'm using this code it will call image from pub/static not pub/media. $("."+keypay).prepend('<img data-bind="attr: { src: require.toUrl('...
0
votes
1answer
39 views

set magento 2.4.3 website root directory ubuntu

I have upgraded Magento v2.3.3-p1 to Magento v2.4.3 successfully. When I ran the website it's showing 404 Notfound error, due to not set the Document Root. When I ran the website http://localhost/...
0
votes
0answers
38 views

Magento 2.4.2-p1 local setup on Windows system - issue with _view folder in pub directory

I am trying to setup Magento 2.4.2-p1 on local windows system and running following commands after code and database setup: php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/...
0
votes
0answers
53 views

Magento 2.4 move to /pub/ folder, redirects in .htaccess now prepend /pub/. Where are rewrite rules supposed to go now?

So, I have a rewrite rule that is supposed to redirect an old URL to a new one: RewriteRule ^(.*)/-/manufacturers/(.*)$ $1/manufacturers--$2 [R=301,NC] This is located in the .htaccess for the domain (...
0
votes
0answers
20 views

"/home/vitalticks/public_html/pub/static/" cannot be used with directory "/home/vitalticks/public_html/pub/static/"

i had changed the php version from 7.2 t0 7.3 after i am getting below error and consuming the 100% CPU 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException): Path "/home/...
2
votes
0answers
14 views

Basic clarity on some magento default function

I had gone through a interview process. They fired some questions below which I don't know answers and couldn't find in google. The questions are below. How to create a object and why we need to ...
0
votes
1answer
110 views

JS files are not updating in Pub/Static Folder and JS files are also not listing in Source tab of crome in Magento 2

I am trying to change the code of JS file in my module but it's not updating in the pub/static folder. when am I checking the source tab of crome it's also not listing under it. I am following the ...
0
votes
0answers
117 views

Wrong URL for category image when root is set to pub directory

I want to use pub/ directory for security reasons as document root for Magento website but when i switch it, images for categories and for manufacturers (in product detail) are not displayed. I ...
0
votes
1answer
103 views

Magento2 images not loading

I am new to magento, I am building a store in this I have deployed the site in the domain.com/shop subfolder, now the problem is that the images are not loading in my site, I think it is due to ....
0
votes
0answers
55 views

File in Pub Directory Not Updating in Magento 2

I have updated a .js file in pub directory and run cache:flush. But when I open website/filename.js in browser and incognito browser, it still load the old file. The permission to pub directory is ...
1
vote
2answers
635 views

Module not generated in pub/ folder, Magento 2.3.3

Hello! I have Magento version 2.3.3. I run: bin/magento setup:upgrade bin/magento setup:di:compile bin/magento bin/magento setup:static-content:deploy -f And permissions for folders: But after ...
1
vote
1answer
973 views

Custom Javascript is not working in my core HTML file. Magento2

I'm trying to add some Javascript and Jquery in the core theme file which is located in magento\pub\static\frontend\magento\luma\en_US\Magento_Checkout\template\payment+methods\list.html <!-- /** ...