I have been following the tutorial while creating my own snippet/cmp and have had great success thus far. I am developing the package outside of modx root as suggested.
My snippet outputs data, my CMP appears but the grid does not produce any data and I am constantly getting a "Your session has expired. Please proceed to login again."
Monitoring everything in FireBug the connector.php (when trying to propagate a table) always produces a 401 error, access denied.
{"success":false,"code":401}
connector.php
require_once dirname(dirname(dirname(dirname(__FILE__)))).'/config.core.php';
require_once MODX_CORE_PATH.'config/'.MODX_CONFIG_KEY.'.inc.php';
require_once MODX_CONNECTORS_PATH.'index.php';
$corePath = $modx->getOption('videos.core_path',null,$modx->getOption('core_path').'components/videos/');
require_once $corePath.'model/videos/videos.class.php';
$modx->videos = new Videos($modx);
$modx->lexicon->load('videos:default');
/* handle request */
$path = $modx->getOption('processorsPath',$modx->videos->config,$corePath.'processors/');
$modx->request->handleRequest(array(
'processors_path' => $path,
'location' => '',
));
Does anyone know what could be causing this error? I did go into system settings and set the cookie path to be / as mentioned in part I of the tutorial.
[ed. note: betoranaldi last edited this post 14 years, 2 months ago.]