WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Optimizer
[resolved] NextGEN Gallery: Album gallery pages are blank (9 posts)

  1. Mark Jeldi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I just had this come in via email. It's not related to Optimizer (rather a conflict with another plugin), but thought I'd post it in case it helps someone out...

    The scenario:

    The user's site had NextGEN Gallery properly configured, with one album containing two galleries correctly set up. This was being called on a WordPress Page with the [album id=1 template=compact] shortcode which displayed as expected.

    However, when we clicked either of the two galleries displayed, the page would reload (with "album=1&gallery=1" query string parameters attached to the URL as normal), but the gallery would not display, and there was zero HTML output in the source from NextGEN.

    The fix:

    While it's uncertain exactly which plugin caused the conflict in this case, the problem did resolve itself after disabling all plugins (except NextGEN Gallery and Optimizer). After enabling them all again one-by-one (to spot the source of the trouble), we found all plugins were able to be reactivated without breaking the album gallery pages again (though do check them individually as your situation may differ).

    Hope this helps!

    Cheers,
    Mark.

    http://wordpress.org/extend/plugins/nextgen-gallery-optimizer/

  2. Mark Jeldi
    Member
    Plugin Author

    Posted 1 year ago #

    Update:

    I've just had another user contact me with the same problem, only this time with very few plugins. I noticed the one thing they both had in common was that "Jetpack by WordPress.com" (v.2.1.1) was installed...

    Deactivated it. Re-activated it. Problem solved!

    Cheers,
    Mark.

  3. Mark Jeldi
    Member
    Plugin Author

    Posted 1 year ago #

    Update 2:

    It appears Deactivating / Reactivating Jetpack only solves this issue by disconnecting it from your WordPress.com account. If you login again, the issue will return.

    However, there is a proper fix...

    1. Navigate to Plugins --> Editor --> "Jetpack by WordPress.com" and open "jetpack/class.jetpack-post-images.php"

    2. Use your browser's Search tool to find the following line...
    $html = apply_filters( 'the_content', $html->post_content );

    3. Replace the above line with the following...
    $html = $html->post_content;

    Thanks to kaichen for posting this fix. I have tested it, and it does indeed bring back NextGEN's album gallery pages (though you may want to check your in-use Jetpack functionality for any issues).

    Cheers,
    Mark.

  4. mathiaspriebe
    Member
    Posted 1 year ago #

    2. Use your browser's Search tool to find the following line...
    $html = apply_filters( 'the_content', $html->post_content );

    3. Replace the above line with the following...
    $html = $html->post_content;

    Hello, after recent jetpack updates this line is no longer to be found. Do you have a recent suggestion? My galleries vanished again.

  5. Mark Jeldi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Mathias,

    The latest version of NextGEN Gallery (v1.9.12) appears to have resolved this issue, so you might want to try updating if you haven't already...

    http://wordpress.org/plugins/nextgen-gallery/

    Additionally, you'll want to use the new [nggalbum id=x] shortcode instead of [album id=x] (where x equals your gallery ID). I believe the generic label of the old shortcode was part of the conflict.

    I hope this helps!

    Cheers,
    Mark.

  6. mathiaspriebe
    Member
    Posted 1 year ago #

    Hello Mark,

    thank you for your advice. Yes, now everything works fine. There was another plugin interfering with NextGen Gallery (Facebook Like Thumbnail) and I am happy that the workaround is no longer needed.

    I guess, the topic is closed now ;-)

  7. Mark Jeldi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Mathias,

    You're very welcome, and that's great to hear you found the cause of the conflict. Thanks for sharing your findings.

    Cheers,
    Mark.

  8. Arun Basil Lal
    Member
    Posted 11 months ago #

    2. Use your browser's Search tool to find the following line...
    $html = apply_filters( 'the_content', $html->post_content );

    3. Replace the above line with the following...
    $html = $html->post_content;

    Hello, after recent jetpack updates this line is no longer to be found. Do you have a recent suggestion? My galleries vanished again.

    Jetpack now comes with this in place it seems.

  9. chill986
    Member
    Posted 9 months ago #

    Jetpack has
    $html = $html->post_content;
    in the class.jetpack-post-images.php file now. However, the Sharing part of the jetpack plugin dropdowns don't work with NextGen active. Any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic