Site logo

Archived topic

Child theme can't be activated

7 replies · Started by Morgan on April 29, 2021

Viewing posts 1–8 of 8

Something went wrong with my theme settings. I noticed that Generate Press is the active theme and not the child theme. I cant swith to child theme either: "A critical error has occurred on the site. Check the inbox for the site administrator's email for further instructions. Read more about troubleshooting in WordPress."

I have renamed the child theme.
Any ideas?

Hi,

Yes it has the correct template name.

Does it match the Theme name as well? You've mentioned renaming the child theme.

Hi,

Can you have a look? I have sent you credentials in the first post.

Hi there,

the naming looks correct - the one issue i can see is this function in your functions.php

function get_post_custom_values( $key = '', $post_id = 0 ) {
    if ( ! $key ) {
        return null;
    }
 
    $custom = get_post_custom( $post_id );
 
    return isset( $custom[ $key ] ) ? $custom[ $key ] : null;
}

The get_post_custom_values is a core WP function - you cannot redeclare that function. Try removing that function.

Hi David,

Thanks! That solved the issue. Hats off for world class support!

Glad to be of help.

This archived topic is closed to new replies.