Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running setup:di:compile fails due to syntax errors within module-catalog/Model files #97

Open
Antonio-Bennett opened this issue Jan 16, 2025 · 1 comment

Comments

@Antonio-Bennett
Copy link

Preconditions (*)

  1. Magento 2.4.5
  2. Install the extension

Steps to reproduce (*)

  1. Try running bin/magento setup:di:compile

Expected result (*)

  1. Compilation is successful

Actual result (*)

Repositories code generation... 1/9 [===>------------------------]  11% 1 sec 159.0 MiBsyntax error, unexpected ')', expecting variable (T_VARIABLE)#0 /var/www/magento2/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/var/www/magent...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Meta\\Catalog\\Mo...')
#2 [internal function]: spl_autoload_call('Meta\\Catalog\\Mo...')
#3 /var/www/magento2/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists('Meta\\Catalog\\Mo...')
#4 /var/www/magento2/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass('Meta\\Catalog\\Mo...', '/var/www/magent...')
#5 /var/www/magento2/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract(Object(RecursiveIteratorIterator))
#6 /var/www/magento2/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList('/var/www/magent...')
#7 /var/www/magento2/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation()
#8 /var/www/magento2/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process(Object(Closure), Object(Closure))
#9 /var/www/magento2/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\DiCompileCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/magento2/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/magento2/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\DiCompileCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/magento2/vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/magento2/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/magento2/bin/magento(23): Symfony\Component\Console\Application->run()
#15 {main}
@Antonio-Bennett
Copy link
Author

I made a patch file

Meta-For-Magento-Issue-97.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant