Parsing Meteor error: Exception from Deps afterFlush - meteor

I get these Deps errors from time to time and I can never figure out what they mean or what they're pointing to:
Exception from Deps afterFlush function function: SyntaxError: Unexpected identifier
at eval (native)
at http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:372:22
at Function.jQuery.extend.globalEval (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:373:7)
at jQuery.ajaxSetup.converters.text script (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9806:11)
at ajaxConvert (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:8873:18)
at done (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9293:15)
at callback (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9753:8)
at Object.send (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9759:7)
at Function.jQuery.extend.ajax (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9244:15)
at Function.jQuery._evalUrl (http://localhost:4000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:9409:16) debug.js:41
It thinks that there is a syntax error, but the only files it points to are jquery.js, which I HIGHLY doubt contain errors...

This error is caused by code in a Template helper somewhere that uses JQuery/a jquery plugin and is running code using eval which contains a syntax error in it, which is why it appears to come from JQuery itself.
There isn't much more than this to go off im afraid. It might be from ajax. Have a look at your chrome's network tab to see what is being downloaded just before this happens and see if it contains any javascript.
If it contains HTML when it should contain javascript check your Meteor paths, Meteor does not throw 404 errors, instead it serves out the main page's html, which may be why the error displays this way instead of a 404

I just came across the similar "afterFlush" error, and while my error was also rooted in a jQuery/plugin with Meteor, it had nothing to do with eval.
The issue circled back around to updating the DOM at the same time I was updating a reactive method, where Meteor was also updating the DOM reactively. I found this out, and removed the manual DOM manipulation, which made this error go away. Hope someone else finds this helpful...

Related

_getAsyncTracker() returns error: undefined is not a function

I am trying to use the GA tracker object to push external links to GA for tracking. However, I am not sure how to get past this weird error when creating the tracker. From what I can tell, I am doing the same thing that many examples have.
You're getting that error because the function _getAsyncTracker() is not defined yet. The reason it's not defined yet is because your code is running before the ga.js script is finished downloading.
What you need to do is wait until the script has downloaded, and then you can run your code. You can do that by pushing a function onto the _gaq array. Once ga.js is downloaded, it'll execute your function.
_gaq.push(function() {
var tracker = _gaq._getAsyncTracker();
console.log(tracker);
});
Also, beware that the _getAsyncTracker() method is deprecated:
https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApi_gaq#_gaq._getAsyncTracker
Moving the errored line of code out of that script block into another one gets rid of the error. Not sure why though.

Drupal 7: Views giving 500 error - stdClass::can_expose is undefined?

I have a view that I have created that seems to crash and cause 500 server errors as soon as I use conditional filters with it.
The error that my server logs are giving me is:
*mod_fcgid:stderr: PHP Fatal error: Call to undefined method stdClass::can_expose() in /sites/all/modules/contrib/views/views.module on line 1971*
So I did a grep for the can_expose function and see it fine in /sites/all/modules/contrib/views/includes/handlers.inc
I'm more convinced that its something that I might be doing wrong in my setup of the view - but I can't be sure (I'm a noob). This only seems to appear on this view that uses conditionals (and I have tried changing them numerous times to different things, seeing if that will change).
If I don't use conditional filters though - the view works fine.
Any ideas?
Thanks
Ryan
Just for kicks, I recreated the view and it works fine. My thought is that something in the original view got corrupt somehow.
Workaround is in place, however - if anyone else has seen this issue, I would love to understand why this error happens

Broken JavaScript Registry in Plone 3.1.7

I created a javascript file TTW for a quick fix to something i was working with, and when i went to the portal_javascripts and added it there i was met with this error upon saving:
Exception Type: CompilerError
Exception Value: Path element may not be empty in 'portal/http://www.example.com/portal_skins/cloud.js'
I get that same error every time i attempt to navigate to the portal_javascripts through the ZMI, it's obvious that I incorrectly entered the id of my file, but now I can't even fix it.
I was able to find this example of someone with a similiar issue, but I have no how to go about his fix
http://markmail.org/message/zbjhjoezz2h423yr#query:+page:1+mid:yhgjekdkwnegwqen+state:results
Try this:
http://example.com/portal_javascripts/unregisterResource?id=[your_js_resource_id]

SecurityError: Error #2000: No active security context

I recently had this vague error happen to me with the use of LocalConnection.
It happened every time I tried to connect and send data to another swf.
Doing an internet search came up with little results pertaining to LocalConnection and this error and the response some people had were just ridiculous.
Apparently this error pertains to image loading and fileReference also, just not in this case.
My sending code works fine, even the event.level returned as status which means the other swf got the message, however a trace in the other swf callback function did not show, telling me the callback never triggered.
Image loading error
I got nailed on this one again with loading images.
The answer has been updated to include the fix for this also.
As it turns out the fix is simple.
The connection name was too long.
I cut the name down to 30 characters and it started working immediately.
I also want to add that if there is an error in the callback function you will get this error.
IMAGE LOADING ERROR
Well this error popped up on me again, but this time when I was loading images.
// bad code
imageObj.source = partialURL1 + partialURL2 + partialURL3;
//good code
var someURL:String = partialURL1 + partialURL2 + partialURL3
imageObj.source = someURL;
It seems you can not append the URL on the same line you assign it. Looks like a debugger bug. Even with the bad code HTTPFox was showing the images where loading, but the program would crap out somewhere after the source assignment, probably on the onloaded callback. I stopped looking into the matter when I found the source assignment fixed it.
I've had this error too, and for me the errorous code was
someobject.misspelledVariable.toString();
Where someobject was sent through a earlier localConnection and misspelledVariable is of course undefined.
Changing misspelledVariable to a correct one solved my problem. Strange error though...

Jquery Validation Not working throwing error $.validation is undefinedj

jQuery validation is working fine on my machine, when i pushed it to test server it won't it's throwing some errors which is kind of surprising.
These are the errors I am getting:
$.validator is null or not an object...
I've never gotten this error before and it throwing an error when I declared a variable like var isValid.
I don't know what to do. I am doing the custom validation methods not in the document.ready(). Does this cause this error? I wonder because all jquery validations are passing and hitting the server side validations.
Almost always this type of $.<insert-function-here> is a path or typo error, jQuery cannot find the function. Check your includes and script for typos and verify the paths are correct.
I just found it...there is mismatching of version for validation plug in and jquery base file..i don't know how it is working on my machine..i don't know..I just changed my jquery file to 1.4.2 and validation plug in to latest one..and its working perfect...thanks for your reply.. –

Resources