Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [permissions]

This tag is ambigouos. Use "file-permissions" for questions about permissions on the file system and "acl" (Access Control List) for permission management in the Magento admin panel

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Filter Product Collection while Using FPC

I'm working on a project right now with about 200k customers that are broken down into 2000 groups. We haven't used customer_group for this because of the large number. But because we have a ...
Gaurav Agrawal's user avatar
1 vote
1 answer
276 views

wysiwyg editor does not show all folder after upgrading to Magento 2.4.6

I just upgraded to Magento 2.4.6 from 2.4.0. The issue i am facing is the editor is not showing images folder in storage_root. It is just showing me two folder catalog/category and Wyswig folder. I am ...
Tisha Jhanwar's user avatar
0 votes
1 answer
280 views

How to use Grahql API with ACL resouce as Rest API?

We have a issue and want to limit permission each roles. Do we have any way to make Graphql can set permission roles as Rest API? EX: Admin token with roles "sales", they only access Graphql ...
the light's user avatar
  • 718
0 votes
3 answers
80 views

Magento 2 - The requested class did not generate properly, because the 'generated' directory permission is read-only (Even though folder has 777)

I get "The requested class did not generate properly, because the 'generated' directory permission is read-only" during setup:di:compile even though the folder has 777 permission. I even ...
Black's user avatar
  • 3,379
1 vote
1 answer
193 views

Magento 2 nginx 404 error permission denied on setup

I have problem with setting up project the nginx is working fine and it is setup correctly, but it gives me 404 Not Found page when I try to access the url. The log: 2022/12/06 19:01:26 [crit] 285154#...
Kristijan Isajloski's user avatar
2 votes
0 answers
247 views

URL blocked by CORS policy No 'Access-Control-Allow-Origin' header in magento2

i am using google translate for my custom module.i am facing issue on console as per given image for reference i have given code of phtml file. console error : https://i.sstatic.net/0aBuC.png vendor\...
Sutariya Parth's user avatar
1 vote
0 answers
743 views

Magento2 : URL blocked by CORS policy No 'Access-Control-Allow-Origin' header

i am using google translate for my custom module.i am facing issue on console as per given image. i tried js code in root script it works but in front page it returns error. for reference i have ...
sandip memariya's user avatar
0 votes
1 answer
345 views

Show multiple media folders in admin panel m2.4.3-p2

After 2.4.3-p1 all folders that are not in wysiwyg or catalog/category are hidden in admin panel, there is official instruction how to add folder link. But we have multistore with more then 10 clients,...
Herecomes's user avatar
1 vote
1 answer
448 views

Append ACL resource under parent custom ACL resource from another module - "Could not create an acl object: Resource id already exists in the ACL"

Using two modules: Vendor_ModuleA and Vendor_ModuleB, where Vendor_ModuleA will be a backend main menu/ACL module. Other modules (in this example Vendor_ModuleB) should use the ACL menu of ...
CvRChameleon's user avatar
0 votes
0 answers
148 views

magento 2 run comand and error showing it

when I have run upgrade command or run deploy command and below type error coming it php -dmemory_limit=5G bin/magento setup:upgrade Error: Path "." cannot be used with directory "...
Jaydip Patel's user avatar
0 votes
1 answer
565 views

Magento 2 : 2FA - Google Auth Image Not working Properly in admin

I am using Magento 2 Instance and while login in to the admin panel I am facing 2FA - Google Auth Not Looking properly. Please check in below Image.
SURENDER SINGH's user avatar
0 votes
1 answer
501 views

Exception #0: Warning: include(/var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/view/attribute.phtml)

I am getting this error when I try to open to product catalog page in Magento 2.4.3 Custom theme? Exception #0 (Exception): Warning: include(/var/www/html/vendor/magento/module-catalog/view/frontend/...
Premkumar Suresh's user avatar
0 votes
3 answers
1k views

The directory "/.....public_html/generated/code/Magento" cannot be deleted Warning!rmdir(/.../public_html/generated/code/Magento): Directory not empty

Magento 2.4.2-p1 Smartwave Porto theme extensions from Amasty We have the Smartwave Porto theme. It came with Mageplaza Layered Navigation but an old version. Since we have some problems that I ...
Allysin's user avatar
  • 260
0 votes
1 answer
117 views

Magento or Apache 2 Permission?

I have a vm where I run ubuntu 18.04 , Apache 2 and Magento 2.3 every thing works fine but I think I'm doing something wrong with my permissions. So I have added to user 'dev' to the www-data group (...
BigJonna's user avatar
5 votes
1 answer
11k views

Magento 2 - The requested class did not generate properly, because the 'generated' directory permission is read-only

I got this issue after running bin/magento setup:di:compile $ bin/magento setup:di:compile Compilation was started. Interceptors generation... 4/9 [============>---------------] 44% 16 secs 300.0 ...
D Major's user avatar
  • 51
0 votes
1 answer
458 views

Magento 2: Permissions to add/edit customers is missing despite administrator role

