WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Docs
[resolved] Getting an Error (20 posts)

  1. iwalkfunny
    Member
    Posted 1 year ago #

    I am receiving these errors after installing BuddyPress Docs. On the doc pages and in the docs directory:

    Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/content/13/7501113/html/[mysite]/wp-includes/functions.php on line 658

    Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/content/13/7501113/html/[mysite]/wp-includes/functions.php on line 661

    Anyone have a fix for this.

    http://wordpress.org/extend/plugins/buddypress-docs/

  2. FraVit
    Member
    Posted 1 year ago #

    I also receive the same errors! I'm using WordPress 3.5
    How can we do?

    Thanks
    FraVit

  3. Jeremy Herve
    Happiness Engineer
    Posted 1 year ago #

    Do you have any other active plugins on your site? Could you try to deactivate them one by one, and see if that helps?

  4. FraVit
    Member
    Posted 1 year ago #

    thanks
    I try to understand if this is the problem.
    But I need all the plugins that i Have installed...

  5. iwalkfunny
    Member
    Posted 1 year ago #

    This was on a fresh install. The only plugins I had was akismet and buddypress. I upgraded the server from php5.2 to php5.3 last night. When I checked it this morning I was no longer getting these errors. I don't know if this is the reason why it started working right, but could be.

  6. FraVit
    Member
    Posted 1 year ago #

    iwalkfunny, thanks!
    It's the problem solution!
    I upgraded to php 5.3 and now all it's ok!

    thnks a lot and ....
    Merry Christmas and a Happy new year!!!!

    FraVit

  7. Roman
    Member
    Posted 1 year ago #

    I had same problem with WordPress 3.5 on server with php 5.2. When downgrade WordPress to 3.4.2 the problem disappeared too.

    BuddyPress Docs 1.2.8 work fine with WordPress 3.4.2 even with php 5.2!

  8. indirakrishna
    Member
    Posted 1 year ago #

    http://meet.indirakrishna.in/docs/create-and-manage-a-new-group-for-class-mates/

    I am getting a stripos error in docs

    Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/sitename/public_html/mysubdomain/wp-includes/functions.php on line 658

    Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/sitename/public_html/mysubdomain/wp-includes/functions.php on line 661

    Can any one help me with this ? I have tried in many forums but I did not find a resolving answer.

    WP Version 3.5
    LINUX HOSTING PHP VERSION 5.2.17

  9. Jeremy Herve
    Happiness Engineer
    Posted 1 year ago #

    The user above reported that upgrading to PHP 5.3 solved the issue. Could you try to do the upgrade on your server?

  10. Roman
    Member
    Posted 1 year ago #

    For me upgrade my server is very complicated.
    Is it possible to add support PHP 5.2?

  11. Jeremy Herve
    Happiness Engineer
    Posted 1 year ago #

    @Roman Could you ask your hosting provider to do the upgrade?

    As you can see here, WordPress requires PHP version 5.2.4 or greater:
    http://wordpress.org/about/requirements/

  12. Roman
    Member
    Posted 1 year ago #

    Hi Jeremy.
    Thanks for your quick respond.

    I have got PHP 5.2.17 it the last version of PHP 5.2 generation.
    I have never have issue with any plugin related with PHP version before.

  13. mbyrne
    Member
    Posted 1 year ago #

    I upgraded to WordPress 5.3 and the new Buddy Press Docs1.29 cleared my cache and still I'm getting the following two errors on Buddy Press docs page:

    Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/content/03/8920103/html/admin/wp-includes/functions.php on line 658

    Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/content/03/8920103/html/admin/wp-includes/functions.php on line 661

  14. mbyrne
    Member
    Posted 1 year ago #

    At first, my saved documents do not appear in BP docs, after refreshing the screen I get the docs but the warning messages appear above the docs.

  15. MCLMarcos
    Member
    Posted 1 year ago #

    Hello all!

    Apparently $uri is coming to NULL and is thus sent the warning message.

    For those who have PHP version 5.2 can try this alternative for now in / public_html / wp-includes / functions.php:
    Go to the line 658 and enter the following code

    if (gettype ($uri) == "NULL")
                $uri = "";

    The end result will be as follows:

    /* code added */
    if (gettype ($uri) == "NULL")
                $uri = "";

    /* end code added */

    if (0 === stripos ('http://', $ uri)) {
    $ protocol = 'http://';
    $ uri = substr ($ uri, 7);
    } elseif (0 === stripos ('https://', $ uri)) {
    $ protocol = 'https://';
    $ uri = substr ($ uri, 8);
    } else {
    $ protocol ='';
    }
    .
    .
    .

    I think that helps for now.

    I hope to have cooperated.

    cheers to all

  16. blogsterfiles
    Member
    Posted 1 year ago #

    Thanks very much @MCLMarcos ...Your code added at line 658 solved the problem for me!

  17. jgchess
    Member
    Posted 1 year ago #

    Thank you very much. It worked.
    The only problem is I had to figure out where line 658 was.
    I ended up pasting the the file to an excel sheet that had line numbers and found the line.
    Thanks again
    Jeffrey

  18. leighdouglass
    Member
    Posted 1 year ago #

    @MCLMarcos Thanks for your post, solved it for me.

  19. akhilz
    Member
    Posted 1 year ago #

    Thanks @MCLMarcos
    The solution provided by you works, big help, thanks again...

  20. Alocin82
    Member
    Posted 8 months ago #

    Thanks @MCLMarcos

    Help me your solution

    Nicola

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic