Extra Form
PHP PHP 8.2
CMS Rhymix 2.1

하나 고치고 나면 산 넘어 산이네요. 아래 에러들은 어떻게 수정해야 할까요? 이래저래 고쳐보려고 검색하고 노력은 했는데 제 능력 밖이라 염치 불구하고 여쭙니다. 여러 에러를 한꺼번에 올려 죄송하지만 도움 부탁드리겠습니다. ㅠㅠ

 

1번 에러)

Error #0 "Attempt to assign property "name" on null" in files/faceOff/138/layout.html on line 519

 

{@$member_config=MemberModel::getMemberConfig();$identifierForm->name=$member_config->identifier;}

 

2번 에러)

 Attempt to read property "navbar_search" on null

 

<li cond="$li->navbar_search!='N'" class="dropdown" id="dropdown-toggle-search" cond="$layout_info -> root_search!=='n'">

 

3번 에러)

Warning: Undefined property: stdClass::$r_Demo

 

 <a href="{$layout_info->section_0_button_url}" class="btn btn-primary btn-xl page-scroll" cond="!$layout_info -> section_0_button && $layout_info -> r_Demo!=='n'">Home</a>

 

4번 에러)

Warning: Attempt to read property "socialxe_login" on null

 

<div class="form-group socialxe-login" cond="$li->socialxe_login == 'Y'">

 

5번 에러)

Warning: Undefined property: stdClass::$act

 

 <div cond="$act!=='dispMemberSignUpForm' && $act!=='dispMemberInfo' && $act!=='dispMemberScrappedDocument' && $act!=='dispMemberSavedDocument' && $act!=='dispMemberOwnDocument' && $act!=='dispMemberFindAccount' && $act!=='dispCommunicationFriend' && $act!=='dispCommunicationMessages'" cond="$act!='IS'" >

 

 

감사합니다.

 

  • profile
    확신은 없는데 이런 식으로 해보면 어떨까요?

    1. 해당 부분을 찾아 다음과 같이 수정
    $identifierForm->name = array_first($member_config->identifiers);

    2. 해당 부분을 찾아 다음과 같이 수정
    cond="($li->navbar_search ?? '')!='N'"

    3. 해당 부분을 찾아 다음과 같이 수정
    cond="!$layout_info -> section_0_button && ($layout_info -> r_Demo ?? '')!=='n'"

    4. 해당 부분을 찾아 다음과 같이 수정
    cond="($li->socialxe_login ?? '') == 'Y'"

    5. 인용하신 코드 위에 아래 코드를 추가
    {@ $act = Context::get('act');}
  • profile ?

    오!!! 역시 윤삼님!!!! 정말 감사드립니다. 천사가 이런 느낌이었네요 ^^

    맨 위에 한 개 남기고 모두 해결됐습니다. 이놈이 아직도 홈페이지 로딩을 방해하고 있네요. 제발 마지막이길... ㅎ

    이렇게 적용했는데 에러메세지는 같습니다. 제가 제대로 한 것이 맞는지 모르겠습니다.
    {@$member_config=MemberModel::getMemberConfig();$identifierForm->name = array_first($member_config->identifiers);}

  • ? profile
    해당 코드에 앞서 $identifierForm이 정의되지 않았나요?
    $identifierForm->iden에 값을 넣어주기 전에
    $identifierForm = new stdClass;
    라고 선언해줘야 할 것 같아요.
  • profile ?
    정의되지 않았었네요. 천사를 넘어 구세주시네요. 정말 감사합니다. 모두 해결되어 웹사이트가 이제 출력이 되고 있습니다.