Announcement

Collapse
No announcement yet.

Strange Behaviour and Error

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

  • Strange Behaviour and Error

    Whne I create a new record, on saving it does not go back to the detail view of the record, but displays an empty page. The error does not tell anything, see screenshot.
    Attached Files
    Last edited by shalmaxb; 10-04-2024, 03:07 PM.

  • #2
    In such cases enabling printTrace for the log can help to figure out. https://docs.espocrm.com/administration/log/#parameters

    Comment


    • #3
      Configured with printTrace and DEBUG, not more information. Nothing in server logs.

      Comment


      • #4
        Hi shalmaxb,

        Could you please check what happens in the browser console when the record is created and saved? Is there any information or errors there?

        Comment


        • #5
          Only this:

          test-1728041217953.log

          and this​

          Click image for larger version  Name:	console_04102024.jpg Views:	0 Size:	39.0 KB ID:	110864
          Attached Files
          Last edited by shalmaxb; 10-04-2024, 11:30 AM.

          Comment


          • #6
            What is strange is, that the URL of the blank page is correct by entity and id. When I refresh the record, all is in place. I also can copy the URL of the blank page and insert in a new browser tab and it will be displayed correctly.

            When I hit the button save and new, it works.
            When I hit the button save and edit, it saves and keps the edit view open. I edit one thing and hit sav and then it works as should.
            Last edited by shalmaxb; 10-04-2024, 03:13 PM.

            Comment


            • #7
              It looks like that some text field has a value that is not a string. But not sure enough. We could add a check for it but would be good to know how does this happen. Maybe some customization. Maybe you set something in formula.

              Comment


              • shalmaxb
                shalmaxb commented
                Editing a comment
                Thank you, that is at least a start point. I had been a bit lost already, where to begin. I will search for anything like that. It is right, I use a lot of customization and formulas.

            • #8
              yuri, that did it. I deactivated all formulas to find the culprit. It was a formula to create a textfield from an Id, which is fetched from a relationship. When there was no record selected from the related entity, this textfield had not been populated. I gave the field now a default value, so that on every new record, there is the textfiled populated automatically and now it works.
              Thank you again. It is such an advantage for us users, that you don`t keep yourself out of this forum.

              Comment

              Working...
              X