Extra Form
PHP PHP 7.2
CMS Rhymix 2.0

Rhymix 2.0.23 최신 패치를 git update 하였습니다.

아래와 같이 충돌이 발생했는데요.

 

중략

CONFLICT (content): Merge conflict in modules/board/board.model.php

중략

Automatic merge failed; fix conflicts and then commit the result.

 

<<<<<<< HEAD
<?php
/* Copyright (C) NAVER <http://www.navercorp.com> */

/**
 * @class  boardModel
 * @author NAVER ([email protected])
 * @brief  board module  Model class
 **/
class boardModel extends module
{
/**
 * @brief initialization
 **/
function init()
{
}

/**
 * @brief get the list configuration
 **/
public static function getListConfig($module_srl)
{
// get the list config value, if it is not exitsted then setup the default value
$list_config = ModuleModel::getModulePartConfig('board', $module_srl);
if(!is_array($list_config) || count($list_config) <= 0)
{
$list_config = array('no', 'title', 'nick_name', 'regdate', 'readed_count');
}

// get the extra variables
$inserted_extra_vars = DocumentModel::getExtraKeys($module_srl);

foreach($list_config as $key)
{
if(preg_match('/^([0-9]+)$/',$key))
{
if($inserted_extra_vars[$key])
{
$output['extra_vars'.$key] = $inserted_extra_vars[$key];
}
else
{
continue;
}
}
else
{
$output[$key] = new ExtraItem($module_srl, -1, lang($key), $key, 'N', 'N', 'N', null);
}
}
return $output;
}

/**
 * @brief return the default list configration value
 **/
public static function getDefaultListConfig($module_srl)
{
// add virtual srl, title, registered date, update date, nickname, ID, name, readed count, voted count etc.
$virtual_vars = array( 'no', 'title', 'regdate', 'last_update', 'last_post', 'module_title', 'nick_name',
'user_id', 'user_name', 'readed_count', 'voted_count', 'blamed_count', 'thumbnail', 'summary', 'comment_status');
foreach($virtual_vars as $key)
{
$extra_vars[$key] = new ExtraItem($module_srl, -1, lang($key), $key, 'N', 'N', 'N', null);
}

// get the extra variables from the document model
$inserted_extra_vars = DocumentModel::getExtraKeys($module_srl);
if(count($inserted_extra_vars))
{
foreach($inserted_extra_vars as $obj)
{
$extra_vars['extra_vars'.$obj->idx] = $obj;
}
}

return $extra_vars;

}

/**
 * @brief return module name in sitemap
 **/
public function triggerModuleListInSitemap(&$obj)
{
array_push($obj, 'board');
}
}

class xboardModel extends module
{
/**
 * @brief initialization
 **/
function init()
{
}

/**
 * @brief get the list configuration
 **/
public static function getListConfig($module_srl)
{
// get the list config value, if it is not exitsted then setup the default value
$list_config = ModuleModel::getModulePartConfig('board', $module_srl);
if(!is_array($list_config) || count($list_config) <= 0)
{
$list_config = array('no', 'title', 'nick_name', 'regdate', 'readed_count');
}

// get the extra variables
$inserted_extra_vars = DocumentModel::getExtraKeys($module_srl);

foreach($list_config as $key)
{
if(preg_match('/^([0-9]+)$/',$key))
{
if($inserted_extra_vars[$key])
{
$output['extra_vars'.$key] = $inserted_extra_vars[$key];
}
else
{
continue;
}
}
else
{
$output[$key] = new ExtraItem($module_srl, -1, lang($key), $key, 'N', 'N', 'N', null);
}
}
return $output;
}

/**
 * @brief return the default list configration value
 **/
public static function getDefaultListConfig($module_srl)
{
// add virtual srl, title, registered date, update date, nickname, ID, name, readed count, voted count etc.
$virtual_vars = array( 'no', 'title', 'regdate', 'last_update', 'last_post', 'module_title', 'nick_name',
'user_id', 'user_name', 'readed_count', 'voted_count', 'blamed_count', 'thumbnail', 'summary', 'comment_status');
foreach($virtual_vars as $key)
{
$extra_vars[$key] = new ExtraItem($module_srl, -1, lang($key), $key, 'N', 'N', 'N', null);
}

// get the extra variables from the document model
$inserted_extra_vars = DocumentModel::getExtraKeys($module_srl);
if(count($inserted_extra_vars))
{
foreach($inserted_extra_vars as $obj)
{
$extra_vars['extra_vars'.$obj->idx] = $obj;
}
}

return $extra_vars;

}

/**
 * @brief return module name in sitemap
 **/
public function triggerModuleListInSitemap(&$obj)
{
array_push($obj, 'board');
}
}
=======
<?php
/* Copyright (C) NAVER <http://www.navercorp.com> */

/**
 * @class  boardModel
 * @author NAVER ([email protected])
 * @brief  board module  Model class
 **/
