• Resolved hefin

    (@hefin)


    Hello NextGen Gallery Guys,

    I’m seeing an 404 error when attempting to set a featured image using , I have a YouTube video showing the issue here:

    Version: NextGEN Gallery v3.30 should be the latest as of today. Free version

    The web console message is:

    I am developing locally on using Laragon v5.0.0:

    Primary Browser: Chrome (latest build)
    Windows 10 machine.
    Apache/2.4.47 (Win64)
    OpenSSL/1.1.1k
    PHP version: 7.4.19
    WordPress v6.0.2

    If you want I can upload to a server and give you admin access to investigate.

    I wonder if this is a local dev issue, if your unable to recreate I’ll try on a live server.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter hefin

    (@hefin)

    This may be a red herring I spun up a AWS bitnami instance and tried it there no issues, looks like selecting the thumbnail from NextGen Gallery copies it a nggallery_import directory

    https://www.wpfreelancer.co.uk/wp-content/uploads/2022/10/nggallery_import/003-large-welsh-oak-lamp.jpg

    https://www.wpfreelancer.co.uk/2022/10/08/test-2/

    Could be a development environment issue.

    • This reply was modified 2 years, 1 month ago by hefin.
    Plugin Contributor Imagely

    (@imagely)

    Hi @hefin,

    You are correct. Most likely it is AWS Bitnami related. Please try editing:
    nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/ngg-config.php and change line 14 from $path = ''; to $path = '/opt/bitnami/wordpress/'; to see if that’ll fix anything.

    I have the same error.
    I found out that the month in the image url structure is missing.

    Folders:
    wp-content\
    \uploads
    \2022
    \10
    \full01-1568×1080.png

    generated image url:
    …/wordpress/wp-content/wp-content/uploads/2022/full01-1568×1080.png
    10 is missing

    wordpress: 6.0.2
    NGG: 3.30

    • This reply was modified 2 years, 1 month ago by Ionpainter.
    • This reply was modified 2 years, 1 month ago by Ionpainter.
    • This reply was modified 2 years, 1 month ago by Ionpainter.
    Plugin Contributor Imagely

    (@imagely)

    Hi @hefin,

    Could you please try adding this filter to your child theme’s functions.php to see if that’ll fix the path problem?

    add_filter('ngg_import_to_media_library_subdir', function() {
        return '/nggallery_import';
    });

    Hope this helps

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Potential Bug in set featured Image NextGen Gallery Function’ is closed to new replies.