섬네일 오류

Extra Form
PHP PHP 7.2
CMS XpressEngine

마켓플레이스 물품 등록 후 섬네일이 보이지 않아 코드 찾아보니 아래 빨간색부분인데,

modules/marketplace/skins/default/list.html

<td class="bd_thmb">

<div style="position:relative">

        <span class="mp-condition-badge mp-condition-badge-small mp-{$document->getItemCondition()}">{$condition_list[$document->getItemCondition()]->short_name}</span>

        <img src="{$document->getThumbnail(118,77)}" />

</div>

</td>

 

아래 코드(modules/marketplace/marketplace.item.php)의 파란색부분과 관련있는 것 같은 데 어떻게 수정하면 될 지 고견 부탁합니다.

function getThumbnail($width = 80, $height = 0, $thumbnail_type = '')

{

// Return false if the document doesn't exist

if(!$this->get('thumbnails_srl')) return;

// If not specify its height, create a square

if(!$height) $height = $width;

// Get thumbnai_type information from document module's configuration

if(!in_array($thumbnail_type, array('crop','ratio')))

{

$config = $GLOBALS['__document_config__'];

if(!$config)

{

$oDocumentModel = getModel('document');

$config = $oDocumentModel->getDocumentConfig();

$GLOBALS['__document_config__'] = $config;

}

$thumbnail_type = $config->thumbnail_type;

}

// Define thumbnail information

$thumbnail_path = sprintf('files/marketplace/thumbnails/%s',getNumberingPath($this->get('thumbnails_srl'), 3));

$thumbnail_file = sprintf('%s%dx%d.%s.jpg', $thumbnail_path, $width, $height, $thumbnail_type);

$thumbnail_url  = Context::getRequestUri().$thumbnail_file;

 

11.png

  • ?
    게시판 설정>게시판 정보>고급 설정>썸네일 추가해보세요.
  • ? profile

    안녕하세요 관심에 감사 드립니니다. 말씀하신 내용 적용했는데도 안되고 있습니다.ㅠㅠ

  • profile
    썸네일이 저장되는 폴더의 퍼미션을 한번 확인 해 보세요.
  • profile
    안녕하세요 관심에 감사 드립니니다. 말씀하신 데로 퍼미션7로 돼있는데도 안되고 있어요.ㅠㅠ