Skip to content

magento man

Get new instance of MagentoFrameworkAppResourceConnection or unset MappedTables before query

So I’m facing an error in my custom query. Multiple queries is being run to get category tree and for each category I’m mapping a table to temp table. example – // $this->resource is object of MagentoFrameworkAppResourceConnection $indexTable = $this->resource->getTableName(“main_table”);… Read More »Get new instance of MagentoFrameworkAppResourceConnection or unset MappedTables before query

Fatal error: Uncaught Exception: User Error:

Fatal error: Uncaught Exception: User Error: Some transactions have not been committed or rolled back in /Users/apple/Sites/magento24/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 4067 in /Users/apple/Sites/magento24/vendor/magento/framework/App/ErrorHandler.php:62 Stack trace: #0 [internal function]: MagentoFrameworkAppErrorHandler->handler(256, ‘Some transactio…’, ‘/Users/apple/Si…’, 4067, Array) #1 /Users/apple/Sites/magento24/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(4067): trigger_error(‘Some transactio…’, 256) #2 [internal… Read More »Fatal error: Uncaught Exception: User Error:

Magento 2 password upgrade command “bin/magento customer:hash:upgrade” Returns error: str_pad(): Argument #3 ($pad_string) must be a non-empty string

After migrating from Magento 1 to Magento 2.4.5 using the official migration-tool i’m having trouble logging in to customer accounts. Attempting to force the hash upgrade using the command “bin/magento customer:hash:upgrade” results in the following error: str_pad(): Argument #3 ($pad_string)… Read More »Magento 2 password upgrade command “bin/magento customer:hash:upgrade” Returns error: str_pad(): Argument #3 ($pad_string) must be a non-empty string

Magento 2 – Class not found

I always get this error if I try to load my site, even though the class does exist. PHP Fatal error: Uncaught Error: Class ‘Company\App\Observer\Frontend\Controller\ActionPredispatch’ app/code/Company/App/etc/frontend/events.xml: <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”> <event name=”controller_action_predispatch”> <observer name=”company_app_observer_frontend_controller_actionpredispatch_controller_action_predispatch” instance=”CompanyAppObserverFrontendControllerActionPredispatch”/> </event> </config> app/code/Company/App/Observer/Frontend/Controller/ActionPredispatch.php:… Read More »Magento 2 – Class not found

What is the cause of the error “Unable to process binding “template: function(){return getOptions().template }”

I am creating a custom content-type and when I add it to the page I receive the following error in the console: Message: getOptions is not defined ReferenceError: Unable to process binding “template: function(){return getOptions().template }” The component does not… Read More »What is the cause of the error “Unable to process binding “template: function(){return getOptions().template }”