Skip to:
Content
Pages
Categories
Search
Top
Bottom

ArgumentCountError thrown


  • filout
    Participant

    @filout

    Hi,

    i get the error
    Too few arguments to function vvd_no_view_ip(), 2 passed in /home/sites/site64/web/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected.
    Users can create topics and write comments in it but when i want to see the topc and get this error

    Regards, Thomas

    I used WordPress v4.9.8 and bbPress v2.5.14.

Viewing 5 replies - 1 through 5 (of 5 total)

  • filout
    Participant

    @filout

    Addition:
    I only get this error (in Front- and Backend) when i logged in as Administrator in WordPress. If i logged in as Participant everthing is okay.


    Robin W
    Moderator

    @robin-w

    this seems to be some custom code the function vvd is not a bbpress one. I presume you have added this to your functions file, or a plugin has it ?

    I googled and got this thread where the snippet is mentioned

    http://bbpress37.rssing.com/chan-7465926/all_p128.html

    function vvd_no_view_ip( $author_ip, $r, $args ){
    	return __return_empty_string();
    }
    add_filter('bbp_get_author_ip','vvd_no_view_ip', 10, 3 );

    is this the code you are using ?


    filout
    Participant

    @filout

    Oh shit, yes, i added this in my child theme in funtions.php.
    Sorry and many thanks for your help!
    But strange is:
    Only after I switched from http to https i had this problem.
    Okay, is fixed and many thanks again. 🙂


    Robin W
    Moderator

    @robin-w

    no problem, glad you are fixed


    filout
    Participant

    @filout

    In this thread (see bottom) i found the code. I think is better to remove it…

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