Keyword

Invalid backend response. Data is not JSON.

  • craig kennedy
  • craig kennedy's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 1 day ago #177000 by craig kennedy
Invalid backend response. Data is not JSON. was created by craig kennedy
Fresh instal of K2 in current version of Joomla (Joomla 3.9.21, K2 Version 2.10.3)
Everything works except when I go to add an image to an item, and browse the server. The media window appears, then I get an error

Invalid backend response.
Data is not JSON.,

But instead of it ending with just that, what I actually have is a complete page (screen shown below). I deleted the assets folder and ran the K2 install again but no change.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 1 day ago #177001 by Fotis
The JSON response may not validate as JSON data if some PHP notice/warning/error is also output at the response. This can happen e.g. because some system plugin is old and throws such warnings everywhere in the Joomla backend.

To verify this is the issue, switch error reporting to "none" in Joomla's Global Configuration.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • craig kennedy
  • craig kennedy's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 21 hours ago #177002 by craig kennedy
Replied by craig kennedy on topic Invalid backend response. Data is not JSON.
ok error reporting set to none seems to clear the issue, so the question is, will this be a K2 plugin or some other one?

Thanks by the way

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 18 hours ago #177003 by Fotis
It's most likely some other system plugin. If you switch error reporting to maximum and revisit the K2 Media Manager, open up your browser's console and check the JSON response's output. It should show the PHP errors/notices/warnings that cause the output not to validate as JSON data.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum