OJS 3.2.1-1 error: Failed Ajax request or invalid JSON returned

Hi @mauritroviano,

Here’s a general guide on using the browser’s developer tools to inspect a response using Google Chrome:

Other browsers will be similar.

Regards,
Alec Smecher
Public Knowledge Project Team

Ok, This is the header when I try to edit the user… Is it usefull? or you need the response information?

  1. Request URL:

https://avermaexa.unsa.edu.ar/index.php/averma/$$$call$$$/grid/settings/user/user-grid/edit-user?gridId=grid-settings-user-usergrid&rowId=1&grid-settings-user-usergridPage=1&grid-settings-user-usergridItemsPerPage=25&oldUserId=0&_=1596632305113

  1. Request Method:

GET

  1. Status Code:

200 OK

  1. Remote Address:

170.210.201.166:443

  1. Referrer Policy:

no-referrer-when-downgrade

  1. Response Headersview source

  2. Cache-Control:

max-age=10

  1. Connection:

Keep-Alive

  1. Content-Type:

application/json

  1. Date:

Wed, 05 Aug 2020 12:59:03 GMT

  1. Expires:

Wed, 05 Aug 2020 12:59:13 GMT

  1. Keep-Alive:

timeout=5, max=100

  1. Server:

Apache/2.4.43 (Ubuntu)

  1. Set-Cookie:

OJSSID=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/

  1. Set-Cookie:

OJSSID=o2d5jr9g71roi3319kme9ujn49; expires=Fri, 04-Sep-2020 12:59:03 GMT; Max-Age=2592000; path=/; domain=avermaexa.unsa.edu.ar

  1. Transfer-Encoding:

chunked

  1. Request Headersview source

  2. Accept:

application/json, text/javascript, /; q=0.01

  1. Accept-Encoding:

gzip, deflate, br

  1. Accept-Language:

es-US,es-419;q=0.9,es;q=0.8,en;q=0.7

  1. Connection:

keep-alive

  1. Cookie:

OJSSID=o2d5jr9g71roi3319kme9ujn49

  1. Host:

avermaexa.unsa.edu.ar

  1. Referer:

https://avermaexa.unsa.edu.ar/index.php/index/admin/contexts

  1. User-Agent:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

  1. X-Requested-With:

XMLHttpRequest

  1. Query String Parametersview sourceview URL encoded

  2. gridId:

grid-settings-user-usergrid

  1. rowId:

1

  1. grid-settings-user-usergridPage:

1

  1. grid-settings-user-usergridItemsPerPage:

25

  1. oldUserId:

0

  1. _:

1596632305113

Hi @mauritroviano,

You’ll need to look in the response for something that’s not valid JSON. The best way to do that is probably to inspect the response manually, looking for something unusual, and if you can’t see something there, use a JSON linter/formatter, e.g. https://jsonlint.com/.

Regards,
Alec Smecher
Public Knowledge Project Team

Ok… I can’t solve the problem… but I changed the php version from 7.4 to 7.2 and also re create the database. After that I have to reinstall ojs and all was ok this time.
Thanks @asmecher for your help.
Regards,
PD: I’m using ubuntu server 18.04 in a fresh installation

1 Like