• Hello. I’m trying to merge two sites together into a multisite. Both sites use NextGen Gallery plugin. I’m having an issue where the plugin works fine on the primary site, but any secondary site is encountering a bunch of 404 errors on the admin dashboard of NextGen specifically.

    For background and context:

    • This is a subdirectory multisite
    • I have checked that filepaths in the sql database tables of the galleries are all correct.
    • I have checked the file system files are all setup correctly
    • Images are all loading fine, it’s just the admin tools that are displaying all the errors.
    • the hosting is on AWS Lightsail running Bitnami, so the file directories are slightly different than standard cPanel style hosting, but I’m using this plugin on several other multisites also on AWS Lightsail/Bitnami with no issues like this.
    • I have tried uninstalling and reinstalling the plugin several times, i have also tried manually deleting and manually uploading the plugin folders/files from the file system, issue still persists.
    • I have tried disabling all other plugins, issue still persists
    • I have tried installing third and fourth child sites, issue still persists on all new sites that are not the primary site.

    See screenshot here for list of 404 errors for reference. https://imgur.com/a/Mwpqwnp

    It looks like the filepath is trying to pull from higher up in the file system directories than necessary. For example, you can see the filepath is:

    https://goodpeopletheaterco.org/janet/bitnami/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_admin/static/nextgen_admin_page.css?ver=3.35

    But the CORRECT filepath should be:

    https://goodpeopletheaterco.org/wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_admin/static/nextgen_admin_page.css?ver=3.35

    So the issue is all the admin files are trying to add “bitnami/wordpress/” to the filepath.

    You can see similar results in the errors listed on the front end of this page, where the albums should be displayed: https://goodpeopletheaterco.org/janet/gallery/

    Any idea how to fix this please?

    Note: I am aware there are a bunch of mixed content errors as well, I am planning to fix those once the real domain is attached to the secondary site.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Imagely

    (@imagely)

    Hi @sarahsas,

    Let’s try adding this constant to your wp-config.php to see if that’ll solve it:

    define('NGG_GALLERY_ROOT_TYPE', 'content');
    Thread Starter sarahsas

    (@sarahsas)

    Hello @imagely , thanks for the quick response. Unfortunately that doesn’t seem to have made any difference. Any other thoughts?

    Plugin Contributor Imagely

    (@imagely)

    Hi @sarahsas,

    Sorry, let’s try something else instead as the previous constant isn’t likely to solve the path issue on Bitnami.

    Please edit NGG’s configuration file:

    nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/ngg-config.php and change line 14 from

    $path = ”;
    to:
    $path = ‘/janet/bitnami/wordpress/’;

    • This reply was modified 1 year, 7 months ago by Imagely.
    Thread Starter sarahsas

    (@sarahsas)

    @imagely I have actually already edited that exact setting in order to get the thumbnail editor working, which is usually a problem in bitnami in general, so I always have to do this for any sites hosted on AWS Lightsail.

    I’ve already tested this file both with and without the adjustment. The adjustment fixes the thumbnail editor, but the error still persists in the rest of the admin panel. Any other ideas?

    Plugin Contributor Imagely

    (@imagely)

    Hi @sarahsas,

    Please contact us directly at https://www.imagely.com/report-bug/ and we’ll have a direct look at it to see if there’s anything else we can suggest.

    Thanks

    Thread Starter sarahsas

    (@sarahsas)

    Ok thanks I have submitted the bug report.

    Plugin Contributor Imagely

    (@imagely)

    Thanks. We’ll take it from there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issue with filepaths of admin files in multisite’ is closed to new replies.