array_flip error when if generate content with openai_devel

Created on 27 June 2023, 12 months ago
Updated 4 November 2023, 8 months ago

Problem/Motivation

with openai_devel I have these errors
TypeError: array_flip(): Argument #1 ($array) must be of type array, string given in array_flip() (line 333 of /project/app/modules/contrib/openai/modules/openai_devel/src/Plugin/DevelGenerate/ContentGPTDevelGenerate.php).
TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in in_array() (line 339 of /project/app/modules/contrib/openai/modules/openai_devel/src/Plugin/DevelGenerate/ContentGPTDevelGenerate.php).

Steps to reproduce

  1. Activate openai_devel
  2. Go to admin/config/development/generate/content-gpt and in "Base fields to populate" add body, field_tags
  3. Click to Generate Button

Proposed resolution

Add parent::settingsFormValidate($form, $form_state); on line 130

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France liber_t Lille

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

Comments & Activities

Production build 0.69.0 2024