EDMdesigner / editor-issues

This is an issue tracking repository for reporting bugs, improvements and feature requests of our email editor.
5 stars 1 forks source link

Opening editor first time for a template gives "Uncaught Error, no language package found!" #32

Closed danieledler closed 4 years ago

danieledler commented 8 years ago

When I first open a template for editing, the iframe doesn't load its content but halts on this error:

image

When I go back and try to open the editor again, it works. This is the last call:

function getMyL10nPackage(vmKey) {
  if(!window.languagePackage) {
    throw "Error, no language package found!";
  }
agnieszkakowalska commented 8 years ago

Hi, I also remember noticing such error twice I believe, but it was not replicable on my side unfortunately - after refreshing the page it worked fine.

danieledler commented 8 years ago

Yes, it always work if I reload the page, which makes it hard to reproduce. It's not every time for a new template either, but it has happened several times for me, and that case should be handled by the editor by either showing some error feedback that asks the user to try again, or preferably by ensuring that window.languagePackage is defined or else define it.

gyulanemeth commented 8 years ago

Can you give me access to an environment, where it happens frequently? That would help a lot!

danieledler commented 8 years ago

When it happened frequently, it was usually the first time I tried to edit a template after I logged in (i.e. after I requested a new access token). The workflow was to first createFromDefaults and then open the editor for the new template.

I can't manage to reproduce it now unfortunately, so I would suggest to track it in your code from the stack trace above to make sure that window.languagePackage always get's set correctly if that is a requirement, or at least try to capture and handle possibly throwed errors somehow on your side. I'm sorry I can't help more than that.

iamgaborgithub commented 4 years ago

Dear Daniel,

I’m Gábor from edmdesigner.com. I organize our public Github issues and close this ticket because it looks outdated. If you do not agree with it please leave a comment and I’ll be in touch.

If you have any new issues or feedback to share then please don’t hesitate and open a new ticket or send us an email to support@edmdesigner.com.

I hope you are well.

Best regards, Gábor Kovács Project Manager @ edmdesigner.com