누리고 모듈 2.6.5

 

php 8.0.3 

mysql 8.2

 

 

누리고에러1.png.jpg

 

 

상품관리에서  빨간색 박스 부분을 클릭하면 다음과 같은 오류가 발생합니다.

 

서버 오류

Error #0 "Object of class stdClass could not be converted to string" in C:\websites\Rhymix\4880net\classes\object\Object.class.php on line 87

 

 

 

// Call a trigger (after)
$output = ModuleHandler::triggerCall('nproduct.deleteItem', 'after', $item_info);
if(!$output->toBool())
{
return $output;
}

$this->setMessage('success_deleted');


if(!in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON')))
{
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', Context::get('module'), 'act', 'dispNproductAdminItemList', 'module_srl', Context::get('module_srl'));
var_dump($returnUrl);
$this->setRedirectUrl($returnUrl);
return;
}
}

 

TAG •
  • profile
    1. 에러로그에서 나타내는 말로는 stdClass으로 초기화한 오브젝트인데 왜 넌 이걸 문자열로 변경하냐. 난 못바꿔준다 라는 에러입니다.

    그래서 해당 오브젝트를 호출하는 시점을 찾어야 할텐데.. 누리고의 경우 아직 레거시 코드가 많고 누리고 코드만 하더라도 그래도 몇천줄 넘게 있어서 유지보수가 까다롭습니다.

    우선은 php7.4에서 실행하시길 권장합니다.
  • profile
    누리고 쇼핑몰 php 8.0.3 대응 살펴보고 잇는데 람보님이 많이 패치해주셔서 웬만한 오류는 없는데 저 오류만 어캐 해결 하면 돌아갈것 같습니다....한번 코드점검 해주시면 좋을것 같은데요. 시간적 여유되시면 한번 살펴주세요. ㅎ