We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29549
    • 10 Posts
    followed the instructions step by step everything worked fine until i got to the point to load data into grid.
    http://rtfm.modx.com/display/revolution20/Developing+an+Extra+in+MODX+Revolution%2C+Part+II

    direct acces to file connector.php

    ( ! ) Notice: Undefined index: action in C:\wamp\www\test\core\model\modx\modconnectorrequest.class.php on line 62

    {"success":false,"message":"Access denied.","total":0,"data":[],"object":[]}

    version:
    MODX Revolution 2.2.6-pl (traditional)
    settings:
    session_cookie_path
    \
    session_name
    modxlocaldevsession


    /* handle request */
    $path = $modx->getOption('processorsPath',$modx->doodles->config,$corePath.'processors/');
    $modx->request->handleRequest(array(
        'processors_path' => $path,
        'location' => '',
    ));
    [ed. note: testere last edited this post 13 years, 7 months ago.]
      • 39519 ☆ A M B ☆
      • 79 Posts
      Not much info here. Check the location of your connector.php and see if the server generated an error_log. That is usually more helpful for debugging a connector issue.

      Also if this is your first CMP, go back over the walkthrough and compare it against your files. It's fairly straight forward, but there is a lot to miss.
        Mat Dave Jones
        • 29549
        • 10 Posts
        thx for replay

        yeah it`s my first step into modx dev extra

        because of that i do just copy paste

        the only thing i changed in connector.php:

        this
        require_once dirname(dirname(dirname(dirname(__FILE__)))).'/config.core.php';

        C:\wamp\www\test\core\cache/config.core.php


        to

        require_once
        dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))).'/config.core.php';

        C:\wamp\www\test/config.core.php


        current location of my connector.php is under
        C:\wamp\www\test\core\components\doodles\assets\components\doodles\connector.php

        <?php
        require_once dirname(dirname(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';
        
        echo MODX_CONNECTORS_PATH.'index.php';
        
        $corePath = $modx->getOption('doodles.core_path',null,$modx->getOption('core_path').'components/doodles/');
        require_once $corePath.'model/doodles/doodles.class.php';
        $modx->doodles = new Doodles($modx);
        
        $modx->lexicon->load('doodles:default');
        
        /* handle request */
        $path = $modx->getOption('processorsPath',$modx->doodles->config,$corePath.'processors/');
        $modx->request->handleRequest(array(
            'processors_path' => $path,
            'location' => '',
        ));


        error_log file shows
        PHP Notice: Undefined index: action in C:\\wamp\\www\\test\\core\\model\\modx\\modconnectorrequest.class.php on line 62
        PHP Stack trace:
        PHP 1. {main}() C:\\wamp\\www\\test\\index.php:0
        PHP 2. modX->handleRequest() C:\\wamp\\www\\test\\index.php:72
        PHP 3. modRequest->handleRequest() C:\\wamp\\www\\test\\core\\model\\modx\\modx.class.php:1304
        PHP 4. modRequest->prepareResponse() C:\\wamp\\www\\test\\core\\model\\modx\\modrequest.class.php:128
        PHP 5. modResponse->outputContent() C:\\wamp\\www\\test\\core\\model\\modx\\modrequest.class.php:144
        PHP 6. modParser->processElementTags() C:\\wamp\\www\\test\\core\\model\\modx\\modresponse.class.php:83
        PHP 7. modParser->processTag() C:\\wamp\\www\\test\\core\\model\\modx\\modparser.class.php:221
        PHP 8. modScript->process() C:\\wamp\\www\\test\\core\\model\\modx\\modparser.class.php:484
        PHP 9. elements_modsnippet_8() C:\\wamp\\www\\test\\core\\model\\modx\\modscript.class.php:66
        PHP 10. modConnectorRequest->handleRequest() C:\\wamp\\www\\test\\core\\cache\\includes\\elements\\modsnippet\\8.include.cache.php:25


        Warning: require_once(C:\wamp\www\test\core\cache\includes\elements\modsnippet/model/doodles/doodles.class.php): failed to open stream: No such file or directory in C:\wamp\www\test\core\cache\includes\elements\modsnippet\9.include.cache.php on line 11 [ed. note: testere last edited this post 13 years, 7 months ago.]
          • 29549
          • 10 Posts
          Setup the dev extra doodle again from zero
          Again at the point Hooking Up via Connectors

          Notice: Undefined index: action in C:\wamp\www\teste\core\model\modx\modconnectorrequest.class.php on line 61

          {"success":false,"message":"Access denied.","total":0,"data":[],"object":{"code":401}}

          error.log
          [Sat Feb 23 14:53:44.694635 2013] [:error] [pid 7236:tid 880] [client 127.0.0.1:49504] PHP Notice: Undefined index: action in C:\\wamp\\www\\teste\\core\\model\\modx\\modconnectorrequest.class.php on line 61
          [Sat Feb 23 14:53:44.694635 2013] [:error] [pid 7236:tid 880] [client 127.0.0.1:49504] PHP Stack trace:
          [Sat Feb 23 14:53:44.694635 2013] [:error] [pid 7236:tid 880] [client 127.0.0.1:49504] PHP 1. {main}() C:\\wamp\\www\\teste\\assets\\components\\doodles\\connector.php:0
          [Sat Feb 23 14:53:44.694635 2013] [:error] [pid 7236:tid 880] [client 127.0.0.1:49504] PHP 2. modConnectorRequest->handleRequest() C:\\wamp\\www\\teste\\assets\\components\\doodles\\connector.php:23


          [Sat Feb 23 14:52:53.994736 2013] [:error] [pid 7236:tid 848] [client 127.0.0.1:49497] PHP Fatal error: Class 'modExtraManagerController' not found in C:\\wamp\\www\\teste\\core\\components\\doodles\\index.class.php on line 6
          [Sat Feb 23 14:52:53.994736 2013] [:error] [pid 7236:tid 848] [client 127.0.0.1:49497] PHP Stack trace:
          [Sat Feb 23 14:52:53.994736 2013] [:error] [pid 7236:tid 848] [client 127.0.0.1:49497] PHP 1. {main}() C:\\wamp\\www\\teste\\core\\components\\doodles\\index.class.php:0


          has someone a idea [ed. note: testere last edited this post 13 years, 7 months ago.]
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            What's with all the double backslashes in the paths?
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 29549
              • 10 Posts
              Developing on windows using wamp server

              error.log -> apache log file
                • 29549
                • 10 Posts
                got it to work path problems