Blogs-MU: JS error if no post image

I’m testing Blogs-MU 1.3.8 with Feature Settings > top dropdown (tn_blogsmu_featured_blk_option) set to Feature Slider Categories.

This puts out continous JavaScript errors on the console:

GET 404 (Not Found) jquery.js:2

e.getComputedStyle.Dt jquery.js:2

v.extend.css jquery.js:2

(anonymous function) jquery.js:2

v.extend.access jquery.js:2

v.fn.extend.css jquery.js:2

nivoRun jquery.nivo.slider.js:296

(anonymous function) jquery.nivo.slider.js:120

I’ve tracked the error back to wp-content/themes/blogs-mu/functions.php::wp_custom_post_thumbnail(). This outputs an a tag with no nested img tag for posts that have no image at all. The code for the post in this case is at

A version of this function with extra debug output is at

I suggest you don’t output the a tag at all unless the nested image tag is found, like this fixed code at


In addition, there’s constant JavaScript console errors:

Uncaught TypeError: Cannot call method ‘substr’ of undefined jquery.nivo.slider.js:294

nivoRun jquery.nivo.slider.js:294

(anonymous function) jquery.nivo.slider.js:120

Which I’ve tested are easily fixed by updating NivoSlider to 3.2.

I hope you can fix it for the next release.

Thanks for considering! Also, please reply to the email below.

Mark van Hoek

Senior Application Administrator

University Systems