cancel
Showing results for 
Search instead for 
Did you mean: 

Call to undefined method while installing

Call to undefined method while installing

Hi,

 

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/WEBSITE.nl/magento2/vendor/magento/framework/Interception/Interceptor.php(146): Magento\PageBuilder\Plugin\Catalog\Model\Product\Attribute\RepositoryPlugin->afterGet()
#1 /var/www/vhosts/WEBSITE.nl/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Product\Attribute\Repository\Interceptor->Magento\Framework\Interception\{closure}()
#2 /var/www/vhosts/WEBSITE.nl/magento2/generated/code/Magento/Catalog/Model/Product/Attribute/Repository/Interceptor.php(23): Magento\Catalog\Model\Product\Attribute\Repository\Interceptor->___callPlugins()
#3 /var/www/vhosts/WEBSITE.nl/magento2/vendor/magento/module-catalog-search/Setup/Patch/Data/SetInitialSearchWeightForAttributes.php(103): Magento\Catalog\Model\Product\Attribute\Repository\Interceptor->get()
#4 /var/www/vhosts/WEBSITE.nl/magento2/vendor/magento/module-catalog-search/Setup/Patch/Data/SetInitialSearchWeightForAttributes.php(56): Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes->setWeight()
#5 /var/www/vhosts/WEBSITE.nl/magento2/vendor/magento/framework/Setup/Patch/PatchApplier.php(162): Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes->apply()
#6 /var/www/vhosts/WEBSITE.nl/magento2/setup/src/Magento/Setup/Model/Installer.php(1094): Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch()
#7 /var/www/vhosts/WEBSITE.nl/magento2/setup/src/Magento/Setup/Model/Installer.php(960): Magento\Setup\Model\Installer->handleDBSchemaData()
#8 [internal function]: Magento\Setup\Model\Installer->installDataFixtures()
#9 /var/www/vhosts/WEBSITE.nl/magento2/setup/src/Magento/Setup/Model/Installer.php(389): call_user_func_array()
#10 /var/www/vhosts/WEBSITE.nl/magento2/setup/src/Magento/Setup/Console/Command/InstallCommand.php(231): Magento\Setup\Model\Installer->install()
#11 /var/www/vhosts/WEBSITE.nl/magento2/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\InstallCommand->execute()
#12 /var/www/vhosts/WEBSITE.nl/magento2/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#13 /var/www/vhosts/WEBSITE.nl/magento2/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#14 /var/www/vhosts/WEBSITE.nl/magento2/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun()
#15 /var/www/vhosts/WEBSITE.nl/magento2/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun()
#16 /var/www/vhosts/WEBSITE.nl/magento2/bin/magento(23): 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/WEBSITE.nl/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 4050 in /var/www/vhosts/WEBSITE.nl/magento2/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler()
#1 /var/www/vhosts/WEBSITE.nl/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(4050): trigger_error()
#2 [internal function]: Magento\Framework\DB\Adapter\Pdo\Mysql->__destruct()
#3 {main}
  thrown in /var/www/vhosts/WEBSITE.nl/magento2/vendor/magento/framework/App/ErrorHandler.php on line 61

Any ideas on how to fix this issue? 

2 REPLIES 2

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

 

Edit:

 

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