Ошибка phpthumbON

Здравствуйте не могу понять в чем проблема с phpthumbON при генерации thumbs самый последний документ не генерирует показывает дефолтний заглушки до добавления другого документа!
0.0000710: pdoTools loaded
0.0000181: xPDO query object created
0.0006568: Included list of tvs: imgn
0.0001640: leftJoined modTemplateVarResource as TVimgn
0.0001512: Added selection of modResource: SQL_CALC_FOUND_ROWS `id`, `type`, `contentType`, `pagetitle`, `longtitle`, `description`, `alias`, `link_attributes`, `published`, `pub_date`, `unpub_date`, `parent`, `isfolder`, `introtext`, `richtext`, `template`, `menuindex`, `searchable`, `cacheable`, `createdby`, `createdon`, `editedby`, `editedon`, `deleted`, `deletedon`, `deletedby`, `publishedon`, `publishedby`, `menutitle`, `donthit`, `privateweb`, `privatemgr`, `content_dispo`, `hidemenu`, `class_key`, `context_key`, `content_type`, `uri`, `uri_override`, `hide_children_in_tree`, `show_in_tree`, `properties`
0.0000060: Added selection of modTemplateVarResource: IFNULL(`value`, '') AS `tv.imgn`
0.0037341: Processed additional conditions
0.0044429: Added where condition: modResource.parent:IN(3503,3504,3505,3506,3507,3508,3509,3511,3512,3513,3514), modResource.published=1, modResource.deleted=0
0.0000899: Replaced TV conditions
0.0001900: Sorted by modResource.publishedon, DESC
0.0000021: Limited to 10, offset 0
0.0004871: SQL prepared "SELECT SQL_CALC_FOUND_ROWS `modResource`.`id`, `modResource`.`type`, `modResource`.`contentType`, `modResource`.`pagetitle`, `modResource`.`longtitle`, `modResource`.`description`, `modResource`.`alias`, `modResource`.`link_attributes`, `modResource`.`published`, `modResource`.`pub_date`, `modResource`.`unpub_date`, `modResource`.`parent`, `modResource`.`isfolder`, `modResource`.`introtext`, `modResource`.`richtext`, `modResource`.`template`, `modResource`.`menuindex`, `modResource`.`searchable`, `modResource`.`cacheable`, `modResource`.`createdby`, `modResource`.`createdon`, `modResource`.`editedby`, `modResource`.`editedon`, `modResource`.`deleted`, `modResource`.`deletedon`, `modResource`.`deletedby`, `modResource`.`publishedon`, `modResource`.`publishedby`, `modResource`.`menutitle`, `modResource`.`donthit`, `modResource`.`privateweb`, `modResource`.`privatemgr`, `modResource`.`content_dispo`, `modResource`.`hidemenu`, `modResource`.`class_key`, `modResource`.`context_key`, `modResource`.`content_type`, `modResource`.`uri`, `modResource`.`uri_override`, `modResource`.`hide_children_in_tree`, `modResource`.`show_in_tree`, `modResource`.`properties`, IFNULL(`TVimgn`.`value`, '') AS `tv.imgn` FROM `mUn_xprTT4v_site_content` AS `modResource` LEFT JOIN `mUn_xprTT4v_site_tmplvar_contentvalues` `TVimgn` ON `TVimgn`.`contentid` = `modResource`.`id` AND `TVimgn`.`tmplvarid` = 39 WHERE  ( `modResource`.`parent` IN (3503,3504,3505,3506,3507,3508,3509,3511,3512,3513,3514) AND `modResource`.`published` = 1 AND `modResource`.`deleted` = 0 )  ORDER BY modResource.publishedon DESC LIMIT 10 "
0.0604031: SQL executed
0.0002921: Total rows: 3012
0.0000620: Rows fetched
0.0021918: Prepared and processed TVs
0.0015600: Loaded "modChunk" with name "shortstory"
0.0037100: Compiled Fenom chunk with name "modchunk/4"
0.0205970: Returning processed chunks
0.0899551: Total time
4 194 304: Memory usage
P.S До этого сервер работал на CentOS ша работает на Ubuntu
TITAN-UZ
10 января 2017, 12:19
modx.pro
1
2 726
0

Комментарии: 8

Кирилл
10 января 2017, 15:35
0
phpthumbon вызывает как модификатор?
Можно попробовать сниппетом вызывать:

[[phpthumbon? &input=`[[+tv.image]]` &options=`w=100`]]
    TITAN-UZ
    10 января 2017, 17:11
    0
    Вывод
    <a href="{$uri}"><img class="rpl" src="[[+tv.imgn:phpthumbon=`w=120&h=80`]]" /></a>
      Кирилл
      10 января 2017, 17:14
      +2
      Попробуй заменить на:

      <a href="{$uri}"><img class="rpl" src="[[phpthumbon? &input=`[[+tv.imgn]]` &options=`w=120&h=80`]]" /></a>
      А вообще, раз uri через феном выводится, то и картинку можно переделать под него. В документации есть все необходимое.
        TITAN-UZ
        10 января 2017, 17:28
        0
        Все работает!
        Дайте линк на документацию
          Владимир
          10 января 2017, 19:53
          1
          0
          Использую pthumb + феном, документация одна у них (у pthumb и phpthumbon/phpthumbof), ибо аналоги (но в pthumb есть ресайзер в комплекте отдельным пакетом)
          {$_modx->runSnippet('!pthumb', [
                'input' => $_pls['tv.image'],
                'options' => 'w=500&h=260q=60&zc=C',
                'toPlaceholder' => 'thumb'
                ])}
          <a href="{$id | url : ['scheme' => 'full']}">
          <img src="{$_modx->getPlaceholder('thumb')}" width="{$_modx->getPlaceholder('thumb.width')}" height="{$_modx->getPlaceholder('thumb.height')}" alt="{$pagetitle}" /> </a>
          PS если в опциях есть, например, водяной знак, то убирайте опции в
          «Наборы параметров» (ваш сйт.админка/?a=element/propertyset )
          В вызове снипета добавите runSnippet('!pthumb@namepropertyset', [
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
8