WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post Saving Error with NextGen Gallery (24 posts)

  1. walkenppc
    Member
    Posted 5 years ago #

    Hey, when I upgraded to 2.7 today I also upgraded my NextGen Gallery plugin. Everything works fine except I get this error whenever I try to save a post that I'm working on:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'searchnggallerytags' was given in /public_html/wp-includes/plugin.php on line 166

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'searchnggallerytags' was given in /public_html/wp-includes/plugin.php on line 166

    Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-includes/plugin.php:166) in /public_html/wp-includes/pluggable.php on line 850

    Right now I have to deactivate the plugin to save anything! My theme only calls the nextgen gallery header for those pages that are in my "gallery" category, fyi.
    Please help!

  2. Alex Rabe
    Member
    Posted 5 years ago #

    Please delete the plugin folder and reload all files again

  3. walkenppc
    Member
    Posted 5 years ago #

    Same problem with the same error messages, even after upgrading to 1.01. Any other ideas?

  4. walkenppc
    Member
    Posted 5 years ago #

    btw I know things are probably crazy right now, thanks for taking the time to quickly get back to me.

  5. Alex Rabe
    Member
    Posted 5 years ago #

    The filter "searchnggallerytags" is not longer a part of NextGEN-Gallery. I feel you have not proper updated all files or some other older with old files. Please recheck via FTP if you have only on plugin folder (nextgen-gallery)

  6. bryanlyle
    Member
    Posted 5 years ago #

    I have same problem. I have deactivated and removed directory from plugin directory and downloaded latest version (1.0.1) and installed and activated.

    Am I missing something?

  7. Alex Rabe
    Member
    Posted 5 years ago #

    normally not, deactivate all other plugins for a test

  8. walkenppc
    Member
    Posted 5 years ago #

    Hey! I believe I may have a clue. I deactivated every plugin except NextGen, and then one by one reactivated them. The plugin that caused the error seems to be Search Unleashed, if I deactivate it it works fine! I'm sure you don't know how to fix it since it's their plugin, but maybe this helps.

  9. Alex Rabe
    Member
    Posted 5 years ago #

    Ahhh, that's the problem. Try to reset Search Unleashed to default settings, I belive it still remind the old filter settings...

  10. bryanlyle
    Member
    Posted 5 years ago #

    Well, I have that plug in as well, so maybe you are on to something there. Odd that it would complain about one plugin, but really be another plugin that caused the problem. I will test it out.

  11. bryanlyle
    Member
    Posted 5 years ago #

    So, why would Search Unleashed have a problem when NextGen was active? If I deactivate NextGen, I can reindex, etc. with Search Unleashed. However, if I active NextGen, Search Unleashed errors when I try to reindex posts.

  12. Alex Rabe
    Member
    Posted 5 years ago #

    Because Search Unleashed recognize that Nextgen added some filter hook (v0.99) and added the gallery to the post afterwards. Now you update NextGEN Gallery and I have changed the filter name, so Search Unleashed needs to be reset or reinit now...

  13. bryanlyle
    Member
    Posted 5 years ago #

    Ok. So, how do you reset or reinit Search Unleashed?

    BTW, thanks for the quick responses on the questions!

  14. Alex Rabe
    Member
    Posted 5 years ago #

    Please ask the author of this plugin, I've currently no time to analyse this deeper, as my plugin still needs some rework.

  15. walkenppc
    Member
    Posted 5 years ago #

    Hey, I've uninstalled and then reinstalled the Search Unleashed plugin, and there is still an error. Looks like something we'll have to take up with Search Unleashed.

    I'll tag this as "Search Unleashed" and hopefully their developer will take a look. Thanks a lot Alex! The plugin is great!

  16. kimpenhaus
    Member
    Posted 5 years ago #

    in search-unleashed/modules/nextgen_gallery.php lies the reference to the nextgen searchnggallerytags hook.

    // Action calls for all functions
    add_filter ('the_content', 'searchnggallerytags');
    add_filter ('the_excerpt', 'searchnggallerytags');

    simple workaround until the author fixes the plugin dependencies is to comment the lines.

    // Action calls for all functions
    //add_filter ('the_content', 'searchnggallerytags');
    //add_filter ('the_excerpt', 'searchnggallerytags');
  17. walkenppc
    Member
    Posted 5 years ago #

    Worked for me, I'll change this to resolved. Thanks a lot!

  18. Scott Kingsley Clark
    Member
    Posted 5 years ago #

    Having this problem still, the fix provided by kimpenhaus worked though. Hopefully the developer figures this one out!

  19. MephistoBS
    Member
    Posted 5 years ago #

  20. dhoffmann
    Member
    Posted 5 years ago #

    Today I updated to Nextgen 1.2.1 and Search unleashed 0.2.7 and I got the following error, even if nextgen is disabled:

    Fatal error: Class 'search_nextgen' not found in /is/htdocs/.../wp-content/plugins/search-unleashed/models/spider.php on line 17

    The error is on the admin page as well as on the search results page.

  21. msamulski
    Member
    Posted 5 years ago #

    @dhoffmann

    You need to edit /wp-content/plugins/search-unleashed/modules/nextgen-gallery.php, and remove the "/*" and "/*" chars, and then uncomment the two lines mentioned in the post before by kimpenhaus.

  22. maimaithaichai
    Member
    Posted 5 years ago #

    smamulski is right, that's what just worked for me!

  23. julakim
    Member
    Posted 5 years ago #

    I did the changes in search-unleashed/modules/nextgen_gallery.php and I tried the thing with /* and deactivated nextgen-gallery, but unfortunately it is not working.

    Is there still someone working on it?

    Thanks a lot,

  24. StrangeAttractor
    Member
    Posted 5 years ago #

    Fatal error: Class 'search_nextgen' not found in /is/htdocs/.../wp-content/plugins/search-unleashed/models/spider.php on line 17

    Yeah, I just found that on my site, and freaked, thinking I'd been hacked.

    I rolled back to the last version of Search Unleashed, which fixed the problem, at least for now... my site was down for about 24 hours before I noticed.

    Hope this gets fixed in the next release...

Topic Closed

This topic has been closed to new replies.

About this Topic