Questions tagged [pub]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

I didn't quite understand the use of the .user.ini and what is the difference between the one placed in root and the one located in pub

I just finished installing and updating magento2 now I have a doubt about this type of file. .user.ini memory_limit = 2G max_execution_time = 18000 session.auto_start = off suhosin.session.cryptua = ...
GerranoMargeno's user avatar
1 vote
0 answers
59 views

Magento x 2.4 get.php error

In var/log both in exception.log and in system.log I have this type of error that I don't know what is due and I have no idea how to debug it, can someone give me clarification on what is due and ...
GerranoMargeno's user avatar
0 votes
1 answer
213 views

Magento 2 Uncaught Error: Script error for "popper.js", needed by: jquery.bootstrap

We are using Magento 2.4.5-p1 We add popper.js via a custom module but in the browser console, it is still showing - GET `http://127.0.0.1/xyz/pub/popper.js net::ERR_ABORTED 404 (Not Found)` Does ...
sumeet bajaj's user avatar
  • 1,266
1 vote
2 answers
177 views

Update to 2.4.5-p1 deleted Php files in Pub Folder

I recently updated a local Shop to 2.4.5-p1. The update seems to have deleted all contents from my [Mageroot]/pub folder except for sub-folders. Notably this affected index.php. Is there any way to ...
Hurrpadurr's user avatar
2 votes
1 answer
539 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('...
Gifino Thoriq's user avatar
1 vote
1 answer
332 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/...
Bojjaiah's user avatar
  • 4,028
0 votes
0 answers
97 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/...
Gourav Yadav's user avatar
0 votes
2 answers
1k 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 (...
Just Some Guy's user avatar
2 votes
0 answers
40 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 ...
Ramesh KR's user avatar
  • 836
0 votes
1 answer
585 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 ...
Sarvesh Tiwari's user avatar
0 votes
0 answers
191 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 ...
Vojta Myslivec's user avatar
0 votes
1 answer
428 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 ....
adi's user avatar
  • 101
0 votes
0 answers
121 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 ...
Wira Xie's user avatar
  • 123
1 vote
2 answers
1k 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 ...
David Young's user avatar
1 vote
1 answer
2k 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 <!-- /** ...
Asad Khan's user avatar
  • 1,486