WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Sphinx Search Plugin
Installation works, but searching generates errors (24 posts)

  1. sarah semark
    Member
    Posted 2 years ago #

    I got Sphinx installed properly, everything's indexed and should be good to go—set up my cron jobs as well, and they're working just fine.

    However, when I go to search, I get the following error:

    Warning: Invalid argument supplied for foreach() in /usr/home/actrees11/public_html/wordpress.actrees.org/wp-includes/query.php on line 2746
    
    Warning: Cannot modify header information - headers already sent by (output started at /usr/home/actrees11/public_html/wordpress.actrees.org/wp-includes/query.php:2746) in /usr/home/actrees11/public_html/wordpress.actrees.org/wp-includes/pluggable.php on line 866

    When I deactivated the plugin, search worked as expected, so I'm guessing it must be an incompatibility Sphinx is having with... something?

    Any help would be greatly appreciated!

    http://wordpress.org/extend/plugins/wordpress-sphinx-plugin/

  2. Yaroslav Vorozhko
    Member
    Posted 2 years ago #

    Did you installed sphinx using WordPress Sphinx Search plugin, or you installed it manually?

    Which version of Sphinx, WordPress Sphinx plugin and WordPress do you use?

  3. varunms
    Member
    Posted 2 years ago #

    hi i also have the same problem

    i use wordpress 3.3.1
    and WordPress Sphinx Search Plugin 3.3.1
    the theme is Twenty Eleven 1.3

  4. Ivinco
    Member
    Plugin Author

    Posted 2 years ago #

    Hello varunms

    Thanks for the details. We're looking into this.

  5. varunms
    Member
    Posted 2 years ago #

    thanks for your reply but its urgent

  6. Yaroslav Vorozhko
    Member
    Posted 2 years ago #

  7. varunms
    Member
    Posted 2 years ago #

    not working

  8. karthikskr
    Member
    Posted 2 years ago #

    Hi, for me also same problem. I installed wordpress sphinx search plugin in wordpress 3.3.1 and Twenty Ten Theme.

    When i tried to search using Search and Sphinx search Widgets i get an error,

    Warning: Invalid argument supplied for foreach() in /usr/home/actrees11/public_html/wordpress.actrees.org/wp-includes/query.php on line 2746

    Warning: Cannot modify header information - headers already sent by (output started at /usr/home/actrees11/public_html/wordpress.actrees.org/wp-includes/query.php:2746) in /usr/home/actrees11/public_html/wordpress.actrees.org/wp-includes/pluggable.php on line 866

    help me in fix this ASAP.

    Also i have tried all the steps from the tutorial comments given below in this link.

    http://www.ivinco.com/software/wordpress-sphinx-search-tutorial/

  9. varunms
    Member
    Posted 2 years ago #

    hi my friends

    now i have installed sphinx and configured in wordpress successful but when i search
    indexed post or comments or pages its shows the search result but if i search non indexed
    post or comments or pages i get

    if i search the indexed the link structure is
    http://localhost/workspace/sphinxser/search/my+website/

    if i search non indexed the link structure is http://localhost/workspace/sphinxser/?s=hpcl

    Warning: Invalid argument supplied for foreach() in
    /opt/lampp/htdocs/workspace/sphinxser/wp-includes/query.php on line 2746

    Warning: Cannot modify header information - headers already sent by (output started at
    /opt/lampp/htdocs/workspace/sphinxser/wp-includes/query.php:2746) in
    /opt/lampp/htdocs/workspace/sphinxser/wp-includes/pluggable.php on line 866

    kindly help me in solving this problem

  10. Yaroslav Vorozhko
    Member
    Posted 2 years ago #

    I installed twentyten and twentyeleven 1.3 on wordpress 3.3.1, both themes works fine.
    Could yoru disable all plugins except WP Sphinx and try again?

  11. varunms
    Member
    Posted 2 years ago #

    i too have desabled all plugins but i get the same error can i know your installation process and you php.ini configuration
    please

    kindly help me in solving this problem

    please

    its urgent help me

  12. Yaroslav Vorozhko
    Member
    Posted 2 years ago #

    Installation process described here http://www.ivinco.com/software/wordpress-sphinx-search-tutorial/
    Nothing special.

    I am using default php.ini which ship with php5 ubuntu package.

  13. Yaroslav Vorozhko
    Member
    Posted 2 years ago #

  14. varunms
    Member
    Posted 2 years ago #

    hi i have tryed it

    but i get

    Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/workspace/sphinx/wp-includes/query.php on line 2746

    this error

    in wp 404 page

    but before it shows in a blank page with error

  15. Ivinco
    Member
    Plugin Author

    Posted 2 years ago #

    varunms, could you archive your whole wp dir and your database and send to opensource@ivinco.com? This would be very helpful since we cannot reproduce the issue on our side.

  16. varunms
    Member
    Posted 2 years ago #

    hi lvinco

    i have sent you the mail but i get mail sent failed

    i think u r email id would be incorrect

  17. Ivinco
    Member
    Plugin Author

    Posted 2 years ago #

    opensource@ivinco.com is a correct email, but anyway please try to send to sergey@ivinco.com then

  18. varunms
    Member
    Posted 2 years ago #

    i got the same error kindly give me some time so that i can check what is the problem please

    i will be sending from varun@firstplanet.in

  19. varunms
    Member
    Posted 1 year ago #

    Hi

    @Ivinco

    Have You Checked My Problem Which I have Sent You

  20. Ivinco
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Varunms

    Chris contacted you then and didn't hear from you since then. He will contact you today once more.

  21. Supewinner
    Member
    Posted 1 year ago #

    I have the same problem! The solution is found?

  22. Ivinco
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Supewinner.
    Could you describe your problem in more details?
    We never could reproduce the one mentioned earlier in this thread. It would be great if you helped to do that.

  23. Supewinner
    Member
    Posted 1 year ago #

    1) installed the Sphinx ("OK - Sphinx Search Server is running");

    2) database indexed;

    3) put a tag on the page - appeared in the search field;

    4) click on "Search";

    5) "Warning: Invalid argument supplied for foreach() in .../wp-includes/query.php on line 2762" and "Warning: Cannot modify header information - headers already sent by (output started at .../wp-includes/query.php:2762) in .../wp-includes/pluggable.php on line 881".

    6) if you delete a line 2762 - no error message appears, but the search does not work: "Sorry, but nothing matched your search criteria. Please try again with some different keywords".

  24. Ivinco
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,
    This error could be reproduced with the searching for words that are not in the index.
    Fixed in the 3.3.4

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic