Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello,

    I have a kind of similar problem with myself developed child theme. With the parent premium theme and standard themes everything works fine.

    When I click the “mega menu” button only the modal window itself appears with only [x] button on the side and a spinning wheel while ajax request is being fired. It never loads any other menu items of this modal window:

    I’ve started debugging the case and found out that instead of getting json markup I get only “broken” symbols in response, something like:

    � ��k�䶕���� �w���]�����b0�����ȇm���XUڑD�DuO’�_^t�D��%c�

    The number of these “broken” symbols is exact the same as the number of symbols in the correct json response object from the server for other proper themes as twentythree or the premium one that I am inheriting on.

    So I suggested there was some trouble with encoding and found out that in my child theme I don’t get two headers in the response object: Content-Encoding: gzip and Vary: Accept-Encoding that are sent in the responses to other themes. Here is the diff between request/response for my child theme (on the left) and other themes. The only difference is in these two response headers.

    I can’t imagine why this might happen. I am not also sure that those headers are the reason of broken symbols.

    Again this trouble takes place only in my child-theme, so I guess it is the real reason, but I don’t know what could I do the wrong way to break it down and the child-theme overrides several files.

    Of course the encoding of the html document itself is UTF-8, DB collation is utf8_unicode_ci, plugin and WP are updated to the latest version, ajax request is sent in UTF-8 by default as I know.

    It would be great to get any help! Thanks in advance!

Viewing 1 replies (of 1 total)