Illegal Offset when using multi-select fields

automatorwp_get_array_key_value() does not handle multi-select (array) keys by default, so the issue bubbles up to automatorwp_get_automation_item_option_replacement()

The below snippet should fix it, by deferring to the next block of logic:


if( in_array( $field['type'], array( 'select', 'automatorwp_select', 'automatorwp_select_filter' ) ) && ! is_array( $value ) ) {
  • This topic was modified 1 hour, 27 minutes ago by Alex Stewart. Reason: Used Markdown syntax for solution codeblock. My bad

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here