Hello all,
I'm getting zero/zilch/nothing in return from a getResources call on a completely fresh install - getResources is the only extra in place (TinyMCE aside) and I'm pretty sure I've got my getResources call etc set up correctly. I've tried the call both cached and uncached.
There are 3 pages at root level in the document tree and they're all using the default MODX template as it stands. All pages load fine.
Straight away after installing and testing getResources I got error logs, but there were none with the fresh install.
I'm wondering if this is an inherent server config issue - I'm running on a TSO Host VPS/CPanel setup. I've never had any issues with TSO before but that was always on their Cloud/shared servers, never a VPS.
I'm reaching the server via my hostfile - it's not got any domain name DNS pointing at it at this stage. I can't imagine that would affect getResources but add it for completion.
Here's the setup:
MODX Revolution: 2.5.7-pl (traditional)
PHP Version: 5.6.30
MySQL Client API version: mysqlnd 5.0.11-dev
(from phpinfo file)
Database client version: libmysql - 5.1.73
(from phpMyAdmin)
Server version: 5.6.35 - MySQL Community Server (GPL)
(from phpMyAdmin)
Protocol version: 10
cPanel & WHM 64.0 (build 30)
The
getResources call:
[[getResources? &showHidden=`1` &tpl=`pagesTpl` &debug=`1`]]
Content of
pagesTpl:
[[*pagetitle]]
Fluffed Up Beyond All Recognition
Here's the MODX error log (I replaced the
actual server name with '
servername'):
[2017-07-11 10:12:33] (ERROR @ /home/servername/public_html/core/cache/includes/elements/modsnippet/1.include.cache.php : 201) context for 1 is web
[2017-07-11 10:12:33] (ERROR @ /home/servername/public_html/core/cache/includes/elements/modsnippet/1.include.cache.php : 427) SELECT `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` FROM `modx_site_content` AS `modResource` WHERE ( modResource.parent IN (1) AND `modResource`.`deleted` = 0 AND `modResource`.`published` = 1 ) ORDER BY publishedon DESC LIMIT 5
Can anyone see anything glaringly obvious here?
Many thanks in advance.
[ed. note: powellian last edited this post 6 years, 8 months ago.]