MyBB Community Forums

Full Version: In ''inspect'' showing 2 errors.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,  i am with latest mybb version and etc...
My site is working normally ,but  when i click ''Inspect'' on my site ,it's showing the following errors on the bottom:

index:11 Uncaught ReferenceError: jQuery is not defined
    at index:11
nav-bg-dark.png:1 Failed to load resource: the server responded with a status of 404 ()


Picture: https://prnt.sc/wa4k0o

As i said ,my site is working normally ,i was just wondering why in ''Inspect'' is showing these errors.

My questions:
Question 1: How to fix the above errors in ''Inspect''
Question 2: How to hide these folders from ''Inspect'' , picture: https://prnt.sc/wa4n3a ,and if these folders are not hidden - this will cause problems in my site in future?

I will be thankful for any answers.
Your board URL will be helpful for identifying first issue.
For second issue, upload the required image file "nav-bg-dark.png" in desired path.
Concerning your first error (nota for effone: https://www.grparrow.com/), I think the trouble come from your headerinclude:
<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>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
var jq1111 = jQuery.noConflict();
</script>
Not really sure everything is at its good place.

And you can't hide the folders, in inspector nor in html source. And no, it won't cause any trouble.
Hi,

1st Question, 1st Issue:

As Crazycat said, it's not at good place. In your headerinclude template find:

<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>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
var jq1111 = jQuery.noConflict();
</script>


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

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
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");
 }
});
});
var jq1111 = jQuery.noConflict();
</script>


1st Question, 2nd Issue:
it's fixed as it doesn't show up.

2nd Question:
those folders can't be hidden, and are part of the web page you're viewing. They won't cause any trouble.

Tip again: you'll have more and more errors with this Theme, change it before it's too late...
Hi,thanks for the answers,
My site: https://www.grparrow.com/
My results from testing without WAF: https://prnt.sc/waajmw

I am beginner and i am working on that specific theme maybe 2 months. Everything working normal,

About the issues ,issue 1 = fixed.
About the other issue ,it's showing just in inspect element.
However ,since my site is working normal ,i wanted to make sure everything is secure before i publish my site in social media Big Grin

My question:
The issue in inspect element could cause problems in future or make my site easy for hack attacks?
(2020-12-26, 01:22 PM)grouparrow Wrote: [ -> ]My question:
The issue in inspect element could cause problems in future or make my site easy for hack attacks?

Which issue are you talking about ? Seeing the directories ? They will be show just looking at your html source, and it's the same for any website.
It is not an issue, it's the normal way for any website (including forums and others cms).
It shows where some images, css and js are stored, nothing else.
I strongly believe you are using an outdated theme.
And the declarations remind me of 1.6 ages when we didn't have jQuery in core and used to handle conflict with prototype mandatorily.
I am using Netpen theme. = https://community.mybb.com/mods.php?action=view&pid=727

Before 2 months i checked the themes in MyBb and Netpen is top 2 by voting with stars by the users and i liked how it looks,so 2 months i am with Netpen and i am using it . I had to deal with a lot of problems and errors ,but slowly i fixed everything , i had to touch a lot of templates. But really looks good now.
For beginner like me ,i am happy with what i did so far.

Like Mr Effone , I am pretty sure also the theme is outdated and nobody takes care of it .
If is really outdated ,nobody from the staff can touch little the theme and fix what it need to be fixed? Because as i said is top 2 by stars and with 21000 downloads,really looks great.


However ,i did a lot of work for how it looks now and everything working perfectly fine.

Questions:
There is a way how to fix the theme by myself if is outdated ??
Since the theme is working perfectly fine now , what problems i would have in future if is outdated ??