Title: Debug functions.php
Last modified: January 18, 2020

---

# Debug functions.php

 *  Resolved [citywizz](https://wordpress.org/support/users/citywizz/)
 * (@citywizz)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/debug-functions-php/)
 * 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](https://wordpress.org/support/users/anlino/)
 * (@anlino)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/debug-functions-php/#post-12339671)
 * [@citywizz](https://wordpress.org/support/users/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)

The topic ‘Debug functions.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/chaplin/2.6.8/screenshot.png)
 * Chaplin
 * [Support Threads](https://wordpress.org/support/theme/chaplin/)
 * [Active Topics](https://wordpress.org/support/theme/chaplin/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/chaplin/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/chaplin/reviews/)

## Tags

 * [register_sidebar](https://wordpress.org/support/topic-tag/register_sidebar/)

 * 1 reply
 * 2 participants
 * Last reply from: [Anders Norén](https://wordpress.org/support/users/anlino/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/debug-functions-php/#post-12339671)
 * Status: resolved