Extra Form
PHP PHP 8.0
CMS Rhymix 2.x

PC Server 재원:
OS : Window 10
Apache v2.4.46
PHP v8.0.1
MySQL v5.7.32
Rhymix v2.0.4

 

 

PHP V7.4.13이 설치된 상태에서 XE (v1.11.6)를 Rhymix (v2.0.1)로 덮어 쉬웠습니다. 몇 가지 삭제하거나 수정한 후, 별 다른 이상한 점이 없었으므로 다시 PHP v7.4.13에서 PHP v8.0.1로 upgrade를 하였습니다. 그리고 Rhymix v2.0.4로 update하였습니다.

 

이 상태에서 신문사 RSS나 ATOM 서비스를 받기 위해 기본 content 위젯에서 소정 항목을 field에 입력하고 "코드 생성" 버튼을 클릭하면 아래와 같은 내용의 pop창이 뜹니다. (모바일 콘텐츠 위젯을 사용하면 정상적으로 출력됩니다)

 

서버 오류 Error #0 "Attempt to assign property "title" on null" in C:\APM_Server\Apache24\htdocs\xe\widgets\content\content.class.php on line 509


그런데 content.class.php의 줄 509는 다음과 같이 title이 표기되어 있습니다.

 

        $rss->title = $xml_doc->rss->channel->title->body;

 

 

아래는 error.log 파일의 관련 내용입니다.

 

[Tue Jan 12 18:12:27.615549 2021] [php:notice] [pid 8548:tid 1164] [client ::1:49987] PHP Exception: Error #0 "Attempt to assign property "title" on null" in C:\\APM_Server\\Apache24\\htdocs\\xe\\widgets\\content\\content.class.php on line 509\r\n#0 C:\\APM_Server\\Apache24\\htdocs\\xe\\widgets\\content\\content.class.php(399): content->_getRssItems()\r\n#1 C:\\APM_Server\\Apache24\\htdocs\\xe\\widgets\\content\\content.class.php(129): content->getRssItems()\r\n#2 C:\\APM_Server\\Apache24\\htdocs\\xe\\modules\\widget\\widget.controller.php(392): content->proc()\r\n#3 C:\\APM_Server\\Apache24\\htdocs\\xe\\modules\\widget\\widget.controller.php(471): widgetController->getCache()\r\n#4 C:\\APM_Server\\Apache24\\htdocs\\xe\\modules\\widget\\widget.controller.php(73): widgetController->execute()\r\n#5 C:\\APM_Server\\Apache24\\htdocs\\xe\\classes\\module\\ModuleObject.class.php(687): widgetController->procWidgetGenerateCodeInPage()\r\n#6 C:\\APM_Server\\Apache24\\htdocs\\xe\\classes\\module\\ModuleHandler.class.php(646): ModuleObject->proc()\r\n#7 C:\\APM_Server\\Apache24\\htdocs\\xe\\index.php(52): ModuleHandler->procModule(), referer: http://localhost/xe/index.php?module=widget&act=dispWidgetGenerateCodeInPage&selected_widget=content&module_srl=29091

 

어느 부분을 어떻게 수정해야 하는지요?
자세히 가르쳐 주시면 감사하겠습니다.
 

  • profile

    https://github.com/rhymix/rhymix/commit/fa64d5a0

  • profile ?
    기진님 감사합니다. link한 곳에 있는 내용대로 관련 파일을 수정했더니 해결되었습니다.