Results 1 to 6 of 6

Thread: provider is undefined

  1. #1
    Sencha User
    Join Date
    Jun 2017
    Posts
    7
    Vote Rating
    0
      0  

    Default provider is undefined

    Hi,
    I had problem with connecting my app to database. I try do it with this https://docs.sencha.com/extjs/6.5.1/...mysql_php.html guide. I have errors, so I'm trying do exactly the same steps on generated DirectApp without changing anything. I still get the same errors.

    Przechwytywanie.PNG

    I checked on forum there's thread about this issue https://www.sencha.com/forum/showthread.php?311102 but it's left without answer.

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    756
    Answers
    96
    Vote Rating
    152
      1  

    Default

    It looks like your php code is not executed but returned as is. Do you have Apache + Php+ MySQL or some other web server which can execute your PHP code?

  3. #3
    Sencha User
    Join Date
    Jun 2017
    Posts
    7
    Vote Rating
    0
      0  

    Default

    I'm using Wampserwer. It's on and all services are working

  4. #4
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    905
    Answers
    52
    Vote Rating
    16
      0  

    Default

    Hi--,

    Are you loading your app from the built-in one for Cmd (i.e. sencha app watch) and http://localhost:1841?

    Bryan

  5. #5
    Sencha User
    Join Date
    Jun 2017
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by bjdurham85 View Post
    Are you loading your app from the built-in one for Cmd (i.e. sencha app watch) and http://localhost:1841?
    Yes

  6. #6
    Sencha User
    Join Date
    Jun 2017
    Posts
    7
    Vote Rating
    0
      0  

    Default

    I change http://localhost:1841/ and use http://localhost/DirectApp/ and it's look like that's solved problem with provider but I still don't received data. Now I get

    Przechwytywanie1.PNG

    and 'invalid request' is called in 30 line of router.php

    Code:
    if (isset($HTTP_RAW_POST_DATA)) {    header('Content-Type: text/javascript');
        $data = json_decode($HTTP_RAW_POST_DATA);
    }
    
    else if(isset($_POST['extAction'])){ // form post
    $isForm = true;
        $isUpload = $_POST['extUpload'] == 'true';
        $data = new BogusAction();
        $data->action = $_POST['extAction'];
        $data->method = $_POST['extMethod'];
        $data->tid = isset($_POST['extTID']) ? $_POST['extTID'] : null;
        $data->data = array($_POST, $_FILES);
    }
    else {
        die('Invalid request.');
    }

Similar Threads

  1. Provider is undefined
    By jabussko2 in forum Ext 6: Q&A
    Replies: 0
    Last Post: 3 Sep 2017, 8:38 AM
  2. ExtDirect error : provider is undefined
    By ghatfan99 in forum Ext 6: Q&A
    Replies: 2
    Last Post: 27 May 2016, 1:24 AM
  3. Replies: 3
    Last Post: 1 Aug 2013, 6:33 AM
  4. GWT Ext Combobox form submit - label provider value is going instead of key provider
    By sanjayyadav in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 30 Jul 2013, 7:35 AM
  5. Replies: 3
    Last Post: 3 Jun 2011, 6:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •