Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » [Plugin: NextGEN Gallery] Multisite Compatibility?

  • Resolved markb1439

    (@markb1439)


    Hi,

    Is the plugin MU/multisite compatible? I did search, and found both conflicting and inconclusive reports.

    Thanks,

    Mark

Viewing 13 replies - 1 through 13 (of 13 total)
  • Mark:

    NextGen Gallery is multi-site compatible.

    Once you install your sites, you’ll need to set the path in Super Admin – Next Gen Gallery – Gallery Path to:

    wp-content/blogs.dir/%BLOG_ID%/files/

    You must keep the trailing slash [“/”] at the end of “files/”.

    If it doesn’t work properly at first, you should reset NextGen Gallery from its Options panel, then try it again.

    I had a bit of a hard time making it work, but now it’s working fine. I am having an issue on one of my servers, which is not allowing the Flash uploader to work properly, but single uploads still works fine.

    What will happen is that NextGen will autocreate Blog ID 1, once you set the path. NextGen will no longer point to wp-content/uploads/gallery. It will redirect to wp-content/blogs.dir/files/1/gallery or 2, 3, 4…etc…, depending on how many sites you’ve got.

    Wow, great timing on this Q/A. Thanks Tony/Mark!

    I was actually stumped on how to get the “Upload a Zip-File” option back in place and the Super Admin menu has that option available as well.

    -dave

    Thread Starter markb1439

    (@markb1439)

    Tony,

    Thank you so much!

    Mark

    Thread Starter markb1439

    (@markb1439)

    BTW, should it be Network Activated, or should I use a plugin manager to allow all users to turn it on?

    I’m getting

    Please update the database of NextGEN Gallery. Click here to proceed.

    In my Multisite sites. It works fine with the root Blog, but subsites are failing. Resetting Nextgen doesn’t do anything.

    If I run through the update I get:

    Could not find NextGEN Gallery database tables, upgrade failed !

    Upgrade finished…

    I’m unable to load images in sub-sites (as sub-site admin), when I try to upload I always get the error: Directory ####/wp-content/blogs.dir/2/files/prova-admin contains no pictures.
    Many thanks

    enrico

    I have same problem… In fact, I had the same problem. 🙂
    NextGen uploader just do not work with multisite.

    But … try something:
    upload pics manually through FTP – put pics into correct folder – eg. wp-content/blogs.dir/1/files/your-gallery-01
    – go to admin panel – Gallery >>> Manage Galery
    – than select your gallery and click on “Scan folder for new images
    – you’ll be surprised 😀

    I had trouble with uploads and thumbnails also. I got the uploads working by disabling the Flash uploader, but no thumbnails still. When I clicked on “Edit thumb” in the gallery, I got an error about PHP needing the GD library. Installed that with:
    sudo apt-get install php5-gd

    And now everything seems to work. Yay!

    The Upload is working fine now and the thumbnails get generated. My Only Problem is, that I can´t see the thumbs or the images from the backend or the wordpress page. The Link is somehow wrong:
    http://www.mysite.com/wp-content/blogs.dir/2/files/albumname/imagename.jpg

    should be something like:
    http://www.mysite.com/wp-content/files/albumname/imagename.jpg

    I use the wordpress-mu-domain-mapping SnapIn. Probably this is the bad guy. Is there a way to relocate the file for http Requests? Should I write some mod_rewrite conditions?

    for anyone who is interested or having the same issue, here is the htaccess mod rewrite code that works for me:
    RewriteRule ^wp-content/blogs\.dir/([0-9]+/)(.*) wp-content/$2 [L]

    Maybe someone can help – I have nextgen 1.7.4 on wp multi 3.1. My next gen galleries simply won’t create the thumbnails. It looks like it is – even says “100%” but the thumb folder remains empty. In an attempt to track the problem I tried “editing the thumbnail” from within the manage gallery area – I get these errors (below) I thought maybe they would give one of you gurus a hint as to what my problem could be (my guess is these errors are a result of no thumbnail being in the directory but…?

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /home/****/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 357

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: ‘/home/****/public_html/wp-content/blogs.dir/5/files/kitchen-bath/Thompson_Left_Side_Kitchen.jpg’ is not a valid JPEG file in /home/betterwe/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 357

    Warning: Division by zero in /home/****/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 569

    Warning: Division by zero in /home/****/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 595

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/****/public_html/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 861

    Warning: Division by zero in /home/****/public_html/wp-content/plugins/nextgen-gallery/admin/edit-thumbnail.php on line 42

    Hi, I don’t know if anybody had the same problem: I have NextGen installed on a Multisite, and everything works fine except if I click on the pagination…

    If I click on “2”, the link is “?nggpage=2&page_id=2” so it seems, not to go on the page 2 of the gallery but to go into page 2 of the site.

    Anybody has the same issue?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: NextGEN Gallery] Multisite Compatibility?’ is closed to new replies.