[Solved] Syntax Error – Unexpected ‘)’ While Installing Magento 2.4

[Solved] Syntax Error - Unexpected ')' While Installing Magento 2.4

The latest Magento 2.4 is released on July 28’20.

No doubt, any store owner will be prompted to download Magento 2.4.0 and install it to leverage the latest features like:

Not forgetting the 98 new features, 68 bug fixes, 50 security changes, and Php 7.4 support!

However, merchants are facing a syntax error – Unexpected ‘)’ while installing Magento 2.4.

Developers at Meetanshi immediately jumped on this error and here’s the solution:

Solution for Syntax Error – Unexpected ‘)’ while installing Magento 2.4:

Syntax Error - Unexpected ')' while installing Magento 2.4

If you witness the above error, open setup\src\Magento\Setup\Module.php file

At line number 81, remove the “,”  at last.

Your getConfig function code is as below:

That’s it.

Any doubts can be mentioned in the Comments section below.

You can simply skip this error and opt for Meetanshi’s Magento Upgrade Service to upgrade your store to the latest Magento 2.4.0 version.

Please share the solution with the Magento community via social media.

Thank you.

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

5
(based on 8 Reviews)

An expert in his field, Jignesh is a senior Magento developer at Meetanshi. His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover.

Leave a reply:

Your email address will not be published.