Support

Account

Home Forums Bug Reports Intermittent Javascript Error prevents page from rendering

Solving

Intermittent Javascript Error prevents page from rendering

  • We are seeing an intermittent error on this page:
    https://eatlocalfirst.org/wa-food-farm-finder/

    It happens a couple times a day, when it happens the page does not render correctly. After a few refreshes it goes away. I am guessing that its an order of operations problem. Any idea how to fix?

    jquery.min.js?ver=3.6.4:2 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at acf.Model.addProLocations (VM10697 acf-field-group.min.js:1:25473)
    at acf.Model.initialize (VM10697 acf-field-group.min.js:1:25199)
    at acf.Model.e (acf.min.js?ver=6.1.7:1:3283)
    at o (acf.min.js?ver=6.1.7:1:1417)
    at Object.doAction (acf.min.js?ver=6.1.7:1:587)
    at n.doAction (acf.min.js?ver=6.1.7:1:19465)
    at HTMLDocument.<anonymous> (acf.min.js?ver=6.1.7:1:28734)
    at e (jquery.min.js?ver=3.6.4:2:30158)
    at t (jquery.min.js?ver=3.6.4:2:30460)

  • Turns out I am having a different issue that is breaking the page.

    But that function is still having an error.

    in acf-field-groups.js addProLocations function.

    ProLocationTypes is null but its object type is still an object. So the Object.entries function is triggering an error.

  • I am experiencing this as well. I cannot make changes to an existing group.

    TypeError: Cannot convert undefined or null to object
        at Function.entries (<anonymous>)
        at acf.Model.addProLocations (acf-field-group.min.js?ver=6.2.0:1:25790)
        at acf.Model.initialize (acf-field-group.min.js?ver=6.2.0:1:25516)
        at acf.Model.e (acf.min.js?ver=6.2.0:1:3259)
        at o (acf.min.js?ver=6.2.0:1:1405)
        at Object.doAction (acf.min.js?ver=6.2.0:1:575)
        at n.doAction (acf.min.js?ver=6.2.0:1:19006)
        at HTMLDocument.<anonymous> (acf.min.js?ver=6.2.0:1:28275)
        at e (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.2.2:2:30158)
        at t (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.2.2:2:30460)
  • You should contact the developers or open a ticket in your account.

    Also, you might want to enable script debugging to get a more accurate idea of where there errors are happening.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.