buckaroo-it / Magento2_GraphQL

Repository containing the Magento 2 GraphQL plugin by Buckaroo
MIT License
1 stars 1 forks source link

installing errors #12

Closed raoulguillermo closed 2 years ago

raoulguillermo commented 2 years ago

Hi,

I tried installing the module but running into some errors. After running setup:di:compile i get the following error.

Class Buckaroo\Magento2\Model\Transaction\Status\ProcessResponse does not exist
Class Buckaroo\Magento2Graphql\Resolver\Cart\ProcessTransactionOutput\Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only.

Buckaroo magento 2 version 1.42

harli91 commented 2 years ago

Hello @raoulguillermo we made some changes in our main plugin that are not yet released into a version, a new version will be released soon, in the meantime you can use the "developer" branch of our m2 plugin to develop your application

raoulguillermo commented 2 years ago

Hi Ivascu,

How do i install the develop branche?

Buckaroo-Rene commented 2 years ago

@raoulguillermo ,

You just switch the branch from main to → develop and download/use that branch.

image

harli91 commented 2 years ago

Hi Ivascu,

How do i install the develop branche?

you can use git, first you need to remove the current plugin composer remove buckaroo/magento2, next you create a folder in app/code named Buckaroo then you clone our plugin in that new folder git clone https://github.com/buckaroo-it/Magento2.git, switch to developer branch using git checkout develop, finally you activate the plugin

php bin/magento module:enable Buckaroo_Magento2

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy

raoulguillermo commented 2 years ago

Ok i've tried installing. But i keep getting stuck. I have a clean magento 2 install. Should i install the graphql extension first? This seems to install the magento2 extension as well. If i just clone the both of them in the app dir. I also get errors.

Could you please tell me what the correct way of installing this version is? Along with the magento2 module?

harli91 commented 2 years ago

@raoulguillermo better if you install both plugins in app/code/Buckaroo using git clone, after cloning both repositories you should have 2 folders Magento2 and Magento2Graphql after that you enable both plugins php bin/magento module:enable Buckaroo_Magento2 Buckaroo_Magento2Graphql and you run di update php bin/magento setup:upgrade, ps don't forget to set branch in Magento2 to develop

raoulguillermo commented 2 years ago

Hi Ivascu,

I've done the above. But getting this error.

root@magento-2:/var/www/html# bin/magento setup:di:compile Compilation was started. Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 131.0 MiBClass 'Buckaroo\Magento2Graphql\Resolver\AbstractCartResolver' not found#0 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(136): require_once()

1 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass()

2 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract()

3 /var/www/html/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList()

4 /var/www/html/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation()

5 /var/www/html/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process()

6 /var/www/html/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\DiCompileCommand->execute()

7 /var/www/html/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()

8 /var/www/html/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()

9 /var/www/html/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun()

10 /var/www/html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun()

11 /var/www/html/bin/magento(23): Symfony\Component\Console\Application->run()

12 {main}

harli91 commented 2 years ago

@raoulguillermo make sure the graphQl plugin(folder) is named Magento2Graphql, php may not properly load the psr-4 classes if the folder is named incorrectly

raoulguillermo commented 2 years ago

@raoulguillermo make sure the graphQl plugin(folder) is named Magento2Graphql, php may not properly load the psr-4 classes if the folder is named incorrectly

That works! Thanks!