Skip to content

magento man

R9Host issues

Hello, this is the worst experience of my life with a hosting company nothing works not even support,could not log on to cPanel,WM or web… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1888287&goto=newpost

Magento 2 – Get name or alias of indice ElasticSearch Product and Category

Is there a way to know what is the name or alias of the index created in elastic search in a custom module? For example when i execute command line bin/magento indexer:reindex Magento change the names indices: colecciones_local_orlcas_default_thesaurus_20230112_201128 colecciones_local_orlcas_default_catalog_category_20230112_201126 colecciones_local_orlcas_default_catalog_product_20230112_201117… Read More »Magento 2 – Get name or alias of indice ElasticSearch Product and Category

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