Parse error: syntax error, unexpected ')', expecting '(' in C:\xampp\htdocs\suitecrm\modules\ModuleBuilder\views\ on line 71

Hello. I’m very new at this.

I did the install and everything seems to be working. However, I’m in the Admin panel and inside of Studio to customize some modules. As soon as I click on Edit, I get this error.

I went to the files on this site and copied the update directly but it is still the same error.

The line of code looks like this:

function init($bean = NULL, $view_object_map = Array) // pseudo-constuctor - given a well-known name to allow subclasses to call this classes constructor

Can you please help with how to resolve???

Which version of SuiteCRM are you running? And what is your version of PHP?

Finally, you say you went to a site and copied a file? Where is that?

SuiteCRM 7.8.15

PHP version 7.2.2

I went to the original file located in the download. But when it gave me this error, I went to suitecrm support forum (here) and copied the file and tried it. Still gave me the same error.

Just fixed it. Array needed to have ‘array’ around it instead of just array without. Thanks for the reply!

Can you post the exact line that works, inside the forum’s “code” tags, so I can fix it for everybody? Thanks