class boardModel extends module
{
/**
 * @brief initialization
 **/
function init()
{
}

/**
 * @brief get the list configuration
 **/
public static function getListConfig($module_srl)
{
// get the list config value, if it is not exitsted then setup the default value
$list_config = ModuleModel::getModulePartConfig('board', $module_srl);
if(!is_array($list_config) || count($list_config) <= 0)
{
$list_config = array('no', 'title', 'nick_name', 'regdate', 'readed_count');
}

// get the extra variables
$inserted_extra_vars = DocumentModel::getExtraKeys($module_srl);

foreach($list_config as $key)
{
if(preg_match('/^([0-9]+)$/',$key))
{
if($inserted_extra_vars[$key])
{
$output['extra_vars'.$key] = $inserted_extra_vars[$key];
}
else
{
continue;
}
}
else
{
$output[$key] = new ExtraItem($module_srl, -1, lang($key), $key, 'N', 'N', 'N', null);
}
}
return $output;
}

/**
 * @brief return the default list configration value
 **/
public static function getDefaultListConfig($module_srl)
{
// add virtual srl, title, registered date, update date, nickname, ID, name, readed count, voted count etc.
$virtual_vars = array( 'no', 'title', 'regdate', 'last_update', 'last_post', 'module_title', 'nick_name',
'user_id', 'user_name', 'readed_count', 'voted_count', 'blamed_count', 'comment_count',
'thumbnail', 'summary', 'comment_status');
foreach($virtual_vars as $key)
{
$extra_vars[$key] = new ExtraItem($module_srl, -1, lang($key), $key, 'N', 'N', 'N', null);
}

// get the extra variables from the document model
$inserted_extra_vars = DocumentModel::getExtraKeys($module_srl);
if(count($inserted_extra_vars))
{
foreach($inserted_extra_vars as $obj)
{
$extra_vars['extra_vars'.$obj->idx] = $obj;
}
}

return $extra_vars;

}

/**
 * @brief return module name in sitemap
 **/
public function triggerModuleListInSitemap(&$obj)
{
array_push($obj, 'board');
}
}
>>>>>>> master


master가 최신이 맞는 것 같아 HEAD 삭제하고 master 만 남기려고 하는데 맞는 지 문의드립니다. 미리 감사드립니다.

  • profile

    해당 파일 님이 수정하셧거나 아니면 은연중에 수정된 파일이 되어 잇습니다 그래서 코어에서 고칠려니 문제가 되는겁니다. 공식 라이믹스 홈페이지 메뉴얼에서 해당 충돌에 대한 정보를 제공중에 잇습니다

     

    https://rhymix.org/manual/introduction/update

     

    소스수정이 잇는 경우항목을 보시길 바랍니다

  • profile profile

    람보님 감사합니다.

    이전 과정을 뺐더니 번거롭게 해드렸네요ㅠㅠ

     

    첨부 사진처럼 메뉴얼 참고하여 브랜치생성 후 merge하니 오류가 발생했어요.

    board.model.php 파일 수정한 적은 없는 것 같은데... 

    그래서 최신본을 남기려고 문의드렸어요(master 가 최신 내용인지).

    master가 코어 최신이면 HEAD 제거하려구요.

     

     

    conflict_20221116.png.jpg

  • profile profile
    죄송합니다. 해결은 됐습니다만.
    master 부분 제거하고 HEAD 부분 남기니 문제는 없는 데 정확하게 다시 확인해봐야겠습니다.
  • profile profile
    git branch 치면 어떻게 나오나요?
  • profile profile

    다 해결된게 아니네요ㅠㅠ

    관리자화면의 일부(설치된 레이아웃, 설치된 모듈 이쪽이)가 안되네요ㅠㅠ

    얼마전 설치한 레이아웃,모듈과 관련이 있는 듯 합니다. 다시 찾아봐야겠어요.

     

    1.png

  • profile

    master 쪽을 남기는 것이 맞을 것 같습니다만, 어디를 어떻게 수정해 놓으신 상태인지 알 수 없으니... 수정하신 기억이 없거나 수정 내역이 필요없다면 그냥 순정 버전의 board.model.php 파일을 서버에 업로드하고 그걸 커밋하시는 방법이 가장 확실합니다.

  • profile profile
    기진곰님 감사합니다.

    하나씩 남기고 해봤는데 master를 남기니 게시글로 안들어가지고,
    HEAD를 남기니 게시글은 되는데 관리자화면의 일부(설치된 레이아웃, 설치된 모듈 이쪽이) 클릭하니 오류가 나네요.ㅠㅠ
    다시 찬찬히 봐봐야겠어요.
  • profile profile
    말씀하신 부분으로는 추측이 잘 안되어서.. 적당히 master브랜치를 남기시거나 아니면 순정 코어를 git clone 을 다른 폴더에 하신다음 rsync -av 옵션으로 라이믹스가 깔린 곳으로 옮기는 방법도 알아보시기 바랍니다. (주의! 이방법을 사용하시면 코어 수정한 내용은 모두 초기화될 수 있습니다.)
  • profile profile
    아 감사드립니다. git 관련 책보며 공부하다가 조금 자신이 생겨 오늘 해봤는데 아직 더 공부해야겠어요ㅠㅠ
    error log들 다시 보고 조언주신 부분 참조해서 다시 해볼게요^^