home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
WebMediaPortl x64 with IISExpress 10
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BCEly" data-source="post: 1301011" data-attributes="member: 171853"><p>Could be a jquery-3.7.1 issue with an uncaught Error - If I click on my login name at top of skin I get;</p><p></p><p>3 - jquery-3.7.1.min.js?v=7393293:2 Uncaught Error: Syntax error, unrecognized expression: #</p><p> at I.error (jquery-3.7.1.min.js?v=7393293:2:11769)</p><p> at Y (jquery-3.7.1.min.js?v=7393293:2:17234)</p><p> at re (jquery-3.7.1.min.js?v=7393293:2:20008)</p><p> at Function.I [as find] (jquery-3.7.1.min.js?v=7393293:2:7520)</p><p> at ce.find (jquery-3.7.1.min.js?v=7393293:2:21991)</p><p> at new <anonymous> (jquery-3.7.1.min.js?v=7393293:2:22483)</p><p> at ce (jquery-3.7.1.min.js?v=7393293:2:1077)</p><p> at i (bootstrap.min.js?v=7393293:6:7876)</p><p> at HTMLAnchorElement.toggle (bootstrap.min.js?v=7393293:6:8214)</p><p> at HTMLDocument.dispatch (jquery-3.7.1.min.js?v=7393293:2:40035)</p><p></p><p>I also get an Uncaught Error if I click on the Name of my TVServer in the Nav Bar where you'd expect a drop down and the "RefreshRate" drop down on the Status Page.</p><p></p><p>The AI error explanation;</p><p></p><p>The core of the error message is:</p><p></p><p>Code</p><p></p><p>Uncaught Error: Syntax error, unrecognized expression: #</p><p>Use code snippets with caution</p><p></p><p>This means that jQuery's selector engine (the part of jQuery that figures out which elements you're trying to select with things like $("#myId"), $(".myClass"), etc.) is being given a selector string that it doesn't understand. In this specific case, the problematic string is just a single #.</p><p></p><p>Where the Error Happens</p><p></p><p>The stack trace shows us the path the code took to get to this error:</p><p></p><p>I.error @ jquery-3.7.1.min.js...: This is where the error is thrown. I.error is a function within jQuery specifically designed to throw errors related to invalid selector syntax.</p><p>Y @ jquery-3.7.1.min.js...: and re @ jquery-3.7.1.min.js...: Functions involved in parsing and evaluating the selector.</p><p>I @ jquery-3.7.1.min.js This is the jQuery find function.</p><p>ce.find @ jquery-3.7.1.min.js...: jQuery's internal mechanism for finding elements.</p><p>(anonymous) @ jquery-3.7.1.min.js...: Some anonymous function is ultimately calling into jQuery.</p><p>ce @ jquery-3.7.1.min.js...: It seems a jQuery method is used in anonymous function</p><p>i @ bootstrap.min.js...: The problem likely originates within Bootstrap's JavaScript code.</p><p>toggle @ bootstrap.min.js...: The specific Bootstrap function in use is toggle, very probably related to toggle navbar.</p><p>dispatch @ jquery-3.7.1.min.js...: jQuery's event handling system.</p><p>(anonymous) @ jquery-3.7.1.min.js...: The Event Handler</p><p>The Culprit: An Empty href or data-bs-target Attribute</p><p></p><p>Based on the error message and the stack trace, the problem almost certainly stems from a link (<a> tag) or other element (like a button) in your HTML that's being used to trigger a Bootstrap component (like a collapse, modal, or dropdown). This link or button has one of the following problems:</p><p></p><p>Empty href: The href attribute is present but empty (<a href="#"></a> or <a href=""></a>).</p><p>Empty data-bs-target or data-target (for older Bootstrap versions): The element intended to open a modal, collapse a div, etc., has an empty or invalid data-bs-target or data-target attribute (<button data-bs-target="#"></button>). The data-bs-toggle or data-toggle attribute might also be the problem.</p><p>Why "#" is a Problem When It's Alone</p><p></p><p>Intended Meaning: When # is followed by an ID (e.g., #myDiv), it's a valid CSS selector that tells jQuery to find an element with that ID.</p><p>Problem with Just "#": When # stands alone, it's considered an invalid CSS selector. jQuery doesn't know what to look for.</p><p>Code Analysis:</p><p></p><p>The provided code snippet looks like it is from the internal jQuery, it is not yours and it is ok. It show you the internal way jQuery parse the code. The line of code I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)} is just the error generator.</p><p></p><p>How to Fix It</p><p></p><p>Inspect Your HTML:</p><p>Open your web app in your browser.</p><p>Right-click and choose "Inspect" or "Inspect Element."</p><p>Carefully examine any <a> (links) or other buttons, div elements (for collapses), etc., that are part of Bootstrap components (e.g., modals, accordions, navbars).</p><p>Look for href, data-bs-target, data-toggle, data-bs-toggle attributes.</p><p>Check if any of them are empty or contain only #.</p><p>Correct the Attributes:</p><p>Empty href:</p><p>If the link is not meant to navigate anywhere, use href="javascript:void(0)" or remove the href attribute completely. It is better to remove it and add type="button" if it is not a link.</p><p>If the link is supposed to navigate, make sure it points to a valid URL or a valid element ID (e.g., #someSection).</p><p>Empty data-bs-target (or data-target):</p><p>This attribute must contain the ID of the element you want to target (e.g., data-bs-target="#myModal", data-target="#myCollapse"). Make sure you have an element with that exact ID in your HTML.</p><p>data-bs-toggle or data-toggle</p><p>Check that they have a value.</p></blockquote><p></p>
[QUOTE="BCEly, post: 1301011, member: 171853"] Could be a jquery-3.7.1 issue with an uncaught Error - If I click on my login name at top of skin I get; 3 - jquery-3.7.1.min.js?v=7393293:2 Uncaught Error: Syntax error, unrecognized expression: # at I.error (jquery-3.7.1.min.js?v=7393293:2:11769) at Y (jquery-3.7.1.min.js?v=7393293:2:17234) at re (jquery-3.7.1.min.js?v=7393293:2:20008) at Function.I [as find] (jquery-3.7.1.min.js?v=7393293:2:7520) at ce.find (jquery-3.7.1.min.js?v=7393293:2:21991) at new <anonymous> (jquery-3.7.1.min.js?v=7393293:2:22483) at ce (jquery-3.7.1.min.js?v=7393293:2:1077) at i (bootstrap.min.js?v=7393293:6:7876) at HTMLAnchorElement.toggle (bootstrap.min.js?v=7393293:6:8214) at HTMLDocument.dispatch (jquery-3.7.1.min.js?v=7393293:2:40035) I also get an Uncaught Error if I click on the Name of my TVServer in the Nav Bar where you'd expect a drop down and the "RefreshRate" drop down on the Status Page. The AI error explanation; The core of the error message is: Code Uncaught Error: Syntax error, unrecognized expression: # Use code snippets with caution This means that jQuery's selector engine (the part of jQuery that figures out which elements you're trying to select with things like $("#myId"), $(".myClass"), etc.) is being given a selector string that it doesn't understand. In this specific case, the problematic string is just a single #. Where the Error Happens The stack trace shows us the path the code took to get to this error: I.error @ jquery-3.7.1.min.js...: This is where the error is thrown. I.error is a function within jQuery specifically designed to throw errors related to invalid selector syntax. Y @ jquery-3.7.1.min.js...: and re @ jquery-3.7.1.min.js...: Functions involved in parsing and evaluating the selector. I @ jquery-3.7.1.min.js This is the jQuery find function. ce.find @ jquery-3.7.1.min.js...: jQuery's internal mechanism for finding elements. (anonymous) @ jquery-3.7.1.min.js...: Some anonymous function is ultimately calling into jQuery. ce @ jquery-3.7.1.min.js...: It seems a jQuery method is used in anonymous function i @ bootstrap.min.js...: The problem likely originates within Bootstrap's JavaScript code. toggle @ bootstrap.min.js...: The specific Bootstrap function in use is toggle, very probably related to toggle navbar. dispatch @ jquery-3.7.1.min.js...: jQuery's event handling system. (anonymous) @ jquery-3.7.1.min.js...: The Event Handler The Culprit: An Empty href or data-bs-target Attribute Based on the error message and the stack trace, the problem almost certainly stems from a link (<a> tag) or other element (like a button) in your HTML that's being used to trigger a Bootstrap component (like a collapse, modal, or dropdown). This link or button has one of the following problems: Empty href: The href attribute is present but empty (<a href="#"></a> or <a href=""></a>). Empty data-bs-target or data-target (for older Bootstrap versions): The element intended to open a modal, collapse a div, etc., has an empty or invalid data-bs-target or data-target attribute (<button data-bs-target="#"></button>). The data-bs-toggle or data-toggle attribute might also be the problem. Why "#" is a Problem When It's Alone Intended Meaning: When # is followed by an ID (e.g., #myDiv), it's a valid CSS selector that tells jQuery to find an element with that ID. Problem with Just "#": When # stands alone, it's considered an invalid CSS selector. jQuery doesn't know what to look for. Code Analysis: The provided code snippet looks like it is from the internal jQuery, it is not yours and it is ok. It show you the internal way jQuery parse the code. The line of code I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)} is just the error generator. How to Fix It Inspect Your HTML: Open your web app in your browser. Right-click and choose "Inspect" or "Inspect Element." Carefully examine any <a> (links) or other buttons, div elements (for collapses), etc., that are part of Bootstrap components (e.g., modals, accordions, navbars). Look for href, data-bs-target, data-toggle, data-bs-toggle attributes. Check if any of them are empty or contain only #. Correct the Attributes: Empty href: If the link is not meant to navigate anywhere, use href="javascript:void(0)" or remove the href attribute completely. It is better to remove it and add type="button" if it is not a link. If the link is supposed to navigate, make sure it points to a valid URL or a valid element ID (e.g., #someSection). Empty data-bs-target (or data-target): This attribute must contain the ID of the element you want to target (e.g., data-bs-target="#myModal", data-target="#myCollapse"). Make sure you have an element with that exact ID in your HTML. data-bs-toggle or data-toggle Check that they have a value. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
WebMediaPortl x64 with IISExpress 10
Contact us
RSS
Top
Bottom