36 votes
Accepted

Magento 2: How to retrieve admin URI?

You can get it from app/etc/env.php file, You have to get frontname from this file and suffix in your base url. 'backend' => array ( 'frontName' => 'admin', ), Or php bin/magento info:...
Rakesh Jesadiya's user avatar
35 votes

Magento 2: How to retrieve admin URI?

You can get the details by below command in you Magento 2 instance. php bin/magento info:adminuri you can get the result like Admin URI : /kqasuydi Hope this is the simple and quick way to get.
Krishna ijjada's user avatar
34 votes
Accepted

Magento 2: How to disable Minify CSS JS setting?

Access your MySQL and use these commands: UPDATE `core_config_data` SET `value`='0' WHERE `path`='dev/js/merge_files'; UPDATE `core_config_data` SET `value`='0' WHERE `path`='dev/js/...
Rafael Corrêa Gomes's user avatar
27 votes

Error - Invalid Form Key

I had the same problem and could fix it by setting the correct web/cookie/cookie_domain and web/cookie/cookie_path values in the table core_config_data. Don't forget to clear all session and cookie ...
codephunk's user avatar
  • 370
24 votes

Magento 2: How to disable Minify CSS JS setting?

php bin/magento config:set dev/js/merge_files 0 php bin/magento config:set dev/js/enable_js_bundling 0 php bin/magento config:set dev/js/minify_files 0 php bin/magento config:set dev/css/...
Kazim Noorani's user avatar
23 votes

Refused to apply style "because its MIME type ('text/html') is not a supported stylesheet MIME type"

Recently had a very similar issue with a Magento 2 site. Managed to track down the issue to a very important .htaccess file missing in the pub/static folder on the server. It's unclear how this file ...
Aaron's user avatar
  • 331
22 votes
Accepted

After installing magento 2.3 admin login page cant open properly

Find: /vendor/magento/framework/View/Element/Template/File/Validator.php:139 find: foreach ($directories as $directory) { if (0 === strpos($realPath, $directory)) { return true; } } ...
Manoj Pal's user avatar
  • 1,037
19 votes
Accepted

How to change default logo of magento admin panel

There is no setting to change Magento's backend logo. If you want, you can change it by replacing at: <magento_root>/pub/static/adminhtml/Magento/backend/en_US/images/magento-logo.svg Note: ...
Mohit Kumar Arora's user avatar
19 votes
Accepted

In Magento 2, add link to admin grid values

I have just make Link and redirect it product detail page. Please check my answer and change as per your need. Create a actionsColumn in ui component xml like below : <actionsColumn name="...
Dharmendra Jadav's user avatar
16 votes

Log settings location of Magento 2

Unfortunately, those options are gone now in Magento. Regarding the visitor log, everything is logged via the \Magento\Customer\Model\Logger model and via events observers declared under \Magento\...
Raphael at Digital Pianism's user avatar
16 votes

Refused to apply style "because its MIME type ('text/html') is not a supported stylesheet MIME type"

The problem is caused due to the permission issue on the static files. To fix this issue, 1) Go to file path pub/static/ 2) Check whether .htaccess file is available (hidden file - Press cntrl+H ...
Sathishkumar's user avatar
14 votes
Accepted

Magento 2 admin login redirects to login page issue

I had the same issue. Solved it by deleting my cookies.
Rutger's user avatar
  • 156
12 votes

Magento 1.9 Can’t login to admin panel!

I had this problem too. Turned out sessions couldn't get written to var/session, even though the directory itself is set to 0777. Magento created session files, but they all remained zero bytes. ...
Giel Berkers's user avatar
  • 12.2k
12 votes

Error - Invalid Form Key

I used these queries and could login again DELETE FROM core_config_data WHERE path='web/cookie/cookie_domain'; DELETE FROM core_config_data WHERE path='web/cookie/cookie_path'; and please make sure ...
phanvugiap's user avatar
12 votes

admin backend icon fonts missing

Open up app/etc/di.xml find the path Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink and replace it with Magento\Framework\App\View\Asset\MaterializationStrategy\Copy Note: Remove ...
Subhranil Jana's user avatar
12 votes

Refused to apply style "because its MIME type ('text/html') is not a supported stylesheet MIME type"

I had the same issue this morning. I updated Sales email templates, then suddenly admin pages stopped working. The problem was solved when I re-deployed the assets for admin pages. I run these ...
Yas Nakano's user avatar
11 votes
Accepted

Where is the admin path located in database?

I don't think Magento 2 admin path is stored in the database. You can find the randomly generated path in the app/etc/env.php file, e.g.: 'backend' => array ( 'frontName' => 'admin_1ai8c5', ...
Raphael at Digital Pianism's user avatar
11 votes

Error on Admin login - Magento 2.1

I just wasted a day on this and eventually figured out that NO, the certs are not the problem. Composer is the problem. /home/alpinewi/m2.alpinewines.co.uk/magento2/vendor/composer/composer/src/...
iphigenie's user avatar
  • 1,719
10 votes
Accepted

warning hash() unknown hashing algorithm sha256 when try to access admin in magento 2.3.0

1)Open localhost/phpmyadmin or 127.0.0.1/phpmyadmin which certainly gives you an error. 2).To fix this, restart server to start the service of PHPMYADMIN. 3).if you are on local server, open your ...
zuber bandi's user avatar
  • 1,052
