Hi i'm having a recurrent problem I found on this forum: when using the image uploader I get the following error on console "Unexpected token < in JSON". But I couldn't solve it with any of the other proposed solutions:
setting debug to true
setting $config->uploadTmpDir = dirname(__FILE__) . '/assets/uploads/';
setting uploadTmpDir in php.ini
BUT This problem only appears for non superuser users (ie editors).
Running on a Digitial Ocean Server with NGINX and PHP 7.1. Version is ProcessWire 3.0.62
Note: Im using Fredi plugin, but i doubt that's the problem because I'm using it in other sites with no problem
Any idea how i could solve this (even with non ajax image upload) I need to sort this as fast and simple as possible
Thanks in advance