Title: onerror not working
Last modified: October 2, 2026

---

# onerror not working

 *  [larshoff](https://wordpress.org/support/users/larshoff/)
 * (@larshoff)
 * [6 hours, 5 minutes ago](https://wordpress.org/support/topic/onerror-not-working/)
 * “onerror” is no longer working. In V2.0.8 it was ok.
 * It is probably related to the new “HTML code” filter-option. I also tried the“
   Allow additional HTML tags (advanced)” option with the tag “onerror”, but without
   success.
 * This is the code:
 * img src=”{DATA.IMAGE_URL}” width=”200px” alt=”{DATA.TITEL}” onerror=”this.src
   =’https:/domain.com/wp-content/uploads/2026/01/error.png’;”

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fonerror-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [larshoff](https://wordpress.org/support/users/larshoff/)
 * Last activity: [6 hours, 5 minutes ago](https://wordpress.org/support/topic/onerror-not-working/)
 * Status: not resolved