PHP Parse error: syntax error, unexpected ')' in wp-content/themes/artemis-swp/customizer/theme_customizer.php on line 260 PHP Parse error: syntax error, unexpected ')' in wp-content/themes/artemis-swp/customizer/theme_customizer.php on line 344 PHP Parse error: syntax error, unexpected ')' in wp-content/themes/artemis-swp/customizer/theme_customizer.php on line 428
I don't have this error on my side, can you please what is the change that you did in the code?
Kind Regards, Alex
New to WordPress? Don't want to deal with all the setup process? We can help you! Please check our list of additional services and let us know if there's anything we can do to help you!
The trailing comma should not raise errors starting with php 7.3. Most probably, that is why I did not have this error on my side.
Anyway, I made a code change in the latest theme update for each call of add_setting for customize separator and now it should be safe for older php versions as well.
Please update the theme and let me know if you notice any other issue.
Kind Regards, Alex
New to WordPress? Don't want to deal with all the setup process? We can help you! Please check our list of additional services and let us know if there's anything we can do to help you!
theme_customizer.php
I had to change this file at 3 places
PHP Parse error: syntax error, unexpected ')' in wp-content/themes/artemis-swp/customizer/theme_customizer.php on line 260
PHP Parse error: syntax error, unexpected ')' in wp-content/themes/artemis-swp/customizer/theme_customizer.php on line 344
PHP Parse error: syntax error, unexpected ')' in wp-content/themes/artemis-swp/customizer/theme_customizer.php on line 428
Hi,
I don't have this error on my side, can you please what is the change that you did in the code?
Kind Regards,
Alex
New to WordPress? Don't want to deal with all the setup process? We can help you!
Please check our list of additional services and let us know if there's anything we can do to help you!
SmartWPress - Envato Elite Author
Hi,
delete the trailing comma on the preceding lines (259, 343, 427)
Nico
Hi Nico,
The trailing comma should not raise errors starting with php 7.3. Most probably, that is why I did not have this error on my side.
Anyway, I made a code change in the latest theme update for each call of add_setting for customize separator and now it should be safe for older php versions as well.
Please update the theme and let me know if you notice any other issue.
Kind Regards,
Alex
New to WordPress? Don't want to deal with all the setup process? We can help you!
Please check our list of additional services and let us know if there's anything we can do to help you!
SmartWPress - Envato Elite Author