Unable to add a segment (AJAX Error)

Created on 26 April 2021, over 3 years ago
Updated 28 July 2023, over 1 year ago

Problem/Motivation

I'm evaluating Smart Content. I am trying to add a segment but I get an AJAX error.

Here's the Chrome console error:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/smart_content_segment_set/add?ajax_form=1
StatusText: parsererro
ResponseText: Warning: uasort() expects parameter 1 to be array, null given in /code/web/modules/contrib/smart_content/src/SegmentSet.php on line 157

Here's the visual behavior:
https://gyazo.com/2460e0641a2b870b5d395bae02551c8b

Steps to reproduce

The following modules are installed:

Smart Content
Smart Content A/B
Smart Content Block
Smart Content Browser
Smart Content Data Layer
Smart Content UTM

We are are not using LayoutBuilder.

Drupal 8.9.13.

Proposed resolution

n/a

Remaining tasks

n/a

User interface changes

n/a

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States capellic Austin, Texas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024