1.9.9.7에서 2.0.6으로 업데이트한 후로 서드파티 모듈의 모바일 스킨이 반응형일 경우 템플릿을 불러오지 못하는 일들이 있는 것 같습니다(php는 7.0*).
(코어에 포함된 페이지 모듈에서도요ㅜ https://xetown.com/questions/1523955 참조)
위 이미지는 소셜XE의 경우 에러 메시지입니다.
그래서 socialxe.mobile.php를 다음과 같이 바꿔주니 잘 작동하게 되었습니다.
(레이아웃은 제가 따로 지정을 해놓은 게 없어서 어떤 상황일지는 잘 예측이 안 되네요. 암튼 스킨의 경우는 아래처럼 수정했습니다)
<?php require_once(_XE_PATH_ . 'modules/socialxe/socialxe.view.php'); /** * @class socialxeMobile * @author CONORY (https://xe.conory.com) * Mobile class of socialxe module */ class socialxeMobile extends socialxeView { /** * @brief Initialization */ function init() { $skin = $this->config->skin; $mskin = $this->config->mskin; if ( $mskin === '/USE_RESPONSIVE/' ) { $template_path = sprintf('%sskins/%s/', $this->module_path, $skin); if ( !is_dir($template_path) || !$skin ) { $template_path = sprintf('%sskins/%s/',$this->module_path, 'default'); } } else { Context::set('config', $this->config); $template_path = sprintf('%sm.skins/%s/', $this->module_path, $mskin); if ( !is_dir($template_path) || !$mskin ) { $template_path = sprintf('%sm.skins/%s/', $this->module_path, 'default'); } Context::addJsFile($this->module_path . 'tpl/js/socialxe.js'); } $this->setTemplatePath($template_path); // 사용자 모바일 레이아웃 if($this->config->mlayout_srl && $layout_path = getModel('layout')->getLayout($this->config->mlayout_srl)->path) { $this->module_info->mlayout_srl = $this->config->mlayout_srl; $this->setLayoutPath($layout_path); } } }
덧. 그리고 출석부 모듈에서도 비슷한 문제가 있었던 것 같은데(저는 사용을 안 해봐서...) 이 경우에도 비슷한 방식으로 처리해서 정상화가 가능했습니다.
https://xetown.com/questions/1519785#comment_1524337 참조
출석부 모듈은 아마 기본 스킨을 사용하시는 분들은 못 느끼실 수도 있어요. 저는 사용자 스킨을 사용하는데 'PC와 동일한 반응형 스킨' 으로 했을 경우 모바일에서 기본스킨으로 강제로 적용이 되어서 알게 됐습니다.
아이템샵 같은 경우 약간 다른데 ''PC와 동일한 반응형 스킨' 을 선택하면
Refused to apply style from 'https://도메인./modules/itemshop/skins/USE_DEFAULT/css/default.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
이렇게 나옵니다.
2.0.6 이상 사용하면서 아이템샵 사용하고 'PC와 동일한 반응형 스킨'으로 지정하신 분들은 모바일에서 확인해 보실 필요가 있습니다.
좋은 팁 감사드립니다 :-) 덕분에 해결하게 되었습니다!
모듈 업데이트가 되었으면 좋겠네요 :)