차일드 테마 문제 답변부탁드릴게요~

안녕하세요

질문좀드리겠습니다

현재 워드프레스 thebuilt테마를 사용하고있구요 

사이트주소는 ss4588.com 입니다

사이트 수정중 뭔가 오류가 발생했는지 차일드테마가 망가졌다고 나오면서 인식이안되서 

부모테마를 임시로 설정해놓긴했는데요

차일드테마를 활성화 시키면 아예 백지화면이 나옵니다

자식테마 style.css 내용은  아래와같습니다

/* 
Theme Name: Child of TheBuilt
Template: thebuilt
Theme URI:
Description: Child theme based on themename
Author: Your Name
Version: 1.0
*/

@import url(http://fonts.googleapis.com/earlyaccess/nanumgothic.css);

*,body,html,body *{font-family:'Nanum Gothic';}
*{display: none;}

===========

자식테마 functions.php 내용은 아래와같습니다

<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
            wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css' );
            wp_enqueue_style( 'themename-parent-style', get_template_directory_uri() . '/style.css', array('bootstrap'));
            wp_enqueue_style( 'themename-child-style', get_stylesheet_directory_uri() . '/style.css', array('bootstrap'));
}

=====
지금까지 차일드테마 잘 사용하다가 ftp로 수정하다보니 이렇게 된것같네요

바쁘시겠지만 답변부탁드리겠습니다

감사합니다

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
  • 글쎄요. PHP Notice는 오류라기보단 알림에 가까워서 크게 문제가 되지는 않을겁니다.

    PHP Notice 문제는 테마 제작자에게 문의를 해보셔야 할 듯합니다.

    차일드 테마가 망가졌다는 문제는 다른 문제 같군요.

    차일드 테마 파일중 불필요한 파일을 제거하고, 처음부터 하나하나 체크 해보셔야 할 듯하군요.

  • 답변감사합니다

    디버그확인해 보니 아래와같이 뜨는데요

    뭘 수정해야할까요?

     

    [24-Jan-2017 06:46:41] PHP Notice:  Trying to get property of non-object in /home/hosting_users/ss4588/www/wp-content/plugins/thebuilt-theme-addons/inc/shortcodes/visual-composer/vc-row-custom.php on line 8
    [24-Jan-2017 06:46:41] PHP Notice:  Trying to get property of non-object in /home/hosting_users/ss4588/www/wp-content/plugins/thebuilt-theme-addons/inc/shortcodes/visual-composer/vc-row-custom.php on line 16
    [24-Jan-2017 06:46:41] PHP Notice:  Trying to get property of non-object in /home/hosting_users/ss4588/www/wp-content/plugins/thebuilt-theme-addons/inc/shortcodes/visual-composer/vc-row-custom.php on line 17
    [24-Jan-2017 06:46:41] PHP Notice:  Trying to get property of non-object in /home/hosting_users/ss4588/www/wp-content/plugins/thebuilt-theme-addons/inc/shortcodes/visual-composer/vc-row-custom.php on line 18
    [24-Jan-2017 06:46:41] PHP Notice:  Undefined property: KBContentList::$resource in /home/hosting_users/ss4588/www/wp-content/plugins/kboard/class/KBContentList.class.php on line 211
    [24-Jan-2017 06:46:43] PHP Notice:  Trying to get property of non-object in /home/hosting_users/ss4588/www/wp-content/plugins/thebuilt-theme-addons/inc/shortcodes/visual-composer/vc-row-custom.php on line 8
    [24-Jan-2017 06:46:43] PHP Notice:  Trying to get property of non-object in /home/hosting_users/ss4588/www/wp-content/plugins/thebuilt-theme-addons/inc/shortcodes/visual-composer/vc-row-custom.php on line 16
    [24-Jan-2017 06:46:43] PHP Notice:  Trying to get property of non-object in /home/hosting_users/ss4588/www/wp-content/plugins/thebuilt-theme-addons/inc/shortcodes/visual-composer/vc-row-custom.php on line 17
    [24-Jan-2017 06:46:43] PHP Notice:  Trying to get property of non-object in /home/hosting_users/ss4588/www/wp-content/plugins/thebuilt-theme-addons/inc/shortcodes/visual-composer/vc-row-custom.php on line 18

    ========

    아래는 해당 vc-row-custom.php 파일소스입니다

    <?php

    // VC [vc_row] - Onepage location feature
    $locations = get_nav_menu_locations();

    if($locations) {
        $menu = wp_get_nav_menu_object( $locations[ 'primary' ] );
        $menu_items = wp_get_nav_menu_items($menu->term_id);
    } else {
        $menu_items = Array();
    }

    $onepage_menu_items_arr["-- Don't use this Row as Onepage section --"] = "0";

    foreach ( (array) $menu_items as $key => $menu_item ) {
        $title = esc_html($menu_item->title);
        $url = $menu_item->url;
        $onepage = esc_html($menu_item->onepage);

        if($onepage == 'on') {
            $onepage_menu_items_arr[$title] = esc_url($menu_item->url);
        }
    }

    $attributes = array(
        'type' => 'dropdown',
        'heading' => "Use as Onepage section",
        'param_name' => 'row_onepage_id',
        'value' => $onepage_menu_items_arr,
        'std' => "0",
        'description' => "Select link from main menu that will scroll down page to this Row content. This link should be checked as Onepage link in 'Appearance > Menus' first."
    );

    vc_add_param( 'vc_row', $attributes );

  • 참고로, 차일드 테마의 style.css 파일에는 아래 정보만 있어도 됩니다.

    /* 
    Theme Name: Child of TheBuilt
    Template: thebuilt
    */

  • 올려주신 내용으로는 원인을 모르겠군요;;

    워드프레스 디버그 모드를 활성화 해서 어떤 오류 메시지가 나오는지도 봐보세요.

    워드프레스의 wp-config.php 파일에서

    define('WP_DEBUG', false); -> define('WP_DEBUG', true);

    이렇게 수정해주시면 디버그 모드가 활성화 됩니다.

    오류 내용도 올려주세요~

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기