Support » Theme: Chaplin » Debug functions.php

  • Resolved citywizz

    (@citywizz)


    While updating the theme I got this bug Parse error: syntax error, unexpected ‘)’

    themes/chaplin/functions.php on line 357

    So I changed the code all over the register_sidebar() function to make it work again for
    Footer #1, Footer #2 and add_theme_support() on line 744

    ` // Footer #1
    register_sidebar(
    array_merge( $shared_args,
    array(
    ‘name’ => __( ‘Footer #1’, ‘chaplin’ ),
    ‘id’ => ‘footer-one’,
    ‘description’ => __( ‘Widgets in this area will be displayed in the first column in the footer.’, ‘chaplin’ ),
    )
    )
    );

Viewing 1 replies (of 1 total)
  • Theme Author Anders Norén

    (@anlino)

    @citywizz Thanks for posting! I mistakenly left trailing commas in the array_merge() args, which seems to result in parse errors in older versions of PHP but not newer ones, which is why I missed it in my local environment. It’s fixed in 2.1.1, which should be live shortly.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.