Announcement

Collapse
No announcement yet.

"Account" entity forever loading when clicked i.e.., not opening

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

  • "Account" entity forever loading when clicked i.e.., not opening

    I have shifted my ESPO crm from one server to another server by following all the required steps. Now my all entities are working fine but when i click on Accounts the list of records view doesnt opens and instead "loading" tag continues. But when i try to access an Account Details page through a Contact Record it opens. So the main Account List View page is not opening

    Screenshot Attached Click image for larger version

Name:	Screenshot (14).png
Views:	441
Size:	79.4 KB
ID:	55382

  • #2
    Hello,
    try to reproduce this issue in the incognito mode. If it won't be reproduced then clear web browser cache with via advanced settings. If the error will occur then open dev tools in your browser by pressing F12 button. Open a Console tab and reproduce the error again. After this provide us a screenshot with the Console tab log.

    Comment


    • #3
      Thank you so much, it was working in incognito, so as you said i cleared the browser cache and now its working

      Comment


      • #4
        UPDATE: Resolve solution here: https://forum.espocrm.com/forum/gene...6152#post56152

        --- Original post below.

        I have no idea what I did but I seem to broke my EspoCRM as well. Can't create any new contact. The last change I did was to the Layout Manager > Contact > List (small), added a few newer column (Phone & Enum field) and now I got this error.

        Try clear cache and rebuild. Still fail.
        Use a Incognito/Private browsing but still fail.
        Also try to reset to Default all of Layout > Contacts. Fail to work.

        F12 Console giving this error:

        SyntaxError: invalid escape sequence

        jquery-2.1.4.min.js:2:15

        ---

        Not sure what to do at the moment. The log also showing nothing as well. I can still view existing contact, but cannot create new one.

        It look like it got something to do with this file:

        /client/lib/jquery-2.1.4.min.js

        The 2:15 indicate the code is on Line 2. Not sure what 15 is, start at 15th letter?

        ---

        Used Chrome Console and it reveal a bit more detail:
        HTML Code:
        VM1647:3 Uncaught (in promise) SyntaxError: Invalid or unexpected token
            at new Function (<anonymous>)
            at child.parseDefaultValue (model.js:132)
            at child.populateDefaults (model.js:106)
            at child.populateDefaults (eval at _execute (loader.js:94), <anonymous>:568:24)
            at child.setupBeforeFinal (eval at _execute (loader.js:94), <anonymous>:81:22)
            at child.setup (eval at _execute (loader.js:94), <anonymous>:878:18)
            at child.initialize (bull.js:276)
            at child.Backbone.View (backbone-min.js:1224)
            at child [as constructor] (backbone-min.js:1884)
            at child [as constructor] (backbone-min.js:1884)
        Code:
        VM2099:3 Uncaught SyntaxError: Invalid or unexpected token
            at new Function (<anonymous>)
            at child.parseDefaultValue (model.js:132)
            at child.populateDefaults (model.js:106)
            at child.populateDefaults (eval at _execute (loader.js:94), <anonymous>:568:24)
            at child.setupBeforeFinal (eval at _execute (loader.js:94), <anonymous>:81:22)
            at child.setup (eval at _execute (loader.js:94), <anonymous>:878:18)
            at child.initialize (bull.js:276)
            at child.Backbone.View (backbone-min.js:1224)
            at child [as constructor] (backbone-min.js:1884)
            at child [as constructor] (backbone-min.js:1884)
        parseDefaultValue @ model.js:132
        populateDefaults @ model.js:106
        populateDefaults @ VM1756:568
        setupBeforeFinal @ VM2098:81
        setup @ VM1755:878
        initialize @ bull.js:276
        Backbone.View @ backbone-min.js:1224
        child @ backbone-min.js:1884
        child @ backbone-min.js:1884
        child @ backbone-min.js:1884
        child @ backbone-min.js:1884
        child @ backbone-min.js:1884
        (anonymous) @ bull.js:114
        (anonymous) @ bull.js:98
        (anonymous) @ loader.js:100
        _executeLoadCallback @ loader.js:99
        proceed @ loader.js:126
        (anonymous) @ loader.js:133
        load @ loader.js:268
        require @ loader.js:154
        define @ loader.js:132
        root.define.Espo.define @ loader.js:440
        eval @ VM2098:29
        _execute @ loader.js:94
        (anonymous) @ loader.js:341
        j @ jquery-2.1.4.min.js:2
        fireWith @ jquery-2.1.4.min.js:2
        x @ jquery-2.1.4.min.js:4
        (anonymous) @ jquery-2.1.4.min.js:4
        load (async)
        send @ jquery-2.1.4.min.js:4
        ajax @ jquery-2.1.4.min.js:4
        load @ loader.js:322
        require @ loader.js:154
        root.require.Espo.require @ loader.js:423
        eval @ VM16:425
        _getViewClass @ bull.js:96
        create @ bull.js:110
        (anonymous) @ bull.js:823
        createView @ bull.js:813
        setupRecord @ VM2097:75
        setup @ VM2097:52
        initialize @ bull.js:276
        Backbone.View @ backbone-min.js:1224
        child @ backbone-min.js:1884
        child @ backbone-min.js:1884
        child @ backbone-min.js:1884
        child @ backbone-min.js:1884
        (anonymous) @ bull.js:114
        (anonymous) @ bull.js:98
        (anonymous) @ loader.js:100
        _executeLoadCallback @ loader.js:99
        proceed @ loader.js:126
        (anonymous) @ loader.js:133
        load @ loader.js:268
        require @ loader.js:154
        define @ loader.js:132
        root.define.Espo.define @ loader.js:440
        eval @ VM2097:29
        _execute @ loader.js:94
        (anonymous) @ loader.js:341
        j @ jquery-2.1.4.min.js:2
        fireWith @ jquery-2.1.4.min.js:2
        x @ jquery-2.1.4.min.js:4
        (anonymous) @ jquery-2.1.4.min.js:4
        load (async)
        send @ jquery-2.1.4.min.js:4
        ajax @ jquery-2.1.4.min.js:4
        load @ loader.js:322
        require @ loader.js:154
        root.require.Espo.require @ loader.js:423
        eval @ VM16:425
        _getViewClass @ bull.js:96
        create @ bull.js:110
        (anonymous) @ controller.js:338
        master @ controller.js:244
        main @ controller.js:261
        eval @ VM1002:205
        Promise.then (async)
        create @ VM1002:186
        actionCreate @ VM1002:210
        doAction @ controller.js:213
        eval @ VM16:313
        getController @ VM16:380
        doAction @ VM16:311
        eval @ VM16:295
        triggerEvents @ backbone-min.js:369
        triggerApi @ backbone-min.js:356
        eventsApi @ backbone-min.js:155
        Events.trigger @ backbone-min.js:346
        dispatch @ router.js:325
        eval @ VM1753:346
        (anonymous) @ jquery-2.1.4.min.js:2
        j @ jquery-2.1.4.min.js:2
        fireWith @ jquery-2.1.4.min.js:2
        x @ jquery-2.1.4.min.js:4
        (anonymous) @ jquery-2.1.4.min.js:4
        load (async)
        send @ jquery-2.1.4.min.js:4
        ajax @ jquery-2.1.4.min.js:4
        ajaxRequest @ VM18:191
        ajaxPostRequest @ VM18:208
        actionDuplicate @ VM1753:340
        handleAction @ utils.js:42
        click .action @ VM1004:41
        dispatch @ jquery-2.1.4.min.js:3
        r.handle @ jquery-2.1.4.min.js:3
        Show 34 more frames
        Last edited by esforim; 02-20-2020, 05:09 AM.

        Comment


        • #5
          Hi,
          did you try to reproduce your issue with the way I described above https://forum.espocrm.com/forum/gene...384#post55384?

          Comment


          • #6
            UPDATE: Resolve solution here: https://forum.espocrm.com/forum/gene...6152#post56152

            --- Original post below.

            Originally posted by Maximus View Post
            Hi,
            did you try to reproduce your issue with the way I described above https://forum.espocrm.com/forum/gene...384#post55384?
            Hi Maximus,

            Yes, tried it. I forgot to mention Chrome is my "Test" browser. No extension/setting is change on Chrome. Also used incognito during test, still getting the error.

            I tried to reproduce on the demo.espocrm.com but couldn't get it to trigger the error.

            Reading that console error (pasted above, unless you want the screenshot of it also), it seem that
            Code:
            Invalid or unexpected token <anonymous>
            Might mean something

            Really need it fix because Contacts is what most important.
            Last edited by esforim; 02-20-2020, 05:09 AM.

            Comment


            • #7
              What 'new Function (<anonymous>)' is? Did you make some code customisation (changed or created any files in the /client directory)?

              Comment


              • #8
                UPDATE: Resolve solution here: https://forum.espocrm.com/forum/gene...6152#post56152

                --- Original post below.

                Originally posted by Maximus View Post
                What 'new Function (<anonymous>)' is? Did you make some code customization (changed or created any files in the /client directory)?
                No code was changed (file editing). All modification is through GUI/Administration panel only. I don't even have Formula, no Workflow either.

                As for the question "new Function (<anonymous>)" I don't know either. That what the Console (Chrome F12) showing as the error. Firefox doesn't show that, see Post https://forum.espocrm.com/forum/gene...5931#post55931

                Top one is Firefox

                F12 Console giving this error:

                Code:
                SyntaxError: invalid escape sequence
                
                jquery-2.1.4.min.js:2:15
                Look like I probably won't be able to get this fix or anyone else that have the same issue as me.

                I hope once I update to 5.8 this error automatic fix.

                If there any other idea you may have to finding out what the issue is I can provide those information. It a weird error too, I didn't do any major changes at all.
                Last edited by esforim; 02-20-2020, 05:08 AM.

                Comment


                • #9
                  Could you zip your custom directory and provide it? I will try to check. If I will be able to reproduce, it may help to define the problem.

                  Comment


                  • #10
                    UPDATE: Resolve solution here: https://forum.espocrm.com/forum/gene...6152#post56152

                    --- Original post below.

                    Originally posted by Maximus View Post
                    Could you zip your custom directory and provide it? I will try to check. If I will be able to reproduce, it may help to define the problem.
                    I have finally manage to upgrade to 5.8.2. Unfortunately the error did not "self-fix". Here is the link to download the custom folder.

                    (please check PM)

                    I look through the file. Could it be that .htaaccess file causing the error? I can create New record for everything but Contact though. (Account, Opportunities, Meeting, Email, etc)

                    --- (All these update below are some method I try to fix. Still no solutions so can be ignore or if you want also give it a try.

                    Update 1: I file edit the .htaaccess file from this code to blank . I also disable all the extension except for Real Estate one but still having issue.

                    Code:
                    Order Deny,Allow
                    Deny from all
                    At a lost at the moment. I wonder if extracting the 5.8.2.zip file will be OK. Maybe that will fix any corrupted file(?). But it might overwrite my config.php and it might not include "post-installation" folder.

                    For the time being I will try exact all of the "/clients/" folder again see if that help.

                    ---
                    Update 2: Using the 5.8.2 "/client/" folder did not help. Still got the error.

                    Next I thought, could it be Role? It can't be, I'm logged in using the original admin account. But I will look through it all and see. Maybe even admin can be blocked? I remember testing it on a dummy account but that didn't work either.

                    Created another dummy Admin but still not working.

                    ---

                    Update 3: Disable Real Estate extensions also.

                    Could it be due to Relationship? But if I remove these I'm scare that once I add it back it will not populate and the data is all gone.
                    Last edited by esforim; 02-20-2020, 05:08 AM.

                    Comment


                    • #11
                      UPDATE: Resolve solution here: https://forum.espocrm.com/forum/gene...6152#post56152

                      --- Original post below.

                      Finally success! Well it is a work in progress still but at least there is a Light at the end of the Tunnel. Here how I temporary fixed it. I think it must be corruption of some file.

                      Still need to find out which folder my Entity is in so I can fixed it up in the newer version. So I still need help. But here is a solution for those who is struck.

                      I use subdomain for my EspoCRM so this instructions is cater for that. Feel free to ask me if there any part that isn't clear.

                      1) Create a new subdomain. Let call it CRM2
                      2) Extract EspoCRM 5.8.2 to that subdomain folder.
                      3) Copy the "data/config.php" file from CRM1 to CRM2 folder
                      4) Use CRM2. Log in. Test if you still have issue such as Creating New Contact.
                      5) All working?

                      Now move the following folder (this part is the work in progress):

                      /Data/
                      /Custom/
                      /application/Espo/Modules/
                      /client/modules


                      ---

                      I move the Custom folder over but none of my created entity showing up. I have clear Cache and Rebuild, log out, log in but it still not there. Not sure what I am missing

                      ---

                      Out one of those file corrupted it. It stopped working again.

                      ---

                      I think you are absolute right Maximus, one of the Custom entity is breaking it. Now I have to find which on specifically.

                      After hour is tracking down, refresh and rebuild I have narrow it down further. The custom entity is not causing the issue. The issue reside in the following folder:

                      /custom / Espo / Custom / Resources /

                      Next step is to find out which file specifically.
                      Last edited by esforim; 02-20-2020, 05:08 AM.

                      Comment


                      • esforim
                        esforim commented
                        Editing a comment
                        Hi everyone. Problem is finally resolve. I am so stupid. On another post I tried to create a "Filename" field (ie.Read Only field that drag information from multiple field into a single field. For example: Full Name - Phone Number so I can copy/paste this field to name my Folder on Desktop.

                        Using the video about Javascript I did a test to see if I used this in the Default value: "javascript: datetime\today()"

                        So each time I tried to create a new Contact, this Default Value get activate and I'm getting an error as above.

                        I'm happy it been resolve. All I did was remove the field or the default value and it all working again.

                        Would this be considered a bug then? Contact creation shouldn't stop working because of a bad default value.

                        ---

                        To prove my point and to reproduce, I decide to break the demo.espocrm.com by adding that value. Please see field:


                        Update for a permanent fix: https://forum.espocrm.com/forum/bug-...-default-value
                        Last edited by esforim; 02-20-2020, 10:28 PM.
                    Working...
                    X