10 votes
Accepted

Magento 2 - Add custom js in admin product edit

I did some efforts on this and I think this solution is much better and easy to implement Add XML file in a custom module app\code\Vendor\Module\view\adminhtml\layout\catalog_product_edit.xml File ...
Shoaib Munir's user avatar
  • 9,394
9 votes
Accepted

Magento 2 Admin Page Error: Your current session has been expired

Find path admin/security/session_lifetime in core_config_data table If it's present then set its value to 86400 If that path is not present then add it with value 86400 INSERT INTO `...
Mukesh Chapagain's user avatar
8 votes
Accepted

admin backend icon fonts missing

It seems that some css and fonts files are not generated properly. You need to do the folowing Remove pub/static Remove var/cache Remove var/composer_home Remove var/generation Remove var/page_cache ...
Shaheer Ali's user avatar
  • 2,355
8 votes
Accepted

Error on backup utility in Magento2 admin

From the Magento root directory run: php bin/magento support:utility:paths This will generate var/support/Paths.php file and solve this error.
brentwpeterson's user avatar
8 votes

Error on Admin login - Magento 2.1

Put disable-tls:true in composer.json file, as in following : "config": { "use-include-path": true "disable-tls": true }, this is because of ssl Source.
Alam Zaib's user avatar
  • 199
8 votes

how to stop cron job runing in magento 2

You can by running cron remove command: php bin/magento cron:remove It will only remove cron tasks from crontab but not the exact cron codes/files. If you wish to run the cron jobs again, you ...
fmsthird's user avatar
  • 4,592
8 votes
Accepted

Invalid form key while making an ajax request in Admin panel in Magento 2.3

Please try to update below your script code : <script type="text/javascript"> require([ "jquery" ], function($){ $('#submit-button').on('click',function(){ ...
Anas Mansuri's user avatar
  • 2,627
7 votes

Magento 2.1 : How to remove copyright from within the Admin panel (in the footer)?

Do not know what is the purpose for modification. You can modify this text in below template.(recommended by creating new module) /vendor/magento/module-backend/view/adminhtml/templates/page/...
Krishna ijjada's user avatar
7 votes
Accepted

Magento-2.1x need to add color picker on system config in admin pannel

Finally, I got the output, Need to do two changes, 1)In the Test\Color\Block\Color.php, Add the path in require.js , require(["jquery","jquery/colorpicker/js/colorpicker"], namespace Test\...
Vigna S's user avatar
  • 627
7 votes

Refused to apply style "because its MIME type ('text/html') is not a supported stylesheet MIME type"

Spend about an hour looking for solution to this problem... I had fresh Magento ver. 2.2.6 installation and had the same problem. None of the answer currently here worked for me. Finally a simple: ...
Greg's user avatar
  • 2,929
6 votes

Use of undefined constant CURLOPT_PROTOCOLS

You need to install php curl (apt-get install php5-curl or apt-get install php7.0-curl if you useung php7 ) and restart your web server for apache is service apache2 restart
kemeice's user avatar
  • 61

Only top scored, non community-wiki answers of a minimum length are eligible