Page 1 of 1
New install problem - unexpected '['
Posted: Tue Jan 03, 2023 5:18 am
by tamascsorgo
Script URL:
Version of script: 3.4.2
Hosting company:
https://atw.hu/
What terms did you try when SEARCHING for a solution: unexpected '['
Write your message below:
new install immediately stopped with this message: Parse error: syntax error, unexpected '[' in /hesk/inc/common.inc.php on line 340
Thank you for your help in advance.
Kind regards,
Tamas
Re: New install problem - unexpected '['
Posted: Tue Jan 03, 2023 8:32 am
by Klemen
This means you are running an old unsupported version of PHP on your server.
Hesk 3.4 requires at least PHP 5.6
Re: New install problem - unexpected '['
Posted: Tue Jan 03, 2023 4:29 pm
by tamascsorgo
Thank you for your answer.
I thought that it can be a php version issue, but I hoped that it will work because on the sites they are written:
Hesk requires 5.3.0 >
https://www.hesk.com/knowledgebase/index.php?article=32
while ATW.hu provides 5.6 or higher >
https://atw.hu/atwiki/Milyen_PHP_verziokat_tamogatnak
Probably ATW.hu only provides this for paid users and for the free ones...
Thanks again
Re: New install problem - unexpected '['
Posted: Tue Jan 03, 2023 4:36 pm
by Klemen
It's an error in our article, sorry; the up-to-date system requirements are on the download page:
https://www.hesk.com/download.php
You can try using Hesk version 3.2.5 or older if you need PHP 5.3 support:
https://www.hesk.com/download-legacy.php
Re: New install problem - unexpected '['
Posted: Mon Sep 29, 2025 9:19 pm
by intellidata
I'm getting the same error, but on line 380. I'm using PHP`version 7.3
PHP Parse error: syntax error, unexpected '[' in E:\Home\Web\suporte\inc\common.inc.php on line 380
Please, help!
Thank you!!
Re: New install problem - unexpected '['
Posted: Tue Sep 30, 2025 6:52 am
by Klemen
If you have original, unmodified Hesk files, this error means your PHP is older than 5.4.0
You can check by uploading the phpinfo.php file to your Hesk folder, then opening it in your browser. The phpinfo file is here:
viewtopic.php?t=138