CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

홈페이지 제작팁

Extra Form

1. 웹서버에서 구동되는 시스템에서는 별 문제가 없었습니다.

2. 현재 맥 로컬에서 PHP8.0.3 환경에서 테스트 중에 문제가 있어 질문드립니다.

3. 디버깅 중에 크게 문제되는 모듈들은 먼저 제거하고, 코어 위주로 돌려가는 중입니다. (몇개 애드온, 모듈은 정리를 다 하진 못했습니다.)

4. files/debug/20230716.php 내용입니다.

<?php exit; ?> [2023-07-16 18:53:46] Request / Response ================== Request URL: http://localhost/rx/admin Request IP Address: ::1 Request Method: GET Request Body Size: 0 Response Method: HTML Response Body Size: 2630 Page Generation Time ==================== Total Time: 0.4950 sec DB Query Time: 0.0033 sec (count: 5) DB Processing Time: 0.0218 sec Layout Processing Time: 0.0059 sec Widget Processing Time: 0.0000 sec Remote Request Time: 0.0000 sec Session Lock Wait Time: 0.0002 sec XML Parsing Time: 0.0000 sec Template Compile Time: 0.1522 sec (count: 2) Content Transform Time: 0.0001 sec Resource Usage ============== Peak Memory Usage: 2.0 MB Included Files: 179 Debug Entries ============= None PHP Errors and Warnings ======================= 01. Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '&lt;' not found - common/framework/parsers/ModuleInfoParser.php line 19 - modules/module/module.model.php line 811 - modules/module/module.model.php line 1382 - modules/admin/models/AdminMenu.php line 72 - modules/admin/controllers/Base.php line 97 - modules/admin/controllers/Base.php line 40 - classes/module/ModuleObject.class.php line 231 - classes/module/ModuleHandler.class.php line 651 - index.php line 52 02. Warning: simplexml_load_string(): g&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; - common/framework/parsers/ModuleInfoParser.php line 19 - modules/module/module.model.php line 811 - modules/module/module.model.php line 1382 - modules/admin/models/AdminMenu.php line 72 - modules/admin/controllers/Base.php line 97 - modules/admin/controllers/Base.php line 40 - classes/module/ModuleObject.class.php line 231 - classes/module/ModuleHandler.class.php line 651 - index.php line 52 03. Warning: simplexml_load_string(): ^ - common/framework/parsers/ModuleInfoParser.php line 19 - modules/module/module.model.php line 811 - modules/module/module.model.php line 1382 - modules/admin/models/AdminMenu.php line 72 - modules/admin/controllers/Base.php line 97 - modules/admin/controllers/Base.php line 40 - classes/module/ModuleObject.class.php line 231 - classes/module/ModuleHandler.class.php line 651 - index.php line 52 Database Queries ================ 01. SELECT DISTINCT * FROM `rx_module_trigger` AS `module_trigger` ORDER BY `trigger_name` ASC, `called_position` ASC, `module` ASC, `type` ASC, `called_method` ASC - Caller: common/framework/DB.php line 373 (Rhymix\Framework\DB->executeQuery) - Connection: master - Query ID: module.getTriggers - Query Time: 0.0006 sec - Result: success 02. SELECT `config` FROM `rx_module_config` AS `module_config` WHERE `module` = ? - Caller: common/framework/DB.php line 369 (Rhymix\Framework\DB->executeQuery) (×9) - Connection: master - Query ID: module.getModuleConfig - Query Time: 0.0013 sec - Result: success 03. SELECT * FROM `rx_addons_site` AS `addons_site` WHERE `site_srl` = ? ORDER BY `addon` ASC - Caller: common/framework/DB.php line 369 (Rhymix\Framework\DB->executeQuery) - Connection: master - Query ID: addon.getSiteAddons - Query Time: 0.0003 sec - Result: success 04. SHOW FIELDS FROM `rx_menu_item` WHERE Field = 'is_shortcut' - Caller: common/framework/DB.php line 804 (Rhymix\Framework\DB->isColumnExists) - Connection: master - Query ID: - Query Time: 0.0008 sec - Result: success 05. SELECT * FROM `rx_lang` AS `lang` - Caller: common/framework/DB.php line 373 (Rhymix\Framework\DB->executeQuery) - Connection: master - Query ID: module.getLang - Query Time: 0.0004 sec - Result: success


5. 검색을 해보니깐 'php simplexml_load_string 오류 관련 사항'이란 글을 찾았는데,

xml파일에 "&"이나 "<", ">" 와 같이 특수문자가 있으면 “xmlParseEntityRef: noname” 오류가 발생함. 예외처리가 필요함.


libxml_use_internal_errors(true);

$replace_content = str_replace('&' , '&amp;', $content);
$xml = simplexml_load_string($replace_content);

foreach( libxml_get_errors() as $error ) {
print_r($error);
}



또는 


<![CDATA[


{XML DATA}


]]>


이렇게 처리함

이런 내용이 있더군요.


6. 서버에서 simplexml support는 enable 입니다.

7. seopro 모듈을 제거하고 나서 해당 오류는 사라졌습니다.

8. 20230716.php 로그입니다.


<?php exit; ?> [2023-07-16 19:06:34] Request / Response ================== Request URL: http://localhost/rx/admin Request IP Address: ::1 Request Method: GET Request Body Size: 0 Response Method: HTML Response Body Size: 2448 Page Generation Time ==================== Total Time: 0.1035 sec DB Query Time: 0.0005 sec (count: 1) DB Processing Time: 0.0031 sec Layout Processing Time: 0.0029 sec Widget Processing Time: 0.0000 sec Remote Request Time: 0.0000 sec Session Lock Wait Time: 0.0002 sec XML Parsing Time: 0.0000 sec Template Compile Time: 0.0020 sec (count: 2) Content Transform Time: 0.0001 sec Resource Usage ============== Peak Memory Usage: 8.0 MB Included Files: 163 Debug Entries ============= None PHP Errors and Warnings ======================= None Database Queries ================ 01. SHOW FIELDS FROM `rx_menu_item` WHERE Field = 'is_shortcut' - Caller: common/framework/DB.php line 804 (Rhymix\Framework\DB->isColumnExists) - Connection: master - Query ID: - Query Time: 0.0005 sec - Result: success

9. 그 밖에 files/debug/20230716.php은 위와 같지만 관리자 화면 접속하면 아래 에러가 뜹니다.

Error #0 "Attempt to assign property "module" on bool" in modules/module/module.model.php on line 1386

common/framework/Debug.php:770

if(!isset($info)) continue; $info->module = $module_name;


해당 오류는 이 부분입니다.

php8.0.3 문제인걸까요?


10. 완전히 다 지우고 라이믹스 코어만 설치했습니다만 아래 오류가 뜹니다.





추가시작추가끝


질문•답변

상품문의, 포인트관련 문의는 멤버십 지원게시판에 작성해주세요. (프로젝트>기술지원)

List of Articles
번호 분류 제목 날짜
공지사항 기타 본 게시판의 용도 2024.06.11
Board Pagination Prev 1 ... 10 11 12 13 14 15 16 17 18 19 Next
/ 19