Fatal error / PostFieldsFactory
-
Hello,
I am contacting you because I am having a recurring problem with the Mailpoet plugin. Each time I update the plugin, I get a fatal error in the automation. See screenshot. So I stopped the updates. And my developer was able to temporarily fix the problem in a file of your plugin. See attachment. This is the PostFieldsFactory.php file or the code on line 238 originally: array_filter(
$postTypes,
function(\WP_Post_Type $type): bool {
return $type->public;
}
has been modified by: array_filter(
$postTypes,
function(\WP_Post_Type $type): bool {
return (bool) $type->public;
}
Which allows the automation to work again.
However, with each update the problem comes back. Can you tell me why and what should I do. The plugin has been deleted and reinstalled via FTP as well, but nothing works. Waiting for your feedback,
Best regards,
- You must be logged in to reply to this topic.