34
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.
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/...
32
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:...
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 ...
23
votes
Accepted
Magento 1.9.2.0: table "sales_flat_order_grid" contains extra space in customer's name value
In Magento 1.9.2 the middle name has been added to this column:
Source: https://github.com/OpenMage/magento-mirror/blob/magento-1.9/app/code/core/Mage/Sales/Model/Resource/Order.php#L93-L99
$...
22
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 ...
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;
}
}
...
19
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/...
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="...
18
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: ...
15
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\...
15
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 ...
14
votes
Accepted
Magento 2 admin login redirects to login page issue
I had the same issue. Solved it by deleting my cookies.
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.
...
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 ...
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 ...
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 ...
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/...
10
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',
...
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 ...
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 `...
9
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 ...
8
votes
Get admin path programatically
To get the Adminhtml Frontname in Magento local.xml try
Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
From etc/local.xml
<admin>
<routers>
<...
8
votes
Accepted
Add a field in `admin > system > configuration Sales`
You can add the new group in sales with following code.
Add it to your modules system.xml file.
<config>
<sections>
<sales>
<groups>
&...
8
votes
Accepted
Magento admin redirecting in loop
I found the cause for the issue.
It is due to enabling of SSL.
Use the below code in .htaccess for Apache server.
<IfModule mod_ssl.c>
SSLOptions StdEnvVars
SetEnv HTTPS "on"
</...
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
...
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.
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 ...
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(){
...
7
votes
Magento 1.9 Can’t login to admin panel!
Open your Magento installation directory. Locate and open index.php file.
Search for error_reporting(E_ALL | E_STRICT); code.
Comment it out like that:
/*error_reporting(E_ALL | E_STRICT);*/
And use ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
admin-panel × 693magento2 × 253
magento-1.9 × 143
admin × 85
adminhtml × 37
magento-2.1 × 36
magento2.3 × 36
error × 30
grid × 28
product × 24
adminform × 22
login × 21
backend × 20
magento-1.8 × 17
magento2.2 × 17
magento-1.7 × 16
customer × 16
module × 15
sales-order × 15
configuration × 15
admin-login × 15
category × 14
database × 13
orders × 12
attributes × 11