Не работает pdoResources
Здравствуйте! Буквально только, что перестал работать сниппет после обновления сегодняшнего
вызов такой
вызов такой
[[pdoResources?
&parents=`7`
&depth=`0`
&limit=`5`
&includeTVs=`image`
&includeContent=`1`
&sortby=`{"publishedon":"ASC","createdon":"DESC"}`
&tpl=`post_tpl`
]]
Если убираю параметр &includeTVs=`image` то работает, естественно без изображения Комментарии: 10
Если версия 1.9.1-pl1, то нужно обновить на pl2.
Как раз-таки сегодня перешел буквально 1 час назад на pl2 и перестало работать, пробовал удалить с конем и переустановить, не помогло
Протестил методом подбора, ошибка точно кроется в параметре &includeTVs=`image`
Протестил методом подбора, ошибка точно кроется в параметре &includeTVs=`image`
Покажи, что выводит &showLog=`1`?
0.0002830: pdoTools loaded
0.0000861: xPDO query object created
0.0010910: Included list of tvs: image
0.0007930: leftJoined modTemplateVarResource as TVimage
0.0009370: 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`, `content`, `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.0001361: Added selection of modTemplateVarResource:
0.0000598: Processed additional conditions
0.0008612: Added where condition: modResource.parent:IN(7), modResource.published=1, modResource.deleted=0
0.0001452: Replaced TV conditions
0.0002131: Sorted by modResource.publishedon, ASC
0.0000112: Sorted by modResource.createdon, DESC
0.0000150: Limited to 5, offset 0
0.0008740: 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`.`content`, `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`, `` FROM `modx_site_content` AS `modResource` LEFT JOIN `modx_site_tmplvar_contentvalues` `TVimage` ON `TVimage`.`contentid` = `modResource`.`id` AND `TVimage`.`tmplvarid` = 4 WHERE ( `modResource`.`parent` IN (7) AND `modResource`.`published` = 1 AND `modResource`.`deleted` = 0 ) ORDER BY modResource.publishedon ASC, modResource.createdon DESC LIMIT 5 "
0.0008030: Could not process query, error #1054: Unknown column '' in 'field list'
0.0064740: Total time
9 437 184: Memory usage
Да, ошибка из глючной версии.
Попробуй удалить и заново поставить pdoTools.
Попробуй удалить и заново поставить pdoTools.
не помогло, сперва деинсталлировал, потом удалял, не помогает
У меня на тесте работает.
Ждем сообщений от других обновившихся.
Ждем сообщений от других обновившихся.
Василий, а у вас версия Рево 2.2.13? Попробовал восстановить из бэкапа сайт, что было до обновления и ошибка та же, отсюда вывод, что все-таки возможно и до обновления баг. Если не пойдет, то попробую заново все переставить, благо сайт только начал делать и первый раз решил воспользоваться Вашими сниппетами
Спасибо, все работает!!!
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.