Extra Form
PHP PHP 7.4
CMS Rhymix 2.x

sejin7940_vote 모듈오류 관련 질문입니다.

 

php7.4 업그레이드 이후 모듈설정을 접속하면 아래와같이 서버 오류가 뜹니다

모듈에 있는 php 파일의 new Object - new BaseObject 교체를 해봤지만 오류가 나옵니다.

해결방법을 구하고 싶습니다.

 

Error #0 "Object of class ArrayObject could not be converted to string" in modules/sejin7940_vote/tpl/move_log.html on line 10

 

sejin7940_vote/tpl/move_log.html

 

<include target="_header.html" />
<!--%import("filter/delete_checked.xml")-->

<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == ''" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>



<form action="/" method="get"  class="search center x_input-append">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />

<select name="search_target" title="{$lang->vote_search_target_list}" style="margin-right:4px">
<!--@foreach($lang->move_search_target_list as $key => $val)-->
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->
</select>
<input type="search" name="search_keyword" value="{htmlspecialchars($search_keyword)}" style="width:100px; "/>

<button type="submit" class="x_btn x_btn-inverse">{$lang->cmd_search}</button>
<a href="{getUrl('','module',$module,'act',$act)}" class="x_btn">{$lang->cmd_cancel}</a>
</form>


<form method="get" action="/" onsubmit="return procFilter(this, delete_checked)" id="message_fo">
<input type="hidden" name="delete_type">
{@
$oDocumentModel= &getModel('document');
$oModuleModel = &getModel('module');
}

<table id="votedLogTable" cellspacing="0"  class="x_table x_table-striped x_table-hover">
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
<caption>문서번호를 클릭하면, 해당 글의 추천내역을 볼 수 있습니다. 문서제목 클릭시에는 해당문서가 팝업으로 뜹니다.</caption>
<thead>
<tr>
<th scope="col">{$lang->no}</th>
<th scope="col">대상모듈{$lang->target_module}</th>
<th scope="col">대상 카테고리</th>
<th scope="col">원본글</th>
<th scope="col">이동 방법</th>
<th scope="col">이동 모듈{$lang->move_module}</th>
<th scope="col">이동 카테고리</th>
<th scope="col">이동 날짜</th>
</tr>
</thead>
<tbody>
<!--@foreach($voted_log as $no => $val)-->
<tr class="row{$cycle_idx}">
<td>{$no}</td>
<td>{@$target_info= $oModuleModel->getModuleInfoByModuleSrl($val->target_module); }
<a href="{getUrl('','mid',$target_info->mid)}" onclick="window.open(this.href);return false;">{$target_info->browser_title}</a> ({$target_info->module_srl})
</td>
<td><!--@if($val->target_category)-->
{@$target_category = $oDocumentModel->getCategory($val->target_category);}
<a href="{getUrl('','mid',$target_info->mid,'category',$target_category->category_srl)}" onclick="window.open(this.href);return false;">{$target_category->title}</a> ({$target_category->category_srl})
<!--@else-->
 
<!--@end-->
</td>
<td>[{$val->document_srl}]  
{@
$oDocumentModel= &getModel('document');
$oDocument = $oDocumentModel->getDocument($val->document_srl);
}
<!--@if($oDocument->getTitle())-->
<a href="{getUrl('','document_srl',$val->document_srl)}" onclick="window.open(this.href);return false;" target="_blank">{$oDocument->getTitle()}</a>
<!--@else-->
삭제
<!--@end-->
</td>
<td><!--@if($val->move_type=='move')-->이동
<!--@elseif($val->move_type=='copy')-->복사
<!--@end-->

</td>
<td>{@$move_info= $oModuleModel->getModuleInfoByModuleSrl($val->move_module); }
<a href="{getUrl('','mid',$move_info->mid)}" onclick="window.open(this.href);return false;">{$move_info->browser_title}</a> ({$move_info->module_srl})
</td>
<td><!--@if($val->move_category)-->
{@$move_category = $oDocumentModel->getCategory($val->move_category);}
<a href="{getUrl('','mid',$move_info->mid,'category',$move_category->category_srl)}" onclick="window.open(this.href);return false;">{$move_category->title}</a> ({$move_category->category_srl})
<!--@else-->
 
<!--@end-->
</td>
<td><div class="tCenter"><span title="{zdate($val->regdate,'Y-m-d H:i:s')}">{zdate($val->regdate,"Y-m-d")}</span></div></td>
</tr>
<!--@end-->
</tbody>
</table>
</form>

<form cond="$page_navigation" action="/" class="x_pagination center">
<input type="hidden" name="error_return_url" value="" />
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
<input cond="$search_target" type="hidden" name="search_target" value="{$search_target}" />
<ul>
<li class="x_disabled"|cond="!$page || $page == 1"><a href="{getUrl('page', '')}">« {$lang->first_page}</a></li>
<block cond="$page_navigation->first_page != 1 && $page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page - 1 && $page_navigation->page_count != $page_navigation->total_page">
{@$isGoTo = true}
<li>
<a href="#goTo" data-toggle title="{$lang->cmd_go_to_page}">…</a>
<span cond="$isGoTo" id="goTo" class="x_input-append">
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit" class="x_add-on">Go</button>
</span>
</li>
</block>

<!--@while($page_no = $page_navigation->getNextPage())-->
{@$last_page = $page_no}
<li class="x_active"|cond="$page_no == $page"><a  href="{getUrl('page', $page_no)}">{$page_no}</a></li>
<!--@end-->

<block cond="$last_page != $page_navigation->last_page && $last_page + 1 != $page_navigation->last_page">
{@$isGoTo = true}
<li>
<a href="#goTo" data-toggle title="{$lang->cmd_go_to_page}">…</a>
<span cond="$isGoTo" id="goTo" class="x_input-append">
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit" class="x_add-on">Go</button>
</span>
</li>
</block>
<li class="x_disabled"|cond="$page == $page_navigation->last_page"><a href="{getUrl('page', $page_navigation->last_page)}" title="{$page_navigation->last_page}">{$lang->last_page} »</a></li>
</ul>
</form>

<br>

 

  • profile
    15번째 라인 $lang->move_search_target_list 가 array형이 아니라면 에러 발생할 순 있습니다.
  • profile
    저도 이게 궁금...
  • profile
    저도 같은 문제가 있네요 ㅠㅠ 해결하셨을까요?
  • profile

    sejin7940_vote 관리 페이지 오류 나는 경우 수정법

     

    sejin7940_vote/tpl/voted_log.html 에서

    title="{$lang->vote_search_target_list}" 

    부분 2군데 있는데 제거

     

    sejin7940_vote/tpl/move_log.html 에서 

     title="{$lang->vote_search_target_list}"

    부분 제거

     

    http://sejin7940.co.kr/xe_tips/2888410