str_replace(): Argument #3 ($subject) must be of type array|string, null given

When i try to send est mail, it showing the attached error, i upgraded to 2.0.11

str_replace(): Argument #3 ($subject) must be of type array|string, null given​

 

Attachments

  • error.PNG
    error.PNG
    22.8 KB · Views: 8
I had this same issue now with the latest Mailwizz version, it was caused by the RANDOM_CONTENT tag not being able to render numbers randomly (it used to be able to in earlier versions)
 
@rita - I just tried now and I cannot reproduce it:
Code:
$content = 'This is some random content "[RANDOM_CONTENT: 1|2|3|4|5]" and it should work just fine!';

echo CampaignHelper::applyRandomContentTag($content) . PHP_EOL;
And I got:
Bash:
cristi@Serbans-MacBook-Pro /tmp % php rnd.php     
This is some random content "2" and it should work just fine!
cristi@Serbans-MacBook-Pro /tmp % php rnd.php
This is some random content "5" and it should work just fine!
cristi@Serbans-MacBook-Pro /tmp % php rnd.php
This is some random content "3" and it should work just fine!
Can you please give me more details?
 
Back
Top