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

Created by Esther Nguyen, Modified on Sun, 19 Apr at 10:54 PM by Support Agent

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:


For any further support, please don't hesitate to contact us at support@bsscommerce.com

We're always willing to support. If you need further our information, here is:


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Visit us to get more useful plugins: https://bsscommerce.com/magento-2-extensions.html 


Here to discover our extensions:

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