Solved: 5 Years, 2 Months, 4 Weeks ago Jquery Errors along with some other errors
#11
Solved: 5 Years, 2 Months, 4 Weeks ago
(2020-07-11, 07:38 AM)NoRules Wrote: Hi,

I need to copy/paste us the headerinclude template of the theme you're using in your forum (in the Ungrouped Templates section)


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){ 
$(".forumbit_subforums").each(function () {
 if($(this).length){
  $(this).parents(".rowbit").find("a[data-subforum]").addClass("smalltext").attr("data-subforum", "true");
 }
}); 
});
</script>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />

<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet"> 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="{$mybb->settings['bburl']}/images/netpen-pro/css/jquery.tipsy.css" rel="stylesheet" type="text/css" />

<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1821"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1821"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1821"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/netpen-pro/js/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/netpen-pro/js/theme.js"></script>
	
	
	
	<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
{$stylesheets}<!-- UNREADPOSTS_CSS -->
<link href="{$mybb->settings['bburl']}/images/netpen-pro/css/index-sidebar.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
<!--
	lang.unknown_error = "{$lang->unknown_error}";

	lang.select2_match = "{$lang->select2_match}";
	lang.select2_matches = "{$lang->select2_matches}";
	lang.select2_nomatches = "{$lang->select2_nomatches}";
	lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
	lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
	lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
	lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
	lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
	lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
	lang.select2_loadmore = "{$lang->select2_loadmore}";
	lang.select2_searching = "{$lang->select2_searching}";

	var templates = {
		modal: '{$jsTemplates['modal']}',
		modal_button: '{$jsTemplates['modal_button']}'
	};

	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var rootpath = "{$mybb->settings['bburl']}";
	var imagepath = "{$theme['imgdir']}";
  	var yes_confirm = "{$lang->yes}";
	var no_confirm = "{$lang->no}";
	var MyBBEditor = null;
	var spinner_image = "{$theme['imgdir']}/spinner.gif";
	var spinner = "<img src='" + spinner_image +"' alt='' />";
	var modal_zindex = 9999;
// -->
</script>



<script type="text/javascript">
//ScrollToTop
jQuery(document).ready(function() {
    var offset = 100;
    var duration = 250;
    jQuery(window).scroll(function() {
        if (jQuery(this).scrollTop() > offset) {
            jQuery(".scrolltotop").fadeIn(duration);
        } else {
            jQuery(".scrolltotop").fadeOut(duration);
        	}
    });
    
    jQuery('.scrolltotop').click(function(event) {
        event.preventDefault();
        jQuery('html, body').animate({scrollTop: 0}, 600);
        	return false;
    	})
});
</script>{$myalerts_js}
Reply
#12
Solved: 5 Years, 2 Months, 4 Weeks ago
Hi,

try to replace the headerinclude template with this one and check for errors:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1821"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.3.1/jquery-migrate.min.js" integrity="sha512-wDH73bv6rW6O6ev5DGYexNboWMzBoY+1TEAx5Q/sdbqN2MB2cNTG9Ge/qv3c1QNvuiAuETsKJnnHH2UDJGmmAQ==" crossorigin="anonymous"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1821"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1821"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/netpen-pro/js/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/netpen-pro/js/theme.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){ 
$(".forumbit_subforums").each(function () {
 if($(this).length){
  $(this).parents(".rowbit").find("a[data-subforum]").addClass("smalltext").attr("data-subforum", "true");
 }
}); 
});
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />

<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet"> 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="{$mybb->settings['bburl']}/images/netpen-pro/css/jquery.tipsy.css" rel="stylesheet" type="text/css" />

<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
{$stylesheets}<!-- UNREADPOSTS_CSS -->
<link href="{$mybb->settings['bburl']}/images/netpen-pro/css/index-sidebar.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
<!--
	lang.unknown_error = "{$lang->unknown_error}";

	lang.select2_match = "{$lang->select2_match}";
	lang.select2_matches = "{$lang->select2_matches}";
	lang.select2_nomatches = "{$lang->select2_nomatches}";
	lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
	lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
	lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
	lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
	lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
	lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
	lang.select2_loadmore = "{$lang->select2_loadmore}";
	lang.select2_searching = "{$lang->select2_searching}";

	var templates = {
		modal: '{$jsTemplates['modal']}',
		modal_button: '{$jsTemplates['modal_button']}'
	};

	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var rootpath = "{$mybb->settings['bburl']}";
	var imagepath = "{$theme['imgdir']}";
  	var yes_confirm = "{$lang->yes}";
	var no_confirm = "{$lang->no}";
	var MyBBEditor = null;
	var spinner_image = "{$theme['imgdir']}/spinner.gif";
	var spinner = "<img src='" + spinner_image +"' alt='' />";
	var modal_zindex = 9999;
// -->
</script>



