• Resolved miketemby

    (@miketemby)


    Using the ESI feature causes javascript errors in Divi due to a line break (EOF) being added where a registered nonce is found within the pages html, resulting in “Unexpected EOF” error.

    EOF Error Screen Shot

    LS Cache Nonce List

    It seems like this ESI Nonces is being added with a preceding line break perhaps?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please share steps for how to reproduce/trigger this error so we can further investigate it ?

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m going to mark this topic “Resolved”, due to lack of activity.

    If you still need help, please feel free to re-open it.

    When re-open it, please also change the topic status to “not solved”

    Best regards,

    Thread Starter miketemby

    (@miketemby)

    ..right, so you take 3 weeks to respond to the post but you close it because i didn’t respond in 6 days..

    You can reproduce it by turning on ESI….

    Divi outputs a variable called et_pb_custom which contains a heap of stuff including a nonce called et_frontend_nonce. As per the second screen shot, this nonce is included by default in the list of predefined ESI nonces.
    When you turn ESI on, as per first screen shot, the format of the variable is broken (by adding a line break before the nonce) causing javascript errors…. “unexpected EOF”

    • This reply was modified 3 years, 8 months ago by miketemby.
    • This reply was modified 3 years, 8 months ago by miketemby.
    • This reply was modified 3 years, 8 months ago by miketemby.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    my apologies

    I was off the grid for while due to some family matter.

    for the nonce issue , I could not reproduce it on a clean newly installed WP with Divi and LSCWP , please provide some more specific detail for how exactly to reproduce/trigger the issue

    Best regards,

    Thread Starter miketemby

    (@miketemby)

    Hi

    I have done some detailed investigation and I must apologise. It turned out that an empty line before the opening <?php tag, on one of the included php files within the child theme was causing the issue.
    It’s quite bizarre that the only issue this caused was this line return before the nonce value when ESI is turned on in LS Cache but hey…

    https://www.dropbox.com/s/3ndz32w7zf203jn/EOF%20Error.png?dl=0

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ESI – Divi {et_frontend_nonce} Line Break’ is closed to new replies.