Okay
  Public Ticket #2591612
php errors
Closed

Comments

  • Nicowo01 started the conversation

    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

  •  471
    Alex replied

    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


  • Nicowo01 replied

    Hi,

    delete the trailing comma on the preceding lines (259, 343, 427)

    Nico

  •  471
    Alex replied

    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