<script type="text/javascript">
//ScrollToTop
jQuery(document).ready(function() {
    var offset = 100;
    var duration = 250;
    jQuery(window).scroll(function() {
        if (jQuery(this).scrollTop() > offset) {
            jQuery(".scrolltotop").fadeIn(duration);
        } else {
            jQuery(".scrolltotop").fadeOut(duration);
        	}
    });
    
    jQuery('.scrolltotop').click(function(event) {
        event.preventDefault();
        jQuery('html, body').animate({scrollTop: 0}, 600);
        	return false;
    	})
});
</script>{$myalerts_js}
I don't answer questions about localhost forums or forums without URL, I'm not a seer.  Cool
Reply
#13
Solved: 5 Years, 2 Months, 4 Weeks ago
(2020-07-13, 10:22 AM)NoRules Wrote: Hi,

try to replace the headerinclude template with this one and check for errors:

Unfortunately, it made editor panel disabled, and when deleting uploaded images in a new reply it making a reply published (without deleting image).
Reply
#14
Solved: 5 Years, 2 Months, 4 Weeks ago
Hi,

1] I see the old headerinclude in your forum.
2] There's a problem with the https migration in your forum and a lot of things aren't loading.
3] You don't provide log errors so we can see where the problem in your forum could be.

As .m. said, contact with the theme coder.
I don't answer questions about localhost forums or forums without URL, I'm not a seer.  Cool
Reply
#15
Solved: 5 Years, 2 Months, 4 Weeks ago
(2020-07-15, 06:41 AM)NoRules Wrote: Hi,

1] I see the old headerinclude in your forum.
2] There's a problem with the https migration in your forum and a lot of things aren't loading.
3] You don't provide log errors so we can see where the problem in your forum could be.

As .m. said, contact with the theme coder.

2]  Huh  I'm not migrated yet. After you mention that I switched off ssl in provider's admin panel.
3] 
newreply.php?tid=8&processed=1:10 Uncaught ReferenceError: jQuery is not defined
    at newreply.php?tid=8&processed=1:10
newreply.php?tid=8&processed=1:1500 Uncaught TypeError: $(...).error is not a function
    at newreply.php?tid=8&processed=1:1500
2jquery.sceditor.defaultdark.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
VM743 newreply.php:10 Uncaught ReferenceError: jQuery is not defined
    at VM743 newreply.php:10
(anonymous) @ VM743 newreply.php:10
Navigated to http://mk90.net/forum/newreply.php?tid=8&processed=1
newreply.php?tid=8&processed=1:1526 Uncaught TypeError: $(...).error is not a function
    at newreply.php?tid=8&processed=1:1526
(anonymous) @ newreply.php?tid=8&processed=1:1526
VM768 jquery.sceditor.bbcode.min.js:3 [Violation] Avoid using document.write(). https://developers.google.com/web/updates/2016/08/removing-document-write
H @ VM768 jquery.sceditor.bbcode.min.js:3
M @ VM768 jquery.sceditor.bbcode.min.js:3
Ct @ VM768 jquery.sceditor.bbcode.min.js:3
create @ VM768 jquery.sceditor.bbcode.min.js:3
(anonymous) @ VM768 jquery.sceditor.bbcode.min.js:3
each @ VM747 jquery.js:2
each @ VM747 jquery.js:2
o.fn.sceditor @ VM768 jquery.sceditor.bbcode.min.js:3
(anonymous) @ newreply.php?tid=8&processed=1:1058
l @ VM747 jquery.js:2
c @ VM747 jquery.js:2
VM768 jquery.sceditor.bbcode.min.js:3 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(anonymous) @ VM768 jquery.sceditor.bbcode.min.js:3
Fe @ VM768 jquery.sceditor.bbcode.min.js:3
_ @ VM768 jquery.sceditor.bbcode.min.js:3
A @ VM768 jquery.sceditor.bbcode.min.js:3
M @ VM768 jquery.sceditor.bbcode.min.js:3
Ct @ VM768 jquery.sceditor.bbcode.min.js:3
create @ VM768 jquery.sceditor.bbcode.min.js:3
(anonymous) @ VM768 jquery.sceditor.bbcode.min.js:3
each @ VM747 jquery.js:2
each @ VM747 jquery.js:2
o.fn.sceditor @ VM768 jquery.sceditor.bbcode.min.js:3
(anonymous) @ newreply.php?tid=8&processed=1:1058
l @ VM747 jquery.js:2
c @ VM747 jquery.js:2
VM747 jquery.js:2 [Violation] 'setTimeout' handler took 99ms
VM768 jquery.sceditor.bbcode.min.js:3 GET http://mk90.net/forum/jscripts/sceditor/styles/jquery.sceditor.defaultdark.css?ver=1821 net::ERR_ABORTED 404 (Not Found)
H @ VM768 jquery.sceditor.bbcode.min.js:3
M @ VM768 jquery.sceditor.bbcode.min.js:3
Ct @ VM768 jquery.sceditor.bbcode.min.js:3
create @ VM768 jquery.sceditor.bbcode.min.js:3
(anonymous) @ VM768 jquery.sceditor.bbcode.min.js:3
each @ VM747 jquery.js:2
each @ VM747 jquery.js:2
o.fn.sceditor @ VM768 jquery.sceditor.bbcode.min.js:3
(anonymous) @ newreply.php?tid=8&processed=1:1058
l @ VM747 jquery.js:2
c @ VM747 jquery.js:2
setTimeout (async)
(anonymous) @ VM747 jquery.js:2
u @ VM747 jquery.js:2
fireWith @ VM747 jquery.js:2
fire @ VM747 jquery.js:2
u @ VM747 jquery.js:2
fireWith @ VM747 jquery.js:2
ready @ VM747 jquery.js:2
_ @ VM747 jquery.js:2
Navigated to http://mk90.net/forum/newreply.php?tid=8&processed=1
newreply.php?tid=8&processed=1:10 Uncaught ReferenceError: jQuery is not defined
    at newreply.php?tid=8&processed=1:10
