Undeclared arguments passed to ViewHelper Undkonsorten\Powermailpdf\ViewHelpers\Misc\VariablesViewHelper: mail

199 views Asked by At

In TYPO3 9.5 using powermail with powermailpdf I'm getting the following error when submitting a form...

Undeclared arguments passed to ViewHelper Undkonsorten\Powermailpdf\ViewHelpers\Misc\VariablesViewHelper: mail.

It appears that it's complaining about mail but I don't know what to do about it. I've included the static templates for powermail followed by powermailpdf in the main TS template and see below for the mapping part of powermailpdf. I also added {downloadLink} in the RTE area for the receiver in the powermail content element and have email addresses entered there as well for the Receiver's Email and Sender's Email.

The only place I found the word mail in the docs was on this page, but it appears I don't need to do that since I'm using a powermail version greater than 3 right?

PS: I also posted this question as an issue for powermailpdf.

Relevant packages

TypoScript I'm using

plugin.tx_powermailpdf {
    settings {
        enablePowermailPdf = 1
        showDownloadLink = 1
        email.attachFile = 1
        filelink {
            jumpurl = 1
            jumpurl.secure = 1
            jumpurl.secure.mimeTypes = pdf=application/pdf
            icon = 1
            icon_link = 1
        }
        sourceFile = EXT:rapidfyre_estreetdrivingschool/Resources/Public/Forms/Student_Training_Record.pdf
        fieldMap{
            # Note the format is... pdfField = PowermailField
            name = studentsname
            address = address
            city = city
            state = state
            zip = zip
            gender = gender
            home_number = homephone
            alternate_number = alternatephone
            student_cell = studentsphone
            student_email = studentsemail
            parent_name = parentsname
            parent_email = parentsemail
            high_school = highschool
            birth_date = dateofbirth
            permit_number = permitorid
            class = class

            # Hidden fields
            orientation = orientation
        }
    }
}

Image of the first part of the error trace

Error trace from powermailpdf after powermail form submission

1

There are 1 answers

0
Julian Hofmann On

EXT:powermailpdf is overriding this ViewHelper (Code).

config.tx_extbase {
    objects {
        In2code\Powermail\ViewHelpers\Misc\VariablesViewHelper.className = Undkonsorten\Powermailpdf\ViewHelpers\Misc\VariablesViewHelper
    }
}

But the classes seems not match (in these versions):

So, a call of this VH (possibly also from the normal Powermail templates) will hit a non-compatible version of the ViewHelper.