Sometimes you change a setting in Magento admin and save it, only to find the old value still there. The cause may actually be outside Magento. For large configuration forms, max_input_vars is one possible cause. By default, PHP accepts only…
Fixing The attribute ‘title’ is required but missing in acl.xml (Magento 2)
When creating a Magento 2 extension with an acl.xml file, you may encounter the error The attribute ‘title’ is required but missing . You can resolve it by adding a title attribute to your resource element:
|
1 2 3 4 5 6 7 8 9 10 11 12 |
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd"> <acl> <resources> <resource id="Magento_Backend::admin"> <resource id="Magento_Backend::stores"> <resource id="Vendor_Whatever::config" title="Foobar" sortOrder="90" /> </resource> </resource> </resources> </acl> </config> |
In this example,…
Forgotten Magento admin password?
No need to panic! If you have forgotten your Magento 2 admin password, you can create a new admin user from the command line (CLI). Go to your Magento 2 root directory and run:
|
1 |
php bin/magento admin:user:create --admin-user='nutzername' --admin-password='passwort123' --admin-email='nutzer@example.com' --admin-firstname='Ihr' --admin-lastname='Nutzer' |
After running the command (make…
Fixing Undefined array key 1234 in Eav.php on line 604 (Magento 2)
You may see the following message when opening a product in Magento 2 admin: Undefined array key 1234 in vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php on line 604 The ID can vary, but the cause is the same. Rebuilding the indexes with the following command,…
“Session size exceeded allowed session max size” problem solution (Magento 2)
You get the error main.WARNING: Session size of … exceeded allowed session max size of … when adding items to an order in the Magento 2 admin area? There is an easy solution to that problem, just run the following…
Unable to add products to an order in the admin (Magento 2)
If you cannot add products to an order from the Magento 2 admin area, run the following command in your Magento 2 root directory:
|
1 |
php bin/magento config:set system/security/max_session_size_admin 0 |
That should resolve the issue.
Changing the admin password directly in the database using SQL (Magento 1)
Use the following SQL statement to reset an administrator’s password directly in the database:
|
1 |
UPDATE `admin_user` SET `password` = MD5('NEUESPASSWORT') WHERE `username` = 'ADMINUSERNAME'; |
Changing the admin route for security reasons (Magento 1)
One step towards making your shop more secure is to change the default admin route from http://www.your-shop.com/admin to something more secure and less guessable. The route must be changed in app/etc/local.xml.
|
1 2 3 4 5 6 7 8 9 |
<admin> <routers> <adminhtml> <args> <frontName>your-new-backend-route</frontName> </args> </adminhtml> </routers> </admin> |
After adding that to your app/etc/local.xml file, clear…
Adding comments to fields in admin area (Magento 1)
It is possible and helpful to add comments to the Magento admin fields. Take a look at the following picture: To add a field and a comment, open your modules system.xml and add the below XML:
|
1 2 3 4 5 6 7 8 9 |
<some_thing translate="label"> <label>Test</label> <frontend_type>text</frontend_type> <sort_order>0</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <comment>Thats a comment!</comment> <some_thing> |