(anonymous) @ newreply.php?tid=8&processed=1:10
[Violation] Forced reflow while executing JavaScript took 30ms
newreply.php?tid=8&processed=1:1540 Uncaught TypeError: $(...).error is not a function
    at newreply.php?tid=8&processed=1:1540
(anonymous) @ newreply.php?tid=8&processed=1:1540
jquery.sceditor.bbcode.min.js?ver=1822:3 [Violation] Avoid using document.write(). https://developers.google.com/web/updates/2016/08/removing-document-write
H @ jquery.sceditor.bbcode.min.js?ver=1822:3
M @ jquery.sceditor.bbcode.min.js?ver=1822:3
Ct @ jquery.sceditor.bbcode.min.js?ver=1822:3
create @ jquery.sceditor.bbcode.min.js?ver=1822:3
(anonymous) @ jquery.sceditor.bbcode.min.js?ver=1822:3
each @ jquery.js?ver=1821:2
each @ jquery.js?ver=1821:2
o.fn.sceditor @ jquery.sceditor.bbcode.min.js?ver=1822:3
(anonymous) @ newreply.php?tid=8&processed=1:1070
l @ jquery.js?ver=1821:2
c @ jquery.js?ver=1821:2
jquery.sceditor.bbcode.min.js?ver=1822:3 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(anonymous) @ jquery.sceditor.bbcode.min.js?ver=1822:3
Fe @ jquery.sceditor.bbcode.min.js?ver=1822:3
_ @ jquery.sceditor.bbcode.min.js?ver=1822:3
A @ jquery.sceditor.bbcode.min.js?ver=1822:3
M @ jquery.sceditor.bbcode.min.js?ver=1822:3
Ct @ jquery.sceditor.bbcode.min.js?ver=1822:3
create @ jquery.sceditor.bbcode.min.js?ver=1822:3
(anonymous) @ jquery.sceditor.bbcode.min.js?ver=1822:3
each @ jquery.js?ver=1821:2
each @ jquery.js?ver=1821:2
o.fn.sceditor @ jquery.sceditor.bbcode.min.js?ver=1822:3
(anonymous) @ newreply.php?tid=8&processed=1:1070
l @ jquery.js?ver=1821:2
c @ jquery.js?ver=1821:2
jquery.js?ver=1821:2 [Violation] 'setTimeout' handler took 85ms
jquery.sceditor.bbcode.min.js?ver=1822:3 GET http://mk90.net/forum/jscripts/sceditor/styles/jquery.sceditor.defaultdark.css?ver=1821 net::ERR_ABORTED 404 (Not Found)
H @ jquery.sceditor.bbcode.min.js?ver=1822:3
M @ jquery.sceditor.bbcode.min.js?ver=1822:3
Ct @ jquery.sceditor.bbcode.min.js?ver=1822:3
create @ jquery.sceditor.bbcode.min.js?ver=1822:3
(anonymous) @ jquery.sceditor.bbcode.min.js?ver=1822:3
each @ jquery.js?ver=1821:2
each @ jquery.js?ver=1821:2
o.fn.sceditor @ jquery.sceditor.bbcode.min.js?ver=1822:3
(anonymous) @ newreply.php?tid=8&processed=1:1070
l @ jquery.js?ver=1821:2
c @ jquery.js?ver=1821:2
setTimeout (async)
(anonymous) @ jquery.js?ver=1821:2
u @ jquery.js?ver=1821:2
fireWith @ jquery.js?ver=1821:2
fire @ jquery.js?ver=1821:2
u @ jquery.js?ver=1821:2
fireWith @ jquery.js?ver=1821:2
ready @ jquery.js?ver=1821:2
_ @ jquery.js?ver=1821:2
 
Unfortunately, it's not possible to involve theme author/coder.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)