• Resolved samuelbanya

    (@samuelbanya)


    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:

    https://ibb.co/LZTfHrX

    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
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Imagely

    (@imagely)

    Hi @samuelbanya,

    So to start with – both PHP post_max_size and upload_max_filesize are lower than NextGen requires https://www.imagely.com/docs/requirements/

    Still, this doesn’t seem to be the real cause of the issue as your uploading image file is lower than 2M so I’d assume something else is happening.

    Could you please access “NextGen Gallery -> Manage Galleries” and let us know what’s the first gallery ID? If that’s “0” – it’d point to an SQL NO_AUTO_VALUE_ON_ZERO mode that’s causing the incompatibility.

    Hi have a very similar issue. See screenshot here. Can some please advise on a solution. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting “JSON.parse: unexpected character” Error For NextGEN Plugin’ is closed to new replies.