• Resolved stefimark

    (@stefimark)


    Hi! I’m pretty new at wordpress and coding in general. I installed TranslatePress on my website which is still on localhost while I work on it.
    I keep getting these warnings:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function trp_prevent_kses_from_stripping_trp_post_container(), 1 passed in C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php on line 307 and exactly 2 expected in C:\wamp64\www\wordpress\wp-content\plugins\translatepress-multilingual\includes\compatibility-functions.php on line 1089

    and

    ArgumentCountError: Too few arguments to function trp_prevent_kses_from_stripping_trp_post_container(), 1 passed in C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php on line 307 and exactly 2 expected in C:\wamp64\www\wordpress\wp-content\plugins\translatepress-multilingual\includes\compatibility-functions.php on line 1089

    I really don’t know what to do about it. I’ve been checking the forums but haven’t stumbled upon something helpful yet.
    This is the line that the error is referring to:

    $value = call_user_func_array( $the_['function'], $args );

    and

    function trp_prevent_kses_from_stripping_trp_post_container( $allowedposttags, $context ) {

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for letting us know about your problem!

    Since this looks a lot like a conflict with some other code, the first/next recommended step is the conflict test (ideally in a staging environment):

    ​​*Briefly* disable all other plugins and enable the default Twenty Twenty One theme. Please also disable all add-ons. If this fixes the problem, as it probably will, enable everything one by one, checking each time to see when the problem returns.

    Please let us know when you find the conflict so that we can take a look and see what we can do about it.

    Kind Regards,

    Thread Starter stefimark

    (@stefimark)

    Hi Anghel Emanuel,

    thank you for the answer!
    I don’t know what happened, but somehow after I read your comment, the error magically disappeared. 🙂
    If this error shows up again, I will make sure to follow the steps you wrote and write back here the findings.

    Kind regards.

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

The topic ‘Fatal error: Uncaught ArgumentCountError’ is closed to new replies.