Support » Plugin: GD Power Search for bbPress » Errors with power search form

  • Resolved Jay Holtslander

    (@jasonh1234)


    I either get a white screen or

    ( ! ) Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘gdpos_core_bbpress’ does not have a method ‘remove_search_form’ in /Users/me/Local Sites/redacted/app/public/wp-includes/class-wp-hook.php on line 287

    I’m sad. This is the second “GD” plugin I’ve tried in the last couple days and they all seem broken.
    Latest WordPress, Latest php, Latest MySQL, Latest bbpress.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Markdown format table from error screen:

    Call Stack

    |Time|Memory|Function|Location|
    |—|—|—|—|—|
    |1|0.0001|367256|{main}( )|…/index.php:0|
    |2|0.0001|367536|require( ‘/Users/me/Local Sites/redacted/app/public/wp-blog-header.php’ )|…/index.php:17|
    |3|0.5065|20117880|require_once( ‘/Users/me/Local Sites/redacted/app/public/wp-includes/template-loader.php’ )|…/wp-blog-header.php:19|
    |4|0.5096|20174000|apply_filters( )|…/template-loader.php:104|
    |5|0.5096|20174408|WP_Hook->apply_filters( )|…/plugin.php:206|
    |6|0.5096|20175912|bbp_template_include( )|…/class-wp-hook.php:287|
    |7|0.5096|20175912|apply_filters( )|…/sub-actions.php:477|
    |8|0.5096|20176320|WP_Hook->apply_filters( )|…/plugin.php:206|
    |9|0.5104|20179360|bbp_template_include_theme_compat( )|…/class-wp-hook.php:287|
    |10|0.5108|20180432|BBP_Shortcodes->display_search( )|…/theme-compat.php:763|
    |11|0.5118|20222512|bbp_get_template_part( )|…/shortcodes.php:686|
    |12|0.5118|20223784|bbp_locate_template( )|…/template-functions.php:41|
    |13|0.5121|20228096|load_template( )|…/template-functions.php:103|
    |14|0.5122|20228432|require( ‘/Users/me/Local Sites/redacted/app/public/wp-content/plugins/bbpress/templates/default/bbpress/content-search.php’ )|…/template.php:725|
    |15|0.5288|20922992|bbp_get_template_part( )|…/content-search.php:37|
    |16|0.5288|20923448|apply_filters( )|…/template-functions.php:38|
    |17|0.5288|20923856|WP_Hook->apply_filters( )|…/plugin.php:206|

    Plugin Author Milan Petrovic

    (@gdragon)

    Thanks for reporting, I will check it out.

    Plugin Author Milan Petrovic

    (@gdragon)

    The problem has been fixed, and version 1.2 is released.

    Just installed the latest version. It seems better but I still get a white screen when I do a search from /forums/search/ instead of the bbpress default search input.

    Plugin Author Milan Petrovic

    (@gdragon)

    Hi,

    The previous reported but I was able to reproduce, but this with the blank screen I was not able to reproduce. I tested with bbPress 2.5.14 and bbPress 2.6.4 with only Power Search plugin active, and the search works as expected.

    If you get a blank/white screen, that usually means that there is a server-side error breaking output, and that should be logged in the server PHP error log, can you get it to see what is logged?

    Milan

    I found the problem!

    It was a conflict with the security plugin iThemes Security. Specifically the option:

    Filter Long URL Strings
    Limits the number of characters that can be sent in the URL. Hackers often take advantage of long URLs to try to inject information into your database.

    located at: /wp-admin/admin.php?page=itsec&module=system-tweaks&module_type=recommended

    Unchecking that checkbox allows search to function normally!

    Plugin Author Milan Petrovic

    (@gdragon)

    That is a great find. I will include the information in the FAQ ith the next update.

    The way the default bbPress search is using GET request, and it is way to complex to replace the whole bbPress base search to work with POST requests. My plugin still relies on the bbPress base search to avoid breaking it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.