Ajax trigers error

Created on 19 June 2025, 13 days ago

Problem/Motivation

When users trigger ajax request on a field widget (social_link_field module) following error appearing on the page:
TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() (line 675 of /var/www/html/web/modules/contrib/token/token.module).

Steps to reproduce

1. Install modules: token, social_link_field;
2. Add field of Social Links type to any of content type;
3. Go to the node creating form of content type with social links field;
4. Select one of listed item in the social field widget.

Current behavior: error visible after ajax response.
Expectations: no error visible after ajax response.

Proposed resolution

For token_node_menu_link_submit Entity builder add additional condition to check button submit presents

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Vasyl Vasylkiv

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024