Title: Child theme errors
Last modified: March 13, 2018

---

# Child theme errors

 *  [fernanf](https://wordpress.org/support/users/fernanf/)
 * (@fernanf)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/)
 * Hi everyone,
 * 1. In Child theme’s homepage some sections are not shown but they are in parent
   theme. For example, when I try to show a section in Homepage, the following error
   is shown:
    _“Warning: count(): Parameter must be an array or an object that implements
   Countable in C:\xampp\htdocs\Cover\wp-content\themes\MusicTheme\widgets\class-
   tmpl-image-gallery.php on line 106”_
 * **Question**: I am not sure but I think it is related to the parent theme’s configuration.
   How this problem could be resolved?
 * 2. Furthermore, there are other errors when you load the site using child-theme:
 * _Deprecated: Function create\_function() is deprecated in C:\xampp\htdocs\Cover\
   wp-content\themes\MusicTheme\functions\auto\_install\auto\_install.php on line
   422_
 * _Notice: Trying to get property ‘url’ of non-object in C:\xampp\htdocs\Cover\
   wp-includes\script-loader.php on line 1239 _
 * **Question**: What is the reason of these errors?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10067489)
 * to rule out any `MusicTheme` theme related issue, try switching to the unedited
   default Theme (Twenty Seventeen, etc.) for a moment using the WP dashboard).
 * If you don’t have access to your Dashboard’s Appearance page, access your server
   via FTP/ SFTP , or a file manager in your hosting account’s control panel (consult
   your hosting provider’s documentation for specifics on these), navigate to /wp-
   content/themes/ and switch to the default theme by renaming your current theme’s
   folder by adding "-old" to the end of the folder name. Alternately, you can remove
   other themes except the default theme (Twenty Seventeen, etc.). That will force
   your site to use it.
 *  [webcrawler2050](https://wordpress.org/support/users/webcrawler2050/)
 * (@webcrawler2050)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10067544)
 * What version of PHP Are you running on Xamp?
 *  Thread Starter [fernanf](https://wordpress.org/support/users/fernanf/)
 * (@fernanf)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10071275)
 * I’m not sure if I did it well. I renamed the folder _MusicTheme-child_ as _MusicTheme-
   child-old_ and with the MusicTheme-child activated, the website shows the same
   following error and the site without styles:
 * _Deprecated: Function create\_function() is deprecated in C:\xampp\htdocs\Cover\
   wp-content\themes\MusicTheme\functions\auto\_install\auto\_install.php on line
   422_
 * **Also, the version of PHP runs on Xampp is 7.2.0**
 * Could be it a problem with the current PHP version?
 * Thanks
 *  Thread Starter [fernanf](https://wordpress.org/support/users/fernanf/)
 * (@fernanf)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10071339)
 * Sorry, also the other two following errors indicated above are shown:
 * _Warning: count(): Parameter must be an array or an object that implements Countable
   in C:\xampp\htdocs\Cover\wp-content\themes\MusicTheme\widgets\class-tmpl-image-
   gallery.php on line 106_
 * _Notice: Trying to get property ‘post\_author’ of non-object in C:\xampp\htdocs\
   Cover\wp-content\themes\MusicTheme\widgets\class-tmpl-display-post.php on line
   211_
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10071407)
 * Is this MusicTheme a commercial theme?
 *  Thread Starter [fernanf](https://wordpress.org/support/users/fernanf/)
 * (@fernanf)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10071676)
 * I bought it from _templatic.com_ site.
    -  This reply was modified 8 years, 2 months ago by [fernanf](https://wordpress.org/support/users/fernanf/).
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10071706)
 * – For pro or commercial product support please contact the author directly on
   their site. They cannot support their customers here.
    – As the author is aware,
   commercial products are [not supported in these forums](https://make.wordpress.org/support/handbook/forum-welcome/#do-not-post-about-commercial-products).
   As you are their customer I am sure they will have no problem supporting you 
   there. Also, forum volunteers are not given access to commercial products, so
   they would not know why your commercial theme or plugin is not working properly.
 *  Thread Starter [fernanf](https://wordpress.org/support/users/fernanf/)
 * (@fernanf)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10071728)
 * The question is that I have not received an adequate response from the author
   and I wanted to know what the problem might be, specifically, to comment on it
   and be more accurate in my request.
    Thank you and I’m sorry.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Child theme errors’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [fernanf](https://wordpress.org/support/users/fernanf/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/child-theme-errors-5/#post-10071728)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
