Hello again. Seems i jumped of the hot pot, to the frying pan. I now have the error
Argument 1 passed to Grav\Plugin\EmailPlugin::buildMessage() must be of the type array, null given, called in /home/pixyznet/public_html/user/plugins/email/email.php on line 75 and defined
this email.php is suposed to recieve the parameters to build the email. So, my debug is:
public function onFormProcessed(Event $event) {
dump($event);
die();
I can see its getting the info:
Event {#137 ▼
#items: array:3 [▼
"form" => Form {#154 ▼
+message: null
+message_color: null
#header_data: []
#rules: []
#data: Data {#157 ▼
#gettersVariable: “items”
#items: array:4 [▼
"name" => “Luis”
“email” => "email@gmail.com"
“telefone” => "912123123"
“maisinfo” => “test”
So, in
$form = $event['form'];
$action = $event['action'];
$params = $event['params'];
dump($params);
die();
so th index “params” doesn’t exist, but the info is there. So what can i do?
thanks for any help
Ah, btw: the site is in http://pixyz.net/