• I cloned a working AWS EC2 Instance and moved some sites over from old server instances that were running PHP 7.3. The new instance is running php 8.0 and Windows Server 2016. Now the sites are giving me this error:
    HP Notice: Function wp_kses_allowed_html was called incorrectly. When using the CUSTOM_TAGS constant, make sure to set these globals to an array: $allowedposttags, $allowedtags, $allowedentitynames, $allowedxmlentitynames.

    That’s just the first or many error messages in the debug log referring to wp_kses. I have looked everywhere for an answer. Disabled all plugins, switched themes. Any help on this. If you need to see the entire debug log I will put it up.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Assuming you’ve cloned the instance correctly, I would guess this is due to a PHP version compatibility issue with the code.

    On your new Windows server, are you able to downgrade to PHP 7.3 and give it a try?

    So, just curious, have you tried the above method or if you’ve used other methods that solved the problem?

    Thanks.

    Thread Starter Pecraig

    (@pecraig)

    Thanks just got your message: Tried downgrading to 7.3.10 and got this error in the debug log: PHP Warning: mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password] in C:\FBCOnline\CircuitFamilyFitness\wp-includes\class-wpdb.php on line 2019

    Thread Starter Pecraig

    (@pecraig)

    I tried v. 7.4.32 and it went back to the PHP Notice: Function wp_kses_allowed_html was called incorrectly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP_kses_allowed_html called incorrectly’ is closed to new replies.