AJS is not define

Hi, we did use your product for couple months now and suddendly it is becoming unusable. I get a couple message says that the macro is unkown (Unknown macro: {recently-updated-dashboard}) also in the scripting errors log i see referenceError : AJS is not defined (in dashboard/batch.js) the fonction serving JavaScript in header is alredy turned on

3 answers

1 accepted

I moved my installation to an other server restore my backups and I'm up and running now but there is no way I can reinstall one the original server as it is always missing AJS... Anyway case close for me. And thank you for the full procedure to reinstall

It sounds like one of the JavaScript files isn't loading for some reason -- maybe it got corrupted. If you have Firebug or the Chrome debug tools you should be able to look at the network tab and see if something failed to load.

If I look with firebug I don't see any error in the network section. But when I look to the console section there is 3 errors :

SyntaxError: missing ; before statement
{namespace Confluence.Templates.Dialog}
ReferenceError: AJS is not defined
})(AJS.$);
ReferenceError: placeFocus is not defined
placeFocus();

I moved my installation to an other server restore my backups and I'm up and running now but there is no way I can reinstall one the original server as it is always missing AJS... Anyway case close for me. And thank you for the full procedure to reinstall

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

202 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you