API returning malformed JSON

[ad_1]

Developer here but no experience with WordPress.

I am trying to help out a friend and noticed this in their installation. All REST API responses are malformed with the same HTML comment in the response, for example:

<!-- Global site tag (gtag.js) - Google Analytics -->
  {"plugin":"buttonizer","status":"success","result":[],"warning":[],"premium":false}

This also happens when trying to update a plugin. The update works but the admin panel reports an error as I am assuming it can't parse the response correctly. Here is an example: https://i.imgur.com/92wEcAh.png

Where do I even begin to search to be able to fix this?

Thanks in advance

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer