M2.4.4, v1.0.2: Fix the compile issue

Created by Esther Nguyen, Modified on Thu, 29 Dec, 2022 at 11:15 AM by Esther Nguyen

ISSUE:

I have installed this new version (1.0.2) however it creates an issue when compiling:

syntax error, unexpected ')', expecting variable (T_VARIABLE)#0 /home/magento/htdocs/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/magento/h...')


SOLUTION:

We regret that the module has not supported converting from schema to XML format to match Magento 2.4.4


To resolve the issue, please follow our guide below:

- Delete the file app/code/Bss/ProductQuestions/Setup/InstallSchema.php

- Add the file app/code/Bss/ProductQuestions/ProductQuestions/etc/db_schema.xml (attached below)

- Edit the file app/code/Bss/ProductQuestions/Controller/Render/Questions.php:


If you need any further assistance, please feel free to contact us. We'd be happy to support you!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article