Questions tagged [directory]

The tag has no usage guidance.

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

How to setup magento coding standard for the Magento 2 version

I am trying to set the magento coding standard in the Magento 2 version. I followed this link: https://github.com/magento-ecg/coding-standard. When I check code sniffer for the directory path: /...
Manoj Jarial's user avatar
1 vote
0 answers
215 views

"Directory is not under storage root path magento 2

module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module....
moazzams's user avatar
0 votes
1 answer
312 views

How to get magento root file path in controller in Magento 2?

How to get magento root file path in controller in Magento 2 ? Like if my magento root file path is /var/www/html/magento in Controller file?
Prits's user avatar
  • 626
0 votes
1 answer
1k views

How to get product image full file path directory in magento 2?

I have a custom extension that needs the full path directory file of the product image not the URL of the product image, for example: /var/www/Mage2Dir/pub/media/catalog/product/d/i/base_image_product....
jojo's user avatar
  • 149
0 votes
1 answer
48 views

I get an error when I indicate the path to the Symlink 1.9

I am using the module Image Optimizer and I need to specify the media folder to optimize the pictures. But I don’t have a media folder for the project, there is only a Symlink to the directory /mnt/...
Alice's user avatar
  • 148
0 votes
1 answer
207 views

Magento 2.3 Cloud Enterprise - Not able to upload any picture/image at all (error messages)

I'm very new to Magento and I have a functional background. I have read and followed all Magento commerce functional manuals on how to configure the Backend (creating products, customers, adding ...
elodel's user avatar
  • 1
1 vote
1 answer
472 views

Error 552 Disk Quota Exceeded - But it is not

I needed to add a line of code to my htaccess file so I downloaded it by FTP using Filezilla to my local machine I now see that the size of the htaccess file on the server is now 0 while the one I ...
Magentohelp's user avatar
0 votes
0 answers
391 views

How to create custom module after installing Magento 2 Docker Image?

I have installed Magento docker Image and frontend, backend is working fine. The directory structure of Magento docker Image installed is: Now I am looking how to start my first module. I have these ...
Ajwad Syed's user avatar
  • 1,591
0 votes
1 answer
97 views

Error related to Framework in Magento 2 SSH CLI

I'm currently running a Magento 2 (2.2.7) site and I've been getting the following error in the CLI when I enter certain commands (usually to do with enabling/disabling modules). The directory "/...
CJNotts's user avatar
  • 392
0 votes
1 answer
44 views

Why does this require "..path" is returning a fatal error (PHP)?

my question is simple but I have not found a form to solve it. I am trying to include a library located on the magento's module which I am developing. $simple_excel_path = Mage::getBaseDir('code')."/...
Javi Torre Sustaeta's user avatar
4 votes
2 answers
3k views

How to get the image directory

I need to get image directory means full path. I get the image path from the following code $product = $this->productmodel->load($orderItem->getProductId()); $product->getThumbnail(); I ...
Sammu Sundar's user avatar
0 votes
3 answers
2k views

RuntimeException: Can't create directory

my website https://roofmegastore.co.uk/ is coming up with this error. 1 exception(s): Exception #0 (Magento\Framework\Exception\FileSystemException): Directory "/var/www/html/magento/pub/static/...
Moddy's user avatar
  • 15
0 votes
1 answer
360 views

Magento 2 Custom module installation time create media directory

I want to create media directory with 777 recursive permission on custom module installation time, So I have created createDirectory function in InstallSchema. But currently directory is created with ...
Himanshu's user avatar
  • 1,751
3 votes
0 answers
1k views

Magento2, add custom module files to pub/media directory [closed]

If we include files in our Magento2 custom module, that should be added to the pub/media directory...how do we go about ensuring they are added? Ive created the required media dir sub-directory via ...
UUDotCom's user avatar
4 votes
4 answers
3k views

Updating country name in magento 2

I need to change the name of country in magento store e.g. United Kingdom needs to be changed to Great Britain. How can I achieve this? I tried looking at the following tables ...
Prateek's user avatar
  • 308
1 vote
1 answer
53 views

How to delete folder after the order ends

Im new in Magento, I need to delete a file and its containing folder, which has a name generated by the following code: $order = Mage::getModel('sales/order')->load($id_order); $increment = $order-...
xanax's user avatar
  • 11
3 votes
3 answers
2k views

Check if Magento 2 is using pub directory

How can we check if the website is using pub directory or not, independent of its mode? Is there any Magento function present to check the root document?
Tejas Vyas's user avatar
0 votes
1 answer
222 views

Magento Localhost var directory XAMPP

Facing the following error in my 'magento localhost'. Tried creating a 'tmp' folder in the 'root directory' but is not working. Maybe I'm creating it in the wrong directory? Thanks
Sashin Pradhan's user avatar
14 votes
4 answers
15k views

Magento 2 : How to get Custom module's 'web' directory path/Get custom module image directory path

