• Resolved 69thelememt

    (@69thelememt)


    I get the following error when trying to allocate a segment

    Invalid argument supplied for foreach() in /home/infographicalley/public_html/wp-content/plugins/automate-mautic/classes/class-apm-rulepanel.php on line 159

    Please help
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 69thelememt

    (@69thelememt)

    $all_segments = ‘<select class=”root-seg-action” name=”ss_seg_action[]”>’;
    $all_segments .= ‘<option>’ . __( ‘Select Segment’, ‘automateplus-mautic-wp’ ) . ‘</option>’;

    foreach ( $segments->lists as $offset => $list ) {
    $all_segments .= self::make_option( $list->id, $list->name, $select );
    }
    $all_segments .= ‘</select>’;
    echo $all_segments;
    }

    @69thelememt There is something wrong while getting segments from Mautic API. I would suggest you to please click on ‘Refresh Mautic Data’ which you can find at bottom right corner of automate admin page. Also make sure to use latest version of AutomatePlus – Mautic for WordPress.

    Hope it will solve your problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid Argument in code’ is closed to new replies.