Showing results for 
Search instead for 
Did you mean: 

Call to undefined method while installing

Call to undefined method while installing



So I'm trying to install Magento 2.x using the following command:

# php bin/magento setup:install

The installation goes perfectly till [Progress: 735/1385]. It returns me the following message:

[Progress: 735 / 1385]
Module 'Magento_CatalogSearch':
Enabling caches:
Current status:
layout: 1
block_html: 1
full_page: 1
Call to undefined method Magento\Eav\Api\Data\AttributeExtension::setIsPagebuilderEnabled()#0 /var/www/vhosts/ Magento\PageBuilder\Plugin\Catalog\Model\Product\Attribute\RepositoryPlugin->afterGet()
#1 /var/www/vhosts/ Magento\Catalog\Model\Product\Attribute\Repository\Interceptor->Magento\Framework\Interception\{closure}()
#2 /var/www/vhosts/ Magento\Catalog\Model\Product\Attribute\Repository\Interceptor->___callPlugins()
#3 /var/www/vhosts/ Magento\Catalog\Model\Product\Attribute\Repository\Interceptor->get()
#4 /var/www/vhosts/ Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes->setWeight()
#5 /var/www/vhosts/ Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes->apply()
#6 /var/www/vhosts/ Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch()
#7 /var/www/vhosts/ Magento\Setup\Model\Installer->handleDBSchemaData()
#8 [internal function]: Magento\Setup\Model\Installer->installDataFixtures()
#9 /var/www/vhosts/ call_user_func_array()
#10 /var/www/vhosts/ Magento\Setup\Model\Installer->install()
#11 /var/www/vhosts/ Magento\Setup\Console\Command\InstallCommand->execute()
#12 /var/www/vhosts/ Symfony\Component\Console\Command\Command->run()
#13 /var/www/vhosts/ Symfony\Component\Console\Application->doRunCommand()
#14 /var/www/vhosts/ Symfony\Component\Console\Application->doRun()
#15 /var/www/vhosts/ Magento\Framework\Console\Cli->doRun()
#16 /var/www/vhosts/ Symfony\Component\Console\Application->run()
#17 {main}

PHP Fatal error:  Uncaught Exception: User Error: Some transactions have not been committed or rolled back in /var/www/vhosts/ on line 4050 in /var/www/vhosts/
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler()
#1 /var/www/vhosts/ trigger_error()
#2 [internal function]: Magento\Framework\DB\Adapter\Pdo\Mysql->__destruct()
#3 {main}
  thrown in /var/www/vhosts/ on line 61

Any ideas on how to fix this issue? 


Re: Call to undefined method while installing

Hello @ricardobos936c,

Greetings to you!

You need to enter the following in the app/etc/config.php file.

 'Magento_CatalogPageBuilderAnalytics' => 1,
        'Magento_CmsPageBuilderAnalytics' => 1,
        'Magento_PageBuilder' => 1,
        'Magento_PageBuilderAnalytics' => 1,
        'Magento_PageBuilderAdminAnalytics' => 1,
        'Magento_AwsS3PageBuilder' => 1,

Enter this code and install it again. 


I hope this will help you.

If not, feel free to contact us.

If worked, click KUDOS and accept as a solution. 


Thank you!

Re: Call to undefined method while installing

Hi @namitapare2a78 ,


Thanks for the reply. The code you provided was already in the config.php file. Any other suggestions?

Many thanks, Ricardo




Created a new project using the composer. For some reason, after 6 hours of countless tries, it managed to install..