In my Magento 2.4.2 shop I'm not allowed to add or edit customers. Although I'm logged in as an administrator. When opening the customer or sales page, all customer information are obfuscated. When I ...
michi-p's user avatar
  • 342
1 vote
1 answer
1k views

Magento 2.4.2 - Forbidden error on Nginx because of no index file in root directory

I am getting a 403 forbidden error while opening my website URL on the browser. After so much research I have found that the index file is missing from the Magento root directory and it is moved to ...
Hybrid Developer's user avatar
0 votes
1 answer
492 views

How to create a admin user role who can only see the product grid but not authorized to Edit or Add New product

Here I am trying create a role who can only see the product grid but not authorized to Edit or Add New product. But in User roles there only option to select full access to view and edit the products. ...
Praveen Negimani's user avatar
0 votes
1 answer
32 views

loca.xml - 0 bytes

I have downloaded the local.xml file from the directory: /htdocs/app/etc I've amended some code and attempted to re-uploaded the file back to the same directory, via FTP (Filezilla). However, the ...
user96386's user avatar
1 vote
1 answer
459 views

Catalog Category permissions keeps on changing automatically in Magento 2.4.1 Enterprise Edition

We are using Magento 2.4.1 Enterprise Edition. Suddenly our built-in catalog category permissions keeps on changing automatically (category permissions are set to "Deny"). which caused PLP ...
Bilal Amjad's user avatar
0 votes
2 answers
374 views

Magento 2 Admin user can't access Admin menus

I have a Magento 2.4.1 admin instance, I have created a Admin user through command line, But am able to login but cant access anything. how to to add this permission to admin user. I cant access ...
Praveen Negimani's user avatar
0 votes
1 answer
747 views

How to fix skip to content option in magento 2

I have issue with the magento2. When we open a website the skip to content appear before loading the complete website . How i remove this option. Image is atatched.
Ali's user avatar
  • 1
0 votes
1 answer
2k views

Can't download export file - The path is not writable

System - Data Transfer - Export I get this error when I try to download export csv file The path "/magento/var/export/catalog_product_20201008_102857.csv" is not writable. var/export ...
Yohan's user avatar
  • 1,610
0 votes
3 answers
326 views

Magento 2.3.4 - Best practice to do update magento files and modules without affect the website in Production Mode

