by Leopoldo Sanczyk.
I have a website section where need to upload and the replace the theme logo.
I'm using PHP curl to login, access the theme config section and print the content of: /admin/settings.php?section=theme_elegance_colors
The problem is that each filepicker in the form gets a "Invalid JSON string" error.
Error code: redirecterrordetected
* line 2485 of /lib/weblib.php: moodle_exception thrown
* line 2905 of /lib/moodlelib.php: call to redirect()
* line 34 of /repository/draftfiles_ajax.php: call to require_login()
This is a difficult one! Someone have a clue to solve it? Thanks in advance!