1
Every time I add a theme in Wordpress gives the following error:
Parse error: syntax error, Unexpected '[' in public_html/wp-content/themes/Styleshop/epanel/core_functions.php on line 9
Wordpress is in the newest version, in localhost the theme works perfectly but when I put on the server it gives this error.
Could anyone help me? I researched the error but found nothing related to core_fuctions.php
.
I had a similar problem when I made a theme for a client, I searched a lot, and I was able to solve, thankfully I was able to solve it fast, this error could be because of the UTF-8 with BOM. To Solve This, use Notepad++ and Switch from UTF-8 to UTF-8 NO GOOD
– Raphael Caldas
@Raphaelcaldas almost all text editors have this option
– Rafael Cavalcante
What’s on line 9 of your core_functios.php? Put the code to see us!
– Rafael Cavalcante