MyBB Community Forums

Full Version: Error with inspector
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
my Inspector show me this Error can you tell me what I can do to fix it ?

</script>
	<script type="text/javascript">
		$(".author_avatar img").error(function () {
			$(this).unbind("error").closest('.author_avatar').remove();
		});
	</script>
That's deprecated code removed in the latest mybb version.
(2019-06-22, 07:18 PM)Ashley1 Wrote: [ -> ]That's deprecated code removed in the latest mybb version.

I find this code in showthread template Can I delete it ?
Does not risk anything ?
(2019-06-23, 08:33 AM)M!X0R Wrote: [ -> ]
(2019-06-22, 07:18 PM)Ashley1 Wrote: [ -> ]That's deprecated code removed in the latest mybb version.

I find this code in showthread template Can I delete it ?
Does not risk anything ?

If you're on 1.8.21 then you must delete it, and in the few other templates where it is found.
There are 9 templates carrying that code. Just go ahead and simply delete.

announcement, editpost, modcp_announcements_edit, modcp_announcements_new, newreply, newthread, private_read, private_send, showthread

This is being handled by core js file now. You don't need that in templates anymore.