[사용팁] [오류][마켓플레이스모듈] Call to undefined method marketplaceItem::getTags() 1
2019.01.05 06:13
289
0
https://eond.com/413712
object(HotopayModel)#817 (23) { ["error"]=> int(0) ["message"]=> string(7) "success" ["variables"]=> array(0) { } ["httpStatusCode"]=> int(200) ["module"]=> string(7) "hotopay" ["module_info"]=> NULL ["origin_module_info"]=> NULL ["module_config"]=> NULL ["module_path"]=> string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/" ["xml_info"]=> NULL ["module_srl"]=> NULL ["mid"]=> NULL ["act"]=> NULL ["template_path"]=> NULL ["template_file"]=> NULL ["layout_path"]=> NULL ["layout_file"]=> NULL ["edited_layout_file"]=> NULL ["stop_proc"]=> bool(false) ["user"]=> object(Rhymix\Framework\Helpers\SessionHelper)#816 (20) { ["member_srl"]=> int(0) ["user_id"]=> NULL ["user_name"]=> NULL ["nick_name"]=> NULL ["email_address"]=> NULL ["phone_number"]=> NULL ["homepage"]=> NULL ["blog"]=> NULL ["birthday"]=> NULL ["denied"]=> NULL ["status"]=> NULL ["is_admin"]=> string(1) "N" ["is_site_admin"]=> NULL ["profile_image"]=> NULL ["image_name"]=> NULL ["image_mark"]=> NULL ["signature"]=> NULL ["description"]=> NULL ["group_list"]=> array(0) { } ["menu_list"]=> array(0) { } } ["request"]=> object(Rhymix\Framework\Request)#10 (13) { ["method"]=> string(3) "GET" ["compat_method"]=> string(3) "GET" ["url"]=> string(16) "xe/413712/page/1" ["hostname"]=> string(8) "eond.com" ["domain"]=> NULL ["protocol"]=> string(5) "https" ["callback_function"]=> string(0) "" ["_route_status":protected]=> int(200) ["_route_options":protected]=> object(stdClass)#11 (5) { ["cache_control"]=> bool(true) ["check_csrf"]=> bool(true) ["is_forwarded"]=> bool(false) ["is_indexable"]=> bool(true) ["enable_session"]=> bool(true) } ["module"]=> string(5) "board" ["mid"]=> string(2) "xe" ["act"]=> string(16) "dispBoardContent" ["args"]=> array(6) { ["category"]=> string(5) "35024" ["search_target"]=> string(9) "nick_name" ["document_srl"]=> string(6) "413712" ["page"]=> int(1) ["mid"]=> string(2) "xe" ["act"]=> string(16) "dispBoardContent" } } ["ajaxRequestMethod"]=> array(2) { [0]=> string(6) "XMLRPC" [1]=> string(4) "JSON" } ["gzhandler_enable"]=> bool(true) }

오류1) 오류 메시지를 표시하지 않도록 설정되어 있습니다. 서버의 에러 로그에서 자세한 내용을 확인해 주십시오. 

오류2) Error #0 "Call to undefined method marketplaceItem::getTags()" in index.php on line 52 (via classes/display/HTMLDisplayHandler.php on line 529)

오류3) Error #0 "Call to undefined function eregi_replace()" in modules/marketplace/marketplace.item.php on line 1407

오류4) Call to undefined method marketplaceItem::getHashTags()

문제 : 특정 호스팅에서 오류1)과 같은 메세지가 출력이 되고, 관리자일 경우 오류2), 오류3)이 마켓플레이스 모듈에서 나타남.


해결3) eregi 오류는 php 버전과 관련이 있는 문제임.

/www/modules/marketplace/marketplace.item.php

//        $content = eregi_replace("([0-9]{3})([\-])([0-9]{3,4})([\-])([0-9]{4})", $replace, $content);
         $content = preg_replace('/([0-9]{3})([\-])([0-9]{3,4})([\-])([0-9]{4})/', $replace, $content);

eregi_replace를 preg_replace로 교체 후 해당 함수에 맞는 정규식으로 입력 대체함.

*버전과 상관없이 동작도리 수도 있음.


해결2) marketplaceItem::getTags() 함수가 정의되지 않았다는 오류 메세지.

marketplace.item.php 파일에서 getTags()함수를 정의해주면 됨.


해결4) marketplaceItem::getHashTags() 함수가 정의되지 않았다는 오류 메세지.

marketplace.item.php파일에서 getHashTags() 함수를 정의해주면 됨.

어떤 역할을 하는지 몰라서 빈 내용의 함수만 정의해줌.

function getHashtags(){
   return;
}


> 해당 함수들이 실제 마켓플레이스 모듈 스킨에서 사용되는지 여부는 체크할 수 없었음.

> 라이믹스로 운영되는 사이트에서 발생된 오류 메세지로 XE 동일한 문제인지는 알 수 없음. 라이믹스 문제인지 알 수 없었음.


※참조

eregi 관련 오류) http://blog.arzz.com/409


#2021년 2월 28일 수정

function getHashtags(){
   // 오류가 발생해서 추가함.
}
function getTags(){
   // 오류가 발생해서 추가함.
}

marketplace.item.php 파일에서 위 함수 마지막에 추가해넣음. 

라이믹스는 이온디와 함께

  • 2021.04.29 22:20
    베스트

    혹시 xe 마켓플레?이스 모듈 모바일에서 " 대표사진값은 필수입니다 " 라는 메시지가 나오는데 해결방법이없을까요.ㅠ

닫기

마이페이지

로그인을 해주세요

네이버로 로그인