Announcement

Collapse
No announcement yet.

[SOLVED]form-bug?

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

  • [SOLVED]form-bug?

    Hello forum,

    if I create(provide) a form after the last update and want to run afterwards, entet always with the mistake message " Parse error: syntax error, unexpected '{' in C:\Program files (x86) \NetMake\v8\wwwroot\scriptcase\app\Laufzettel\form _mailcheck\sc_logged.php on Line 10 "

    Here the code of line 1 to 20

    1. ? php
    2. // __ NM ____ NM __ NFUNCTION __ NM __ //
    3.
    4. function sc_logged ($user)
    5. {
    6. $str_sql = " SELECT date_login FROM sec_logged WHERE login = ' ". $user. "'";
    7.
    8. sc_select (data, $str_sql);
    9.
    10. if ({data} === FALSE ||! isset ($data-> fields [0]))
    11. {
    12. sc_logged_in ($user);
    13. return true;
    14. }
    15. else
    16. {
    17. sc_reset_apl_conf ("sec_logged");
    18. sc_redir ("sec_logged", user = $ user, 'modal');
    19. return false;
    20. }

    Current I can create(provide) with Scriptcase no form. What I can do
    Last edited by HamburgSeaDevil; 04-23-2015, 04:58 AM.

  • #2
    Originally posted by HamburgSeaDevil View Post
    Hello forum,

    if I create(provide) a form after the last update and want to run afterwards, entet always with the mistake message " Parse error: syntax error, unexpected '{' in C:\Program files (x86) \NetMake\v8\wwwroot\scriptcase\app\Laufzettel\form _mailcheck\sc_logged.php on Line 10 "

    Here the code of line 1 to 20

    1. ? php
    2. // __ NM ____ NM __ NFUNCTION __ NM __ //
    3.
    4. function sc_logged ($user)
    5. {
    6. $str_sql = " SELECT date_login FROM sec_logged WHERE login = ' ". $user. "'";
    7.
    8. sc_select (data, $str_sql);
    9.
    10. if ({data} === FALSE ||! isset ($data-> fields [0]))
    11. {
    12. sc_logged_in ($user);
    13. return true;
    14. }
    15. else
    16. {
    17. sc_reset_apl_conf ("sec_logged");
    18. sc_redir ("sec_logged", user = $ user, 'modal');
    19. return false;
    20. }

    Current I can create(provide) with Scriptcase no form. What I can do
    Is this a piece of generated code, or a part of event code? It's obvious that there's a missing ) after FALSE. The line should be:

    10. if (({data} === FALSE) ||(! isset ($data-> fields [0])))
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Der Code wird so von Scriptcase generiert. Danke für die Info, so kann ich mich behelfen.

      The code is generated by ScriptCase . Thanks for the info , I can manage myself .

      Comment


      • #4
        Leider läuft das Formular im Generator auch dann nicht, wenn ich den Code von Hand ändere.

        Unfortunately, the form in the generator will not play if I change the code by hand .

        I use ScriptCase Devel : 8.0.041
        Last edited by HamburgSeaDevil; 04-23-2015, 05:16 AM.

        Comment


        • #5
          Originally posted by HamburgSeaDevil View Post
          Leider läuft das Formular im Generator auch dann nicht, wenn ich den Code von Hand ändere.

          Unfortunately, the form in the generator will not play if I change the code by hand .

          I use ScriptCase Devel : 8.0.041
          No, I think that you need to change the code after generating The log section most likely will be regenerated on every form change. The 'fun' part is that I'm using the logging pretty intense and have no issues, so I wonder where this problem comes from. One thing to try is to create a new form under a different name and apply loggin to see if this gives you the same problem.
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment


          • #6
            I have created a new user .
            Under the new user I created in an existing project a new form.
            The same error occurs again.
            If I change the error by hand , the change from the generator at the start of the form is changed again into Incorrect .

            Ich habe einen neuen User angelegt.
            Unter dem neuen User habe ich in einem bestehenden Projekt ein neues Formular erstellt.
            Der selbe Fehler tritt erneut auf.
            Wenn ich den Fehler von Hand ändere, wird die Änderung vom Generator beim Start des Formulares wieder ins Fehlerhafte geändert.

            Comment


            • #7
              I have under the new user creates a new project and then create a new form .
              Now it works without error.
              But of course I have to work on my old project and my old forms more.

              Ich habe unter dem neuen User ein neues Projekt erzeugt und dann ein neues Formular.
              Nun klappt es ohne Fehler.
              Aber ich muss natürlich an mein altes Projekt und an meine alten Formulare weiter arbeiten

              Comment


              • #8
                Hello,

                This application was created in security module of scriptcase?
                Please, send me this application and tables for we check better the problem.
                send to email? bugs@netmake.net

                --
                Best Regard
                Netmake team
                Last edited by Artur Oliveira; 04-24-2015, 08:46 AM.

                Comment


                • #9
                  I sent the files via email.
                  The files were created in the security mode.

                  My Version: 8.00.0042

                  Best Regard
                  Last edited by HamburgSeaDevil; 04-29-2015, 08:05 AM.

                  Comment


                  • #10
                    I have created a new project and the old forms imported into the new project.

                    Now I can create new forms.

                    The ticket can be closed.

                    Best Regards

                    Comment

                    Working...
                    X