I have created a custom module in which I want to check if a (image)file exists in my view/frontend/web/images folder. I have checked this answer but in only shows how to get Magento's directory ...
John's user avatar
  • 863
28 votes
4 answers
53k views

How to get root directory path in a phtml magento 2?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface'); $mediaPath = $fileSystem->...
Rita Jose's user avatar
  • 1,842
20 votes
5 answers
63k views

How to get media directory path in a phtml file in magento 2?

Used the below method in order to get the media directory path, but it returns an error. $om = \Magento\Core\Model\ObjectManager::getInstance(); $directoryList = $om->get(\Magento\App\Filesystem\...
Rita Jose's user avatar
  • 1,842
1 vote
1 answer
1k views

In Magento 2.2 I got this open_basedir restriction in effect error

From composer.json Am I using the wrong version of Magento. and i am using PHP Version 7.0.15-0ubuntu0.16.04.4 Note: I'm trying to install a theme in it and this work fine on localhost but on ...
inrsaurabh's user avatar
  • 1,676
0 votes
1 answer
774 views

How to move test store to new directory or domain? [duplicate]

I am messing around with a test store so I can get my settings right and theme adjusted. My plan is to move from Bigcommerce to Magento 2.0, so I want to have it all ready to go before I move and "...
teamtrav's user avatar
3 votes
1 answer
3k views

Where are pages and blocks created in the admin section stored?

I have created blocks in the Magento Admin GUI as well as in the frontend/.../templates directory. Both have been tested and they work fine. My question are: Where do the blocks and pages that ...
Daniel Barenboim's user avatar
2 votes
1 answer
399 views

Magento 2 : How can I add an extra path to the DirectoryList

I want to be able to make Magento aware of an extra folder in my root called private_files. I thought I could do this by adding the following to my di.xml: <!-- Make Magento aware of an extra ...
Giel Berkers's user avatar
  • 12.2k
0 votes
2 answers
149 views

On click show/hide contents for brands list

I would like my brand directory to have a click event. So if a visitor clicks 'A' for example, all brands within A are shown. I have the below code which collates the brands - however, the script I am ...
YorkieMagento's user avatar
4 votes
2 answers
5k views

How to get Country ID from Country Name in Magento1.9.2.4?

I want to get country_id from the country name in Magento, Please suggest how can I achieve this. I found these database tables but they are not helpful: directory_country directory_country_region ...
Yogita's user avatar
  • 784
1 vote
1 answer
2k views

Does Magento 2 has a Fallback Directory as /tmp/magento?

I know that in Magento 1 the directory "/tmp/magento" was used as fall-back in case it existed. I would like to know if that is still the case in Magento 2.
hakre's user avatar
  • 2,821
2 votes
1 answer
2k views

Why is my 'magento' directory missing from lib/internal?

Apologies if this is a duplicate, not appropriate, etc. I have just installed Magento 2.0.0 and a lot of the documentation I am reading/watching mentions a 'magento' directory in lib/internal, but I ...
KillahB's user avatar
  • 145
2 votes
0 answers
3k views

Edit magento 2 order 'print' layout

So when u go to My Account -> My Orders and click on view order and then click Print Order then u see a PDF of the order that u just placed. Mine looks all messy : So I want to edit this. Does ...
CompactCode's user avatar
  • 2,447
0 votes
2 answers
3k views

How to save the PDF file into Magento root folder

$pdf = Mage::getModel('sales/order_pdf_invoice')->getPdf($invoicesSet); $this->_prepareDownloadResponse('invoice'.Mage::getSingleton('core/date')->date('Y-m-d_H-i-s'). '.pdf', ...
Ramesh's user avatar
  • 986
3 votes
1 answer
942 views

Magento 2 - discrepancy between documentation and theme files structure on github

I am creating a new theme and would like to start by duplicating the default blank theme and then modify it to become my new theme. When I checked the frontend developer guides, it indicated the ...
g5wx's user avatar
  • 681
1 vote
0 answers
422 views

404 in Nginx server after moving Magento Multistore from sub-domain to sub-folder

We have a Magento multistore with 3 stores. We need to move one store that is in subdomain to a sub-folder of another domain: From MyShop.MyDomain1.com to MyDomain1.es/MyShop/ We need to make this ...
CRMarketing's user avatar
0 votes
0 answers
46 views

_MACOSX folder in Magento directory

An old webshop of ours has a _MACOSX folder in its directory. When I backup the webshop it takes a very long time to backup _MACOSX folder. Probally because it is a whole copy of the files in the ...
BasR's user avatar
  • 43
1 vote
1 answer
375 views

1.9 CE - Set variable to either region or region_id if customer in USA

Appologies but new to PHP... Need to pass a value for 'state' to payment gateway which can be any string for non USA customers but must be two character code for USA (based on drop down list). '...
TerryYo's user avatar
  • 11