Popups don't work

Bauer

Well-Known Member
If I try setting fabrik list links to use ajax popups, the popups show but do not work.
Joomla 3.5.1 Fbrik 3.4.3 PHP 7.0.5

The error console shows this first line as a yellow caution notice...
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Then beneath that is a require.js fatal error...
require.js:8 Uncaught Error: Mismatched anonymous define() ... followed by a dump of the entire script.

See attachment.
 

Attachments

  • modalPopupError.png
    modalPopupError.png
    151 KB · Views: 108
Well, guess what. They work fine for me.

I don't recognize the code in that anonymous define error. Any clue what that is?

-- hugh
 
Well, guess what. They work fine for me.

I don't recognize the code in that anonymous define error. Any clue what that is?

-- hugh
Google is your friend...

"Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience"
https://www.google.com/search?q=Synchronous+XMLHttpRequest+on+the+main+thread+is+deprecated+because+of+its+detrimental+effects+to+the+end+user's+experience&oq=Synchronous+XMLHttpRequest+on+the+main+thread+is+deprecated+because+of+its+detrimental+effects+to+the+end+user's+experience&aqs=chrome..69i57j69i59.171405j0j7&sourceid=chrome&ie=UTF-8

"Uncaught Error: Mismatched anonymous define()"
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=Uncaught+Error:+Mismatched+anonymous+define()

This is #1 on the list at requirejs.org for "COMMON ERRORS"... http://requirejs.org/docs/errors.html#mismatch
To avoid the error:
  • Be sure to load all scripts that call define() via the RequireJS API. Do not manually code script tags in HTML to load scripts that have define() calls in them.
  • If you manually code an HTML script tag, be sure it only includes named modules, and that an anonymous module that will have the same name as one of the modules in that file is not loaded.
  • If the problem is the use of loader plugins or anonymous modules but the RequireJS optimizer is not used for file bundling, use the RequireJS optimizer.
  • If the problem is the var define lint approach, use /*global define */ (no space before "global") comment style instead.
 
Last edited:
Well yes, I know all that. What I said was, I don't recognize the javascript code quoted in the define error msg. Isn't ours. Any idea where it comes from on your site?

Sent from my HTC One using Tapatalk
 
Well yes, I know all that. What I said was, I don't recognize the javascript code quoted in the define error msg. Isn't ours. Any idea where it comes from on your site?

Sent from my HTC One using Tapatalk
OK, sorry. It's pretty long, else I would have included it originally. It looks to me like the jQueryUI code. I attached a text file containing a cut and paste of the entire error shown in the console.

I'll try using a different version of JqueryUI.
 

Attachments

  • mismatch_js_error.txt
    233.8 KB · Views: 163
That took care of it. Thanks for the clue.

I use the jQueryEasy plugin with jQueryUi v1.11.3 (which I thought would match the version of jQuery). I changed that to use 'Joomla! framework' and the error went away.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top