If i update any modules or disable extensions my website showing an error message, i do following all the commands then coming back to normal, rm -rf var/di/* var/generation/* var/cache/* var/log/* ...
zus's user avatar
  • 165
0 votes
0 answers
39 views

i moved magento1 store from one server to another server, it is displaying only half page except for homepage and admin

i moved magento1 store from one server to another server, it is displaying only half page except for homepage and admin, phtml files and cms pages are not loading.
vinaysirige's user avatar
3 votes
1 answer
875 views

Class Magento\InventoryCatalogAdminUi\Observer\SourceItemsProcessor does not exist

I have upgraded Magento 2.3.5-p1 to Magento 2.4.0, after upgrade when I am running compile command php bin/magento setup:di:compile then it's showing me below error Compilation was started. Area ...
Banna Online's user avatar
  • 1,069
1 vote
0 answers
662 views

Magento 2 Nginx and ubuntu Post installation Permission and Ownership issue

I have installed Magento2 on AWS EC2 instance. I am using Nginx, Php-fpm and Ubuntu 18.04 for my magento2 installation. Magento 2 is installed successfully but whenever I run command php bin/magento ...
Jackson Wyss's user avatar
1 vote
2 answers
2k views

Any Drawback on running setup:upgrade, di:compile, static deploy everytime code level edit on Magento 2

Is it ok to run the following set of commands by default everytime I make a code level edit (layout edits, module creation, extension update) php bin/magento setup:upgrade php bin/magento setup:di:...
Shailesh's user avatar
  • 133
0 votes
3 answers
2k views

Magento2 - Running di:compile stops at 57% in magento 2.3.2

Class Magento\Framework\Mail\EmailMessageInterfaceFactory does not exist Class Vendor\Extension\Model\Mail\TransportBuilder\Interceptor generation error: The requested class did not generate ...
Rutu Shah's user avatar
0 votes
2 answers
132 views

Site load without css after Migrating from one server to another

After migrating my magento site from one server to another, I encounter the following problem: the site loads, but without styles (css), it is as if it could not access the file. here are the ...
brooll's user avatar
  • 31
0 votes
1 answer
1k views

Magento /pub/static is not writable - Permissions error

So I'm fairly new to Magento, in fact, it's my first time messing with Linux permissions. I've been asked to change a few things on a website, and I can't even pass through the permissions part. I ...
Pedro Ferreira's user avatar
1 vote
2 answers
1k views

Magento 2 setup - Incorrect permissions

After installing magento 2.3.5-p1 I get an exception on setup page (in web setup). PHP Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/magento2/var/page_cache" is not ...
Mikhaylo HODOVANIUK's user avatar
0 votes
1 answer
101 views

Add to cart functionality is not working for any product

my add to cart not working, its showing nothing in cart for 2 stores and for 1 store adding a default product everytime, doesn't matter which product we added, its showing this exception.... We can't ...
Bilal Amjad's user avatar
0 votes
0 answers
172 views

No CSS or JS in Magento 2.3.3 on Virtualbox/Vagrant in Windows 7 Host - Text File Busy

I have a Magento 2.3.3-p1 installed in VirtualBox/Vagrant guest on a Windows 7 host. The server setup is running Ubuntu 19.10 with Apache2, PHP 7.3 MYSQL, etc. Despite all my efforts I can only get ...
ezkirk's user avatar
  • 11
-1 votes
1 answer
491 views

what are the proper chmod settings for the Media folder?

Magento 1.9.x We were troubleshooting something and changed the permissions on the Media folder. What are the proper chmod permissions on Media, var and the log (in var) folder?
Allysin's user avatar
  • 260
0 votes
2 answers
335 views

I'm going crazy with the folder permissions! in magento 2

hello guys in my case when I want to run any command like 'bin/magento setup:upgrade && bin/magento cache:clean && bin/magento cache:flush ' or bin/magento setup:di:upgrade , it always ...
David montera's user avatar
0 votes
1 answer
148 views

chcon -R -t httpd_sys_rw_content_t /var/www/html/magento/ SAFE?

to fix an issue in Magento I found this solution here on Stackexchange: I used this command line in Putty: So after that I could fix the issue.
Jason Dana's user avatar
0 votes
1 answer
221 views

Permission on OpenLiteSpeed Server localhost with Magento 2

I'm using CentOS 8 as my OS on my laptop and currently running OpenLiteServer (lsphp73) and have been successfully installed phpmyadmin and magento 2.3.4. Then, it comes with a problem that everytime ...
Marbonka's user avatar
1 vote
0 answers
66 views

Change Action from Edit to View for product in magento 2 admin panel

I have different users with different user roles. I want to change the Edit option to View only for the users who have not added this product. see attach image How can I do that? Allowing Edit ...
Nafsss's user avatar
  • 760
0 votes
2 answers
434 views

How can I use ssh command using php script as root user?

I am working third party integration for which new files generating automatically when my code is running. But it required permission after creating the file. I want to give the permission as a ...
Vinod Kumar's user avatar
  • 2,065
0 votes
1 answer
389 views

Permanent solution for magento 2 permission issue after cache flush

Whenever i flush cache i have to give permission to the folder. what is the permanent solution for this issue.
Sayyed Hasan's user avatar
0 votes
0 answers
27 views

Error After Installing Website in magento 2 js

I just installed magento 2 and I come across a bug that won't let me get lost on my admin page i use : Nginx Php7.2 Varnish 4 and Percona Server on Debian 9 I believe the problem is in the ...
Leandro Barbosa's user avatar
1 vote
1 answer
107 views

Magento 1.9 - User Roles Permission return Fatal error

If i click System -> Permission -> Roles if i click any of roles return following error, Fatal error: Class 'Mage_Cmsmquickview_Helper_Data' not found in /home/abc/public_html/app/Mage.php on line ...
zus's user avatar
  • 165
2 votes
1 answer
375 views

How do I execute Magento 2 CLI commands using a custom script?

I had created a custom script which update my database. After completion of database update, I want to execute the Magento CLI commands by adding custom functions in my custom script. The script ...
IntraPersonalLearner's user avatar
1 vote
0 answers
81 views

Root taking ownership of generated files. Plesk CP

I hope someone here can offer me some guidence. I have recently switched all my accounts from cPanel / WHM to Plesk and part of this was an active development of a Magento 2.3.2 site. Since moving ...
Andrew's user avatar
  • 11
0 votes
1 answer
779 views

Magento 1 ACL - access denied even though user has ALL rights (not admin rights)

I added a new user which has ALL rights. However, he can't open the site in admin under Catalog -> Manage Attachments. URL: /fileuploader/adminhtml_fileuploader/index/key/ I already logged the ...
Black's user avatar
  • 3,379
0 votes
1 answer
139 views

Magento2 - Cron readiness check failure

Cron is not working properly showing error in /var/www/domain.com/var/log/update.log [2019-09-25 07:07:02] update-cron.ERROR: Cron readiness check failure! Found non-writable paths: /var/www/...
Ketan Borada's user avatar
  • 2,613
0 votes
0 answers
145 views

Magento 1.9 : How can I add a button in admin role edit form?

I need a custom functionality "Duplicate Role" in Admin > System > Permissions > Roles > Edit. How can I add an extra button in this form? Any help will be appreciated. Thanks in advance.
Radhu's user avatar
  • 179
0 votes
0 answers
34 views

Magento 1 : Is it possible restrict admin user view only selected store details by using observer or anything?

How can i restrict admin user view only selected store details by using observer or anything?
zus's user avatar
  • 165
2 votes
1 answer
676 views

Magento 2.3.2 : Site is down every time I install a new extension

Whenever I upload a new extension to my app/code folder, the site goes systematically down. I upload it using the magento user so there is no owner issue. I am in production mode. More specifically ...
Vincent Teyssier's user avatar

1
2 3 4 5 6