Getting “JSON.parse: unexpected character” Error For NextGEN Plugin
-
Hello there,
I recently followed these two links to setup a WordPress site on a Debian VPS with Vultr:
https://www.vultr.com/docs/how-to-install-nginx-mariadb-php-lemp-on-debian-10
https://www.vultr.com/docs/how-to-install-wordpress-on-lemp-with-ubuntu-or-debian/
That being noted, I installed the related PHP plugins necessary for the NextGEN art gallery plugin (free).
When I try to upload a file, I get this error for some reason:
“JSON.parse: unexpected character at line 1 column 1 of the JSON data”.
Here’s a screenshot of this error in action:
Does anyone have any idea why this is occurring? The only thing I can think of is because of a server error, but I have no idea how to start. The only thing I changed recently was to change the ‘/etc/php/7.4/fpm/php.ini’ file to the following contents to increase the max file size for the upload file itself as well as post size:
; Maximum size of POST data that PHP will accept. ; Its value may be 0 to disable the limit. It is ignored if POST data reading ; is disabled through enable_post_data_reading. ; https://php.net/post-max-size ; CUSTOM: ; PREVIOUS: ; post_max_size = 8M post_max_size = 256M ; Maximum allowed size for uploaded files. ; https://php.net/upload-max-filesize ; CUSTOM: ; Changing this crazy small value to 256M for uploading pics ; PREVIOUS: ; upload_max_filesize = 2M upload_max_filesize = 256M max_file_uploads = 100
- The topic ‘Getting “JSON.parse: unexpected character” Error For NextGEN Plugin’ is closed to new replies.