Announcement

Collapse
No announcement yet.

Another bug!! Oouttcchh!!!

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Another bug!! Oouttcchh!!!

    In my simple form aplicattion when I try to use Quick Search I get next error:

    PHP Fatal error: Call to a member function Execute() on a non-object in C:\Program Files (x86)\NetMake\v6\wwwroot\scriptcase\app\project\fo rm_usuarios\form_usuarios_apl.php on line 6251

    If I check about form_usuarios_apl.php on line 6251 I get this:


    ......

    if ($condicao == "lt")
    {
    $nm_comando = str_replace("LIKE '%$campo%'", "< '$campo'", $nm_comando);
    }
    if ($condicao == "le")
    {
    $nm_comando = str_replace("LIKE '%$campo%'", "<= '$campo'", $nm_comando);
    }
    $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_comando;
    $_SESSION['scriptcase']['sc_sql_ult_conexao'] = '';
    if ($rx = $this->Ini->nm_db_conn_mysql->Execute($nm_comando))
    {
    while (!$rx->EOF)
    {
    $chave = $rx->fields[1];
    $label = $rx->fields[0];
    if ($condicao == "eq" && $campo == $label)
    {
    $result[] = $chave;
    }

    ...

    you can help me?
    seems to be like another SC bug :-(
    --
    Doing my first steps with ScriptCase.
    What a wonderful tool...!

  • #2
    If I look at the code then there must be something wrong with the database connection. Appearantly $this or $this-> ini is referencing a null pointer.
    It might be a bug, but check if you haven't by accident set some parameters wrong causing this error.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      this code is generated by ScriptCase.
      All form application works well. Except quick search, who says "call to a member function Execute() on a non-object in " on each submit :-(

      can you help me?
      --
      Doing my first steps with ScriptCase.
      What a wonderful tool...!

      Comment


      • #4
        Because you have this problem in SC6 I'm not sure it's a bug, We haven't had this issue and we are a heavy user. Also if this is an obvious bug everybody would complain here about it as this quick search is everywhere.

        You must have misposted this as the link you give is NetMake\v6\wwwroot

        Not sure how we can help here.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          so you recommend me go to v7 ?
          --
          Doing my first steps with ScriptCase.
          What a wonderful tool...!

          Comment


          • #6
            No, this post is put in scriptcase 7 bugs and you are running sc6 so you posted it at the wrong place. But I have a feeling that you have misset something because the quicksearch is almost used everywhere and problems should be reported ages ago. But I don't see how I can give you better help because I cannot reproduce it and I cannot look over your shoulder. Best advise I can give you is to create a small testing app on the same table and see if it also gives you an error. If so then contact sc support regarding this.
            Albert Drent
            aducom software netherlands
            scriptcase partner, reseller, support and (turn-key) development
            www.scriptcase.eu / www.scriptcase.nl

            Comment


            • #7
              Originally posted by aducom View Post
              No, this post is put in scriptcase 7 bugs and you are running sc6 so you posted it at the wrong place. But I have a feeling that you have misset something because the quicksearch is almost used everywhere and problems should be reported ages ago. But I don't see how I can give you better help because I cannot reproduce it and I cannot look over your shoulder. Best advise I can give you is to create a small testing app on the same table and see if it also gives you an error. If so then contact sc support regarding this.

              thank you . I will try!

              regards
              andres.
              --
              Doing my first steps with ScriptCase.
              What a wonderful tool...!

              Comment


              • #8
                Hello Mr. Andres,

                It seems to me that the problem might be happening due to an external factor such as application logic, a missing connection (as aducom noticed).

                Please contact our support regarding this issue. Our chat is active on workdays from 8:00am to 6:00pm, and our ticket system is always available.

                regards,
                Bernhard Bernsmann

                Comment


                • #9
                  Hello,

                  I have the same problem.

                  How do I fix?

                  Help me please.

                  thanks

                  Comment


                  • #10
                    Hello,

                    I recommend you to get in touch with our support: https://www.scriptcase.net/scriptcase-support/

                    regards,
                    Bernhard Bernsmann

                    Comment


                    • #11
                      Thanks for responding,

                      Unfortunately, my support period has expired, it is for this situation that I turn to for answers forum.

                      thanks

                      Comment


                      • #12
                        I had this problem V7 and solved it for me.

                        In a form application;
                        I had a field called "STATUS" which was also a quicksearch field;
                        I had set it up with data type 'select';
                        I set up an automatic lookup;

                        In the automatic lookup section under 'Choose connection', I selected my regular connection for the database which caused the error when I used quicksearch on the STATUS field at runtime.

                        I changed 'Choose connection' back to blank and no more error.

                        Comment


                        • #13
                          I have the same problem.
                          if i open a project and do only the RUN command on a form or grid i got the same message.
                          My solution: I do the GENERATE command on a from or grid, then the problem is fixed !

                          Comment


                          • #14
                            Originally posted by chanton View Post
                            Thanks for responding,

                            Unfortunately, my support period has expired, it is for this situation that I turn to for answers forum.

                            thanks
                            Hello,

                            As this is a bug, you can contact our support as a trial user.

                            https://www.scriptcase.net/scriptcase-support/

                            regards,
                            Bernhard Bernsmann

                            Comment

                            Working...
                            X