After the latest contactfrom7 update, there is a message to validate the forms.
When i do that, there is a fatal error with the message below
Λεπτομέρειες σφάλματος
===========================================
Ένα σφάλμα τύπου E_ERROR εντοπίστηκε στη γραμμή 185 του αρχείου/wp-content/plugins/contact-form-7-dynamic-text-extension/includes/validation.php. Κωδικός σφάλματος: Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/contact-form-7-dynamic-text-extension/includes/validation.php:185
@alexio101 can you please confirm that you’re using version 5.8.1 of Contact Form 7 and version 4.1.0 of Contact Form 7 – Dynamic Text Extension, please? And also steps to reproduce your error exactly.
In my test case, the value of $components[0] is mail and the value of $components[1] is sender (because I’m using a DTX email field as my sending email address) so calling $contact_form->prop("mail") gets the mail property from the form object and then it retrieves the sender attribute. In my test case, $raw_value successfully retrieved the value I set as [_site_title] <[dtx_email]> as the sender my mail template.
However, the error you posted is implying that the mail object is a string and therefore breaking when trying to get the sender property (the indexes in $components was already validated on line 179). I can add validation to ensure that the value of $contact_form->prop($components[0]) is an array type before I attempt to access the attribute, but it has me concerned that there’s something else broken in your instance because it just shouldn’t be a string.
I can see in CF7’s release notes for 5.8.1 that there are changes to the configuration validator and they note that some are backward-incompatible so that could be the issue as well.
Since the problem was in validation while your plugin was active, i disabled temporarily, did the form validation, re-enabled it and everything works great. Thank you for looking into it.