• Resolved justhamade

    (@justhamade)


    Finally got uploads working. I found this blog post in german https://www.netengine.at/de/hilfe/wiki/wiki-detail/?wid=87

    I changed it a bit different. The commented lines is the original code.

    function get_request_uri($with_params=TRUE)
        {
                    #if (isset($_SERVER['PATH_INFO']))
                    #       $retval = $_SERVER['PATH_INFO'];
                    #elseif (isset($_SERVER['ORIG_REQUEST_URI']))
                    if (isset($_SERVER['ORIG_REQUEST_URI']))
                            $retval = $_SERVER['ORIG_REQUEST_URI'];
                    else
                            $retval = $_SERVER['REQUEST_URI'];

    I also changed wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.gallerystorage_driver_base.php This was because I have a bunch of images missing that are broken and it kept trying to create thumbnails for them.

    if (!file_exists($image_path)) {
                    error_log($image_path);
            } else {
            $size = getimagesize($image_path, $detailed_size);

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @justhamade – Thanks for sharing your work-around. If necessary you may need to keep a back-up of this for your site as the next release (which will hopefully resolve this issue) will over-write these modifications.

    – Cais.

    another workaround, server-side for nginx:

    location / {
      try_files $uri $uri/ /index.php$uri?$args;
    }

    This makes PATH_INFO contain needed string.

    Plugin Contributor photocrati

    (@photocrati)

    @dgeo – Thanks for sharing this.

    – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘photocrati_ajax 404’ is closed to new replies.