Keyword

Invalid backend response. Data is not JSON.

  • Giles Davidson
  • Giles Davidson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 10 months ago #174431 by Giles Davidson
Invalid backend response. Data is not JSON. was created by Giles Davidson
Getting this message in Media Manager and unable to use Media Manager. I'm using Joomla 3.9.14 and K2 2.10.2.

Any fixes available?

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

More
4 years 10 months ago #174446 by JoomlaWorks
Replied by JoomlaWorks on topic Invalid backend response. Data is not JSON.
Delete your /media/k2/assets/ folder and re-install K2. If that doesn't do anything, check if there are any file "ownership" issues with the folders the K2 Media Manager is trying to access (namely your /images folder if you haven't changed in through Joomla's Media Manager options - we use the same path for configuration).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Giles Davidson
  • Giles Davidson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 10 months ago #174469 by Giles Davidson
Replied by Giles Davidson on topic Invalid backend response. Data is not JSON.
Removed assets folder and reinstalled K2. Permissions on the images folder look OK.
Still getting the message: Invalid backend response. Data is not JSON. The most recent request was denied because it had an invalid security token. Please refresh the page and try again.

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

More
4 years 10 months ago #174474 by JoomlaWorks
Replied by JoomlaWorks on topic Invalid backend response. Data is not JSON.
Weird. Are you getting any other JS related errors? Perhaps some system plugin is causing issues.

Additionally, try switching your error reporting in Joomla's global configuration to "none". Your server may be outputting PHP notices or warnings and cause JSON transactions to fail.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Giles Davidson
  • Giles Davidson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 10 months ago #174485 by Giles Davidson
Replied by Giles Davidson on topic Invalid backend response. Data is not JSON.
Error reporting is already switched to 'None'.
I've cleared server and browser caches.

Browser developer console shows 2 messages:
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. index.php

JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js:2:552

The first is from administrator/index.php.
The second from media.jui/js/jquery-migrate.min.js
Neither is an error and I don't suppose they are the problem.

I don't see anything on the logs (assuming I'm looking at the correct ones. The installation is controlled via CPanel/Softaculous).

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

More
4 years 10 months ago #174491 by JoomlaWorks
Replied by JoomlaWorks on topic Invalid backend response. Data is not JSON.
If you use Chrome, switch to the "Network" tab and load the media manager. Clear all entries there, filter those of XHR type & hard refresh the page (Ctrl or Cmd plus Shift plus R).

Once the page reloads, spot the line with the JSON request, click on it and then once the new set of sub-tabs opens, switch to the "Response" tab. What does it show?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Giles Davidson
  • Giles Davidson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 9 months ago #174841 by Giles Davidson
Replied by Giles Davidson on topic Invalid backend response. Data is not JSON.
Apologies for lack of response - my original reply was trashed in a power outage, and subsequently I've been away.

In administrator/index.php line 490:12 the following URL is invoked:
url : '/test/j3/administrator/index.php?option=com_k2&view=media&task=connector',
height: 600

and this fails with reported message - I'm not seeing a Response tab as the error is clearly inside the the K2 Media module. Can you be more specific in the steps to follow from this point.

Thanks

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

  • Giles Davidson
  • Giles Davidson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 9 months ago #174848 by Giles Davidson
Replied by Giles Davidson on topic Invalid backend response. Data is not JSON.
OK _ found the response tab.

URL: test/j3/administrator/index.php?option=com_k2&view=media&task=connector&cmd=open&target=&init=1&tree=1&_=1581872988632

returned the message 'The most recent request was denied because it had an invalid security token. Please refresh the page and try again.' in plain text (i.e. no HTML)

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

More
4 years 9 months ago #174862 by JoomlaWorks
Replied by JoomlaWorks on topic Invalid backend response. Data is not JSON.
This should not occur :)

If it's not a matter of an expired session in the Joomla backend, it could be some third-party plugin messing up the JSON output generated by K2. In that case, set error reporting to maximum in Joomla's Global Configuration and check again the response sub-tab in the Network tab of your browser's dev tools.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum