Skip to content Skip to main menu Skip to utility menu

HTTP 500 Error when activating child theme

Home Forums GovIntranetters HTTP 500 Error when activating child theme

This topic contains 3 replies, has 3 voices, and was last updated by Neal Martin Neal Martin 11 months, 2 weeks ago.

  • Author
    Posts
  • #2678
    Neal Martin
    Neal Martin
    Participant

    I’m wanting to create a child theme for our GovIntranet installation. I have set up the minimum WordPress requirements for a child theme (folder created, style.css file with requisite comment). I can see it as an available theme in the WordPress Manage Themes page. When I activate the child theme in the WordPress Manage Themes page I get an internal server 500 error on any page of the site. I tried adding a blank functions.php file. Same error message. I am able to fix it by using a MySQL GUI to change the theme back to the original. I have tried enqueuing the parent style.css and the style.css from my child theme in functions.php and get the error as well. Is there something else I need to enqueue?

    I am running GovIntranet Theme Version 4.27.4 and WordPress version 4.6. PHP 7.05 on Windows Server 2008R2 using IIS 7.5.

  • #2679

    Stuart Brameld
    Participant

    following with interest, as we’re looking to do the same

  • #2692

    Luke Oatham
    Keymaster

    V4.28 should now support child themes!

    I’ve tested this with just a style.css file in the child theme.

    Please let me know how you get on with this.

  • #2721
    Neal Martin
    Neal Martin
    Participant

    I updated to V4.30.1 and was able to activate a child them with only a blank style.css file in the child theme. Thank you! Interesting to me is that I was expecting with a blank style.css file in the child theme that it would only use the default browser stylesheets. But it pulled in the parent styles without having to enqueue them or do an @import in the child theme style.css. That works for me!

    Sorry that it has taken so long to reply to the thread. In the US here we’ve had a holiday and I’ve been trying to catch up on all my duties.

You must be logged in to reply to this topic.