dear support!
i have some errors in mobile version of the page, and even the serch and menu not working
tagdiv_theme.min.js?ver=9.7.3:182 Uncaught TypeError: Cannot read property 'replace' of undefined
at HTMLImageElement.<anonymous> (tagdiv_theme.min.js?ver=9.7.3:182)
at Function.each (jquery.js?ver=1.12.4-wp:1)
at a.fn.init.each (jquery.js?ver=1.12.4-wp:1)
at td_retina (tagdiv_theme.min.js?ver=9.7.3:182)
at HTMLDocument.<anonymous> (tagdiv_theme.min.js?ver=9.7.3:171)
at i (jquery.js?ver=1.12.4-wp:1)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:1)
at Function.ready (jquery.js?ver=1.12.4-wp:1)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:1)
(anonymous) @ tagdiv_theme.min.js?ver=9.7.3:182
each @ jquery.js?ver=1.12.4-wp:1
each @ jquery.js?ver=1.12.4-wp:1
td_retina @ tagdiv_theme.min.js?ver=9.7.3:182
(anonymous) @ tagdiv_theme.min.js?ver=9.7.3:171
i @ jquery.js?ver=1.12.4-wp:1
fireWith @ jquery.js?ver=1.12.4-wp:1
ready @ jquery.js?ver=1.12.4-wp:1
J @ jquery.js?ver=1.12.4-wp:1
my site url: magyarhang.org
can you please help me?
thanks
well it was a plugin, its called tagdiv composer (cough cough)
after changed this:
jQuery('.td-retina').each(function(i) {
var lowres = jQuery(this).attr('src');
var highres = lowres.replace(".png", "@2x.png");
highres = highres.replace(".jpg", "@2x.jpg");
jQuery(this).attr('src', highres);
to this:
jQuery('.td-retina').each(function(i) {
var lowres = jQuery(this).attr('src');
if (typeof lowres != 'undefined') {
var highres = lowres.replace(".png", "@2x.png");
highres = highres.replace(".jpg", "@2x.jpg");
jQuery(this).attr('src', highres);
}
and it’s now working, all i ask why did i pay for support
Hi,
This is the first report that we get for this case, also I’ve made some tests to try to recreate this error and I can not recreate it, most likely you have other plugin that is in conflict with our tagDiv Composer plugin and your implementation solved the problem in your case.
Also there still seams to be a problem with the mobile menu, please set this custom css in Theme panel > Custom code> Advance css > Phones
https://www.screencast.com/t/qN1qVKZeLQg
.td-mobile-content .td-icon-menu-right {
display: block;
}
This is the list of plugins tested with our theme https://www.screencast.com/t/i70rduqUR73
Thank you for your understanding and sorry for the inconvenience!
Dear Calin!
Thanks for your help, added your code.
One of my collages found the solution here https://themeforest.net/item/newsmag-news-magazine-newspaper/9512331/comments?page=136
I understand your list of plugins tested, but we cannot live w/o other addons.
my new problem is at posts the calendar starts at sunday not monday as its in my settings
Hi Calin,
I just ran into this problem as well. I am running with
WP Retina 2x and this appears to be our conflict. However, this is a VERY useful plugin for my company and it would be nice if the theme was compatible with it.
tagdiv_theme.min.js?ver=9.8:182 Uncaught TypeError: Cannot read property 'replace' of undefined
at HTMLImageElement.<anonymous> (tagdiv_theme.min.js?ver=9.8:182)
Hi,
Unfortunately we did not tested the WP Retina 2x plugins and therefore, we cannot say for sure if it will work or not as expected with the theme, sorry! Also, we cannot provide support for untested plugins.
This is our list with tested plugins with our theme -> https://www.screencast.com/t/cmPkh9jba4sZ
Support Policy -> https://forum.tagdiv.com/support-policy-2/
Thank you for your understanding!
Hi Calin,
I eventually found the conflict with WP Retina 2x. If using the pitcureFill rewrite capability, the plugin will update the img element with srcset instead of the src tag. This causes the td-retina() function to blow up. I switched the rewrite method to “Responsive-Images” and that fixed the issue. Hopefully this helps anyone else using this plugin with the theme.