• Resolved Redyan

    (@redyan)


    Good morning everyone,
    on each page where the newsletter subscription form is present there is a JS error:

    Uncaught SyntaxError: missing) after argument list (at (index): 644: 49)

    <script type = 'text / javascript' id = 'mailpoet_public-js-after'>
    function initMailpoetTranslation () {
       if (typeof MailPoet! == 'undefined') {
         MailPoet.I18n.add ('ajaxFailedErrorMessage', 'There was an error processing your request, please try again later.')
       } else {
         setTimeout (initMailpoetTranslation, 250);
       }
    }
    setTimeout (initMailpoetTranslation, 250);
    </script>

    The error in question seems to be generated by the presence of a single superscript (in Italian it is an apostrophe) which is interpreted in the wrong way:

    MailPoet.I18n.add(‘ajaxFailedErrorMessage’, ‘Si è verificato un errore nellelaborazione della richiesta, riprova più tardi.’)

    Could this be a problem generated by a translation string? Would you be kind enough to check?

    Thank you!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Redyan

    (@redyan)

    This is the complete response in italian

    <script type = 'text / javascript' id = 'mailpoet_public-js-after'>
    function initMailpoetTranslation () {
       if (typeof MailPoet! == 'undefined') {
         MailPoet.I18n.add(‘ajaxFailedErrorMessage’, ‘Si è verificato un errore nell‘elaborazione della richiesta, riprova più tardi.’)
       } else {
         setTimeout (initMailpoetTranslation, 250);
       }
    }
    setTimeout (initMailpoetTranslation, 250);
    </script>

    UP!, me too. it’s possible only on italian language have this problem?

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    There is a pending fix for this, found here: https://github.com/mailpoet/mailpoet/pull/4409

    When this is merged, the next version of MailPoet should contain this fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught SyntaxError: missing ) after argument list’ is closed to new replies.