nurigo icon indicating copy to clipboard operation
nurigo copied to clipboard

store search 설치할 때 관리자 대시보드 첫 화면에서 발생하는 오류입니다.

Open eondcom opened this issue 1 year ago • 2 comments

서버 오류 Error #0 "Call to undefined method store_search::makeObject()" in modules/store_search/store_search.class.php on line 65

store search 설치할 때 관리자 대시보드 첫 화면에서 발생하는 오류입니다.

eondcom avatar Nov 17 '23 09:11 eondcom

public function makeObject($code = 0, $msg = 'success') { return class_exists('BaseObject') ? new BaseObject($code, $msg) : new Object($code, $msg); }

이 글 참조해서 이 부분 추가해넣었습니다.

https://xetown.com/questions/1333433

eondcom avatar Nov 17 '23 09:11 eondcom

error1

Error #0 "Attempt to assign property "use_shop_coupon" on null" in modules/couponsms/couponsms.model.php on line 16
객체를 먼저 선언하지 않고 속성을 추가하려 하고 있습니다. 오래된 자료에서 종종 사용하던 코딩 방식이나 최근 PHP에서는 허용되지 않으니, 에러 메시지에 포함된 파일명과 줄 번호를 참고하여 수정하세요.
modules/couponsms/couponsms.model.php:16

if($config === NULL){ $config = new stdClass(); } if (!isset($config->use_shop_coupon) || !$config->use_shop_coupon) { $config->use_shop_coupon = 'no'; }

이렇게 수정함

error2

TypeError #0 "count(): Argument #1 ($value) must be of type Countable|array, string given" in modules/couponsms/couponsms.class.php on line 25
배열이 아닌 변수에 배열 함수를 사용하려 하고 있습니다. 오래된 자료에서 종종 사용하던 코딩 방식이나 최근 PHP에서는 허용되지 않으니, 에러 메시지에 포함된 파일명과 줄 번호를 참고하여 수정하세요.
modules/couponsms/couponsms.class.php:25

error3

서버 오류 Error #0 "Call to undefined method store_search::makeObject()" in modules/store_search/store_search.class.php on line 65

public function makeObject($code = 0, $msg = 'success') { return class_exists('BaseObject') ? new BaseObject($code, $msg) : new Object($code, $msg); }

추가해줌

이번에 누리고 깃헙에서 가져와서 설치했는데 이런 오류가 있어서 위와 같이 수정했습니다. 참고해주세요.

eondcom avatar Nov 19 '23 13:11 eondcom