https://gist.github.com/printminion/36bf4a948ac7e2faa23c
Showing posts with label magento. Show all posts
Showing posts with label magento. Show all posts
August 27, 2018
March 14, 2018
[SOLVED] Fatal error: Class 'Mage_Adminhtml_Helper_Help_Mapping' not found
After magento upgrade getting an error
Fatal error: Class 'Mage_Adminhtml_Helper_Help_Mapping' not found
Solution: set proper rights to the parent folder app/code/core/Mage/Adminhtml/Helper/Help
chmod a+x app/code/core/Mage/Adminhtml/Helper/Help
chmod a+r app/code/core/Mage/Adminhtml/Helper/Help
May 2, 2017
[SOLVED]Fatal error: Call to a member function setSaveParametersInSession() on a non-object
If you get "Fatal error: Call to a member function setSaveParametersInSession() on a non-object"
check if your config.xml is properly formatted and class names are between XML tags without new lines
Wrong:
OK:
check if your config.xml is properly formatted and class names are between XML tags without new lines
Wrong:
<blocks> <some_widgets> <rewrite> <adminhtml_some_info>ClassName </adminhtml_some_info>
</some_widgets> </blocks>
OK:
<blocks> <some_widgets> <rewrite> <adminhtml_some_info>ClassName</adminhtml_some_info></some_widgets> </blocks>
October 15, 2015
[SOLVED] "The state token is invalid or has expired. Please try again."
If you are getting the "The state token is invalid or has expired. Please try again." while building an Add-on for Google Drive Documents/Sheets with oAuth.
It is possible that your OAuth server just cuts off the part of the state token parameter.
In case of magento just increase the size of oauth callback_url columns from 255 to 512 chars.
ALTER TABLE oauth_consumer MODIFY callback_url VARCHAR(512);
ALTER TABLE oauth_consumer MODIFY rejected_callback_url VARCHAR(512);
ALTER TABLE oauth_token MODIFY callback_url VARCHAR(512);
Or via update script (something like that)
ALTER TABLE oauth_consumer MODIFY rejected_callback_url VARCHAR(512);
ALTER TABLE oauth_token MODIFY callback_url VARCHAR(512);
Or via update script (something like that)
$adapter = $installer->getConnection();
$tagsTableName = $installer->getTable('oauth/consumer');
$adapter->modifyColumn($tagsTableName, 'callback_url', 'VARCHAR(512)');
$adapter->modifyColumn($tagsTableName, 'callback_url', 'VARCHAR(512)');
$tagsTableName = $installer->getTable('oauth/token');
$adapter->modifyColumn($tagsTableName, 'callback_url', 'VARCHAR(512)');
$installer->endSetup();
Update: This issue has been fixed by me in magento 2
https://github.com/magento/magento2/pull/2124
Links:
- https://developers.google.com/apps-script/add-ons/
- https://developers.google.com/apps-script/reference/script/state-token-builder
Subscribe to:
Posts (Atom)