• Resolved Fernando Perrella

    (@feperrella)


    After the last update from Google Web Stories, it started throwing errors in some actions, like automated newsletters does not work, duplicating newsletters also does not work, they use the same approach, so I’m sending the error that is generated after duplicating a newsletter.

    I have already spoken with Mailster support and they have confirmed that this is an issue with Web Stories plugin:

    WordPress: 6.1.1
    Web Stories: 1.30.0
    Mailster: 3.2.4
    PHP: 8.1.13

    Fatal error: Uncaught TypeError: Google\Web_Stories\KSES::filter_insert_post_data(): Argument #3 ($unsanitized_postarr) must be of type array, WP_Post given, called in /public_html/wp-includes/class-wp-hook.php on line 310 and defined in /public_html/wp-content/plugins/web-stories/includes/KSES.php:125 Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(310): Google\Web_Stories\KSES->filter_insert_post_data(Array, Array, Object(WP_Post)) #1 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #2 /public_html/wp-includes/post.php(4418): apply_filters(‘wp_insert_post_…’, Array, Array, Object(WP_Post), false) #3 /public_html/wp-content/plugins/mailster/classes/campaigns.class.php(2695): wp_insert_post(Array) #4 /public_html/wp-content/plugins/mailster/classes/campaigns.class.php(464): MailsterCampaigns->duplicate(124890) #5 /public_html/wp-includes/class-wp-hook.php(308): MailsterCampaigns->edit_hook(”) #6 /public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #7 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /public_html/wp-settings.php(639): do_action(‘wp_loaded’) #9 /public_html/wp-config.php(96): require_once(‘…’) #10 /public_html/wp-load.php(50): require_once(‘…’) #11 /public_html/wp-admin/admin.php(34): require_once(‘…’) #12 /public_html/wp-admin/edit.php(10): require_once(‘…’) #13 {main} thrown in /public_html/wp-content/plugins/web-stories/includes/KSES.php on line 125

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Thanks for your report.

    While this error occurs in the Web Stories plugin, and we can probably add some workaround on our side, it’s actually the Mailster plugin which is doing it wrong.

    I highly encourage you to report this as a bug to Mailster.

    Specifically, they are using the wp_insert_post() function wrong in the MailsterCampaigns class. That function expects the first argument ($postarr) to be an array, but Mailster is providing a WP_Post instance instead. That does not only break Web Stories, but can also break other plugins and even WordPress core itself, especially on newer PHP versions when trying to access WP_Post like an array.

    So again, we can work around it in our next release, but please, please report this bug to Mailster because it’s actually them who are breaking it.

    Thread Starter Fernando Perrella

    (@feperrella)

    Thanks for the quick reply, already forwarded to them.

    Hoping the issue is quickly solved by both sides.

    Best!

    Hi There!

    Thanks for reporting! We’ve already applied a patch for the next version!

    Best Regards

    Thread Starter Fernando Perrella

    (@feperrella)

    Thank you for the quick solution!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Mailster plugin Conflict’ is closed to new replies.