• 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

    (@t-p)

    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.

    What version of PHP Are you running on Xamp?

    Thread Starter fernanf

    (@fernanf)

    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

    (@fernanf)

    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

    (@t-p)

    Is this MusicTheme a commercial theme?

    Thread Starter fernanf

    (@fernanf)

    I bought it from templatic.com site.

    • This reply was modified 6 years, 8 months ago by fernanf.
    Moderator t-p

    (@t-p)

    – 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. 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

    (@fernanf)

    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.