Strange Behaviour and Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1606

    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.
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    In such cases enabling printTrace for the log can help to figure out. https://docs.espocrm.com/administration/log/#parameters
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1606

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

      Comment

      • lazovic
        Super Moderator
        • Jan 2022
        • 810

        #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

        • shalmaxb
          Senior Member
          • Mar 2015
          • 1606

          #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

          • shalmaxb
            Senior Member
            • Mar 2015
            • 1606

            #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

            • yuri
              Member
              • Mar 2014
              • 8453

              #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.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              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.
            • shalmaxb
              Senior Member
              • Mar 2015
              • 1606

              #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...