Web-to-Lead question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cracksilver
    Junior Member
    • Feb 2022
    • 13

    Web-to-Lead question

    Hi there

    I'm using EspoCRM 8.0.3, SalesPack 1.1.9, Espo Plus 1.8.2

    Tried to configure a contact form to catch the messages from my homepage directly to EspoCRM as leads.

    - activated entity leads
    - added a new Web-To-Lead entry point
    - new folder in public html called /test
    - added index.php (664) with this HTML code: https://dubas.pro/link/Np3Wy
    - send.php (775) files with this PHP script: https://dubas.pro/link/Bw6AC
    - changed API Link in send.php to my API Link from the entry point
    - filled the form and clicked send button

    There is nothing happen. I just get a white blank page after a while.
    Whether a new lead in the lead list nor something in the protocol.

    All this information I got from this Video from devcrm.it: https://www.youtube.com/watch?v=Fe2V5-mry8g&t=39s

    Does someone has any ideas or know where I can get some log entries? Or should I go a completely other way to reach my goal?

    best regards cracksilver

  • Vadym
    Super Moderator
    • Jun 2021
    • 345

    #2
    Hi cracksilver,

    Please provide error log: {ESPO_ROOT}/data/logs/ and related screenshots to get more details.
    Also, perhaps the following thread will be helpful:

    Comment

    • cracksilver
      Junior Member
      • Feb 2022
      • 13

      #3
      [2024-01-10 13:53:35] WARNING: (404) Controller '75a0d3ec6aef598f00b90cb554e13664' does not exist.; GET /75a0d3ec6aef598f00b90cb554e13664; line: 190, file: /var/www/espocrm/application/Espo/Core/Api/ControllerActionProcessor.php

      Comment

      • cracksilver
        Junior Member
        • Feb 2022
        • 13

        #4
        this is the only entry in the log. But the API number is from the very first test. Meanwhile I use a new entry point because the first one didn't work.

        Comment

        • cracksilver
          Junior Member
          • Feb 2022
          • 13

          #5
          Originally posted by Vadym
          Hi cracksilver,
          Also, perhaps the following thread will be helpful:
          https://docs.espocrm.com/administration/web-to-lead
          If I go with this manual, where should I put this code in? And does I need php or phyton or both of this?
          thx for further assistance.

          Comment

          • lazovic
            Super Moderator
            • Jan 2022
            • 809

            #6
            Hi cracksilver,

            I just tested the solution provided by devcrm.it and it works correctly.
            After entering the data in the form, we actually get to an empty window (and this is normal, in the video we also get to an empty window). At the same time, a new lead record appears in EspoCRM.

            However, there is a more lightweight solution, using a HTML file: https://docs.espocrm.com/administrat...-a-web-browser.

            You just need to create a file on the server with any name and HTML format (like web-to-lead.html)​, and then run it in the browser.
            Please keep in mind that you need to change one line in the file ( let url = 'https://URL_OF_YOUR_CRM/api/v1/LeadCapture/API_KEY'; ) to the value that you can find on the Detail View of your Web-to-Lead in the instance.

            However, could you please show a screenshot of your Web-to-Lead settings in your instance? Perhaps there will be a reason for the problem with the solution from devcrm.it.​

            Comment

            • cracksilver
              Junior Member
              • Feb 2022
              • 13

              #7
              ​Hi lazovic

              Thanks for reply. It is true, in the video shows a white page aswell. But he becomes after sending the form some entries below in his protocol. That's what i miss ;-)

              Below you see my entry point. Actually there isn't much to do...

              Click image for larger version

Name:	grafik.png
Views:	130
Size:	288.7 KB
ID:	101472

              Comment

              • lazovic
                Super Moderator
                • Jan 2022
                • 809

                #8
                cracksilver,

                Please check the server errors logs on which EspoCRM is hosted. Maybe some requests from outside are prohibited.

                Comment

                • cracksilver
                  Junior Member
                  • Feb 2022
                  • 13

                  #9
                  I can see the follow.
                  access.log: 192.168.2.66 - - [11/Jan/2024:22:52:11 +0100] "POST /test/send.php HTTP/1.0" 200 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0" "-"

                  nothing in the error.log

                  Comment

                  • cracksilver
                    Junior Member
                    • Feb 2022
                    • 13

                    #10
                    I just tried this way: https://docs.espocrm.com/administration/web-to-lead ​with the directly in webbrowser method. It works great and EspoCRM writes new entries in the protocol.

                    But how to make the form as nice as like the one from devcrm.it ?

                    Comment

                    Working...