Parse error: syntax error, unexpected '['

Hello, I’m trying to buy the template wordpress (
Flatsome) to you, but when I try to activate this template displays the following error:
Parse error: syntax error, unexpected ‘[’ in /home/autojune/domains/autojune.com/public_html/wp-content/themes/flatsome/inc/functions/function-custom-css.php on line 81

What is the solution for this error?

Hi @danprathuang,

Welcome to the forums! Please make sure that your PHP version is at least 5.4 or higher. Further theme requirements are either already provided in documentation, or can be obtained by contacting @UX-themes, the author of Flatsome theme:

Thanks,
Luca

1 Like

please any one can help?
after theme update:
Fatal error: Can’t use function return value in write context in /usr/www/users/salsasa/wp/wp-content/themes/enfold/header.php on line 6

Hi @EdwinLasso,

Unline @danprathuang, you seem to be using Enfold theme, you can contact their support here:

Thanks,
Luca

thank you :wink: