• Resolved sarahsas

    (@sarahsas)


    Hello, I can’t seem to edit thumbnails in the galleries, when I click “edit thumb”, the pop up loads but the thumbnail image does not. The console shows “Failed to load resource: the server responded with a status of 500 (Internal Server Error)” and the resource listed is “[domain]/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/edit-thumbnail.php?[POST ID HERE] – This issue is arising quite a bit for me recently on Amazon AWS Lightsail instances. Any idea why or how to fix it?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter sarahsas

    (@sarahsas)

    For reference, I have already tried disabling all plugins, uninstalling and reinstalling NextGen plugin, etc…

    Plugin Support Jaime Segura

    (@jaimeimagely)

    Hi,

    I am glad to help, is your server using any kind of CDN? If yes, please disable it and try again.

    Please keep me posted.

    Thanks.

    Thread Starter sarahsas

    (@sarahsas)

    Thanks for your quick response @jaimeimagely , no there is no CDN setup for the websites in question. Any other thoughts?

    Thread Starter sarahsas

    (@sarahsas)

    For reference, this is one of the sites having this issue, if you’d like to inspect more specifically: https://sallyanneupton.com/

    Plugin Support Jaime Segura

    (@jaimeimagely)

    Hi,

    Could you please activate WP DEBUG and try again, send us the error in the error log afterwards, the devs might then have an idea of where the issue comes from.

    Thanks.

    • This reply was modified 2 years, 3 months ago by Jaime Segura.
    Thread Starter sarahsas

    (@sarahsas)

    I have enabled debug, restarted the server and run through trying to edit the thumbnails again, but the only “warning” showing is “NOTICE: /bitnami/wordpress/wp-content/plugins/better-wp-security/lib/icon-fonts/init.php:35 – Undefined variable: url
    require_once(‘wp-admin/admin-header.php’), do_action(‘admin_enqueue_scripts’), WP_Hook->do_action, WP_Hook->apply_filters, it_icon_font_admin_enueue_scripts”

    Plugin Contributor Imagely

    (@imagely)

    Hi @sarahsas,

    Thanks. This notice doesn’t seem to have to do with the issue you are getting.

    After accessing your gallery from Manage Galleries, you can press F12 key to open the browser’s DevTools then access the Network tab, select"Fetch/XHR" filter then press to edit any of your thumbs and access the request that’ll appear ( it should look like edit-thumbnail.php?id=100) and finally access the Response sub-tab to see what’s the request’s return.

    Perhaps that’ll provide you with some ideas on what’s happening. Sometimes that’s because of the site’s or hosting’s firewall blocking the request and in that case – you’d need to whitelist it.

    • This reply was modified 2 years, 3 months ago by Imagely.
    • This reply was modified 2 years, 3 months ago by Imagely.
    • This reply was modified 2 years, 3 months ago by Imagely.
    • This reply was modified 2 years, 3 months ago by Imagely.
    Thread Starter sarahsas

    (@sarahsas)

    @imagely thanks for your guidance. When I check the response tab, it just says “This request has no response data available”. Under the Headers tab is the follow errors, as I initially mentioned:

    Request URL: https://sallyanneupton.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/edit-thumbnail.php?id=116
    Request Method: POST
    Status Code: 500 Internal Server Error
    Remote Address: 3.104.16.175:443
    Referrer Policy: strict-origin-when-cross-origin

    Connection: close
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    Date: Tue, 09 Aug 2022 13:41:59 GMT
    Server: Apache/2.4.52 (Unix) OpenSSL/1.1.1n
    X-Powered-By: PHP/7.4.27

    Accept: text/html, */*; q=0.01
    Accept-Encoding: gzip, deflate, br
    Accept-Language: en-US,en;q=0.9
    Cache-Control: no-cache
    Connection: keep-alive
    Content-Length: 0
    Cookie: wordpress_sec_daaaedd53eeaa937b334296d5c90601d=sarahsas%7C1660166358%7Cg1id5OkgfAmbFKeHEbFWgXxgwNiw9VRmG7iu5MLU5XM%7C2575c0138572b3a8c89ff496f64bada01fd582af34db297cccfba378abb18eb1; wp-settings-2=libraryContent%3Dbrowse%26editor%3Dtinymce; wp-settings-time-2=1659968867; _gid=GA1.2.386789842.1659980998; _ga=GA1.2.600511086.1659980998; wordpress_test_cookie=WP%20Cookie%20check; _ga_NPT9LLK6G0=GS1.1.1659993460.2.0.1659993470.0; wordpress_logged_in_daaaedd53eeaa937b334296d5c90601d=sarahsas%7C1660166358%7Cg1id5OkgfAmbFKeHEbFWgXxgwNiw9VRmG7iu5MLU5XM%7C39d0b6c9a03289b732ff18cb9c3fd4b12a30915c52519682ecf42d1175e3ff79
    Host: sallyanneupton.com
    Origin: https://sallyanneupton.com
    Pragma: no-cache
    Referer: https://sallyanneupton.com/wp-admin/admin.php?page=nggallery-manage-gallery&mode=edit&gid=1&_wpnonce=c34a50b3b2
    sec-ch-ua: “.Not/A)Brand”;v=”99″, “Google Chrome”;v=”103″, “Chromium”;v=”103″
    sec-ch-ua-mobile: ?0
    sec-ch-ua-platform: “Windows”
    Sec-Fetch-Dest: empty
    Sec-Fetch-Mode: cors
    Sec-Fetch-Site: same-origin
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
    X-Requested-With: XMLHttpRequest`

    Plugin Contributor Imagely

    (@imagely)

    @sarahsas,

    Feel free to submit a report using the https://www.imagely.com/report-bug/ page and we’ll check it.

    Thanks!

    Thread Starter sarahsas

    (@sarahsas)

    ok will do, thank you.

    Thread Starter sarahsas

    (@sarahsas)

    Hi @imagely, I have solved it.

    The issue lies within this file: /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/ngg-config.php

    The file path to wp-content needs to be updated because in Bitnami stacks, the structure is different. This is the fix:

    
    /** Define the server path to the file wp-config here, if you placed WP-CONTENT outside the classic file structure */
    
    $path = '/opt/bitnami/wordpress/'; // It should be end with a trailing slash

    Once I added the “/opt/bitnami/wordpress/” bolded path, it all works. This bug/error will apply to anyone using a bitnami wordpress installation, most common for Amazon AWS Lightsail.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Can’t edit thumnails – won’t load’ is closed to new replies.