getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

mb_strpos() expects parameter 1 to be string, array given with test version v4.0.0-rc.3 #167

Closed Andy-Flack closed 1 year ago

Andy-Flack commented 1 year ago

had a form with an email process process:

        email:
            from: '{{ config.plugins.email.from }}'
            to:
                - '{{ config.plugins.email.to }}'
                - '{{ form.value.email }}'

That gives the error in the title falling back to process:

        email:
            from: '{{ config.plugins.email.from }}'
            to: '{{ form.value.email }}'

works (interim of one address in the array also fails)

This is new problem with the TEST version v4.0.0-rc.3 not with the 'live' version (thankfully).

fugo commented 1 year ago

I get this with any form I have on different website with email v4 First tought it was a form issue

rhukster commented 1 year ago

PHP Version?

fugo commented 1 year ago

Sorry, I forget this PHP 8.1

rhukster commented 1 year ago

Fixed in 4.0.0-rc.4 - sorry for the delay!