• locnguyen

    (@locnguyen)


    I tried to follow the topic on Troubleshooting section about this issue, but still could not solve it. The XHR request got 200 OK status with unreadable characters.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi locnguyen,

    Does it happen for all menu items, or just one of them?

    Please can you post a screenshot of what’s being returned for the request?

    Regards,
    Tom

    Thread Starter locnguyen

    (@locnguyen)

    Hi Tom

    Yes, it happens for all menu items. Please check the screenshot:

    https://monosnap.com/file/150EA47CXy0OxHi8BmKaGEP9S0jzRk

    Thank you in advance!

    Plugin Author megamenu

    (@megamenu)

    Hi locnguyen,

    Thanks for the screenshot. That’s not correct, and it’s not something I’ve seen before and I’m also not sure where to start with debugging that. It looks like an encoding issue.

    Are you working locally?

    Regards,
    Tom

    Thread Starter locnguyen

    (@locnguyen)

    Hi Tom

    It’s a working site but I can clone it to a dev site. Could you please check on that dev site for the issue reason then?

    Thank you in advance!

    Plugin Author megamenu

    (@megamenu)

    Hi locnguyen,

    Before you do that, can you try the usual – disable all plugins/switch theme?

    Regards,
    Tom

    Thread Starter locnguyen

    (@locnguyen)

    Hi Tom

    I have found the line of code which caused the issue:

    if ( ob_get_contents() ) ob_clean();

    I removed this line of code in the ajax_get_lightbox_html function then the issue gone away

    Plugin Author megamenu

    (@megamenu)

    Hi locnguyen,

    Interesting (and good to know for future reference). That line of code has been in there for years, and I haven’t seen this before. Does your host give you the option to switch PHP version? Can you see if it’s specific to one version?

    Regards,
    Tom

    Thread Starter locnguyen

    (@locnguyen)

    Hi Tom

    My website is using PHP Version 7.1.33 but I don’t think the issue is specific to this PHP version. It was all OK from last year and the issue just appeared last month.

    Plugin Author megamenu

    (@megamenu)

    Hi locnguyen,

    Ok, that’s also interesting. I assumed you were a new user.

    Can you try replacing this line:

    if ( ob_get_contents() ) ob_clean();

    with:

    if ( ob_get_contents() ) var_dump( ob_get_contents() );

    Then check the response?

    “ob_get_contents” should be empty/return false. If not, it usually means a different plugin or some code is outputting some information where it shouldn’t be.

    Regards,
    Tom

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Blank screen when clicking Mega Menu button’ is closed to new replies.