Account created on 3 May 2016, almost 9 years ago
#

Recent comments

@annmarysruthy you must index content for the issue to occur, but I would recommend looking at the details of the reported errors as the starting point to look for a solution.

I am also experiencing this issue, which is posted at https://www.drupal.org/project/token_custom/issues/3505396#comment-15988391 🐛 Cannot Delete Custom Tokens Active .

The provided patch fails to apply on my system on the current version 3.0.0.-beta-5.

Unfortunately the patch from that issue failed to apply on my website.

I am experiencing the same issue when trying to use an AI assistant to access a Milvus database on Zilliz, using chunks.

Type ai_assistant_api
Location /api/deepchat?token=x1wYx02AoCuBiTZo7IO_Lxt3pWTBgyeXsJ8EOrFDWNg
Referrer /admin/config/search/search-api/index/default_ai_index
Message Failed to search: Failed to load original object entity:node/3:en:455796844485086408
Severity Error

Everything seems to work well on my site.

Thanks for the feature updates!

I traced down the issue to a database error on my site. I had previously installed the Domain module , which caused many website issues. When it was uninstalled, it left behind many artifacts in the database causing a variety of website errors. I was able to clean up the database and correct these errors left by the domain module, and now I no longer experience this error.

It appears the patch did not completely solve the issue.

I found the solution for my site on a very old issue at https://www.drupal.org/project/drupal/issues/2502637 🐛 Disabled text formats can't be seen in the GUI Needs work comment #60:

"It is possible to reenable disabled text formats with the configuration manager:

go to /admin/config/development/configuration/single/export
choose Text format as the Configuration type
choose the disabled text format as Configuration Name
copy the configuration
go to /admin/config/development/configuration/single/import
again choose Text format as the Configuration type
paste the configuration
change "status" from false to true
click on import
Voilá, the text format is available again. This is working but not user friendly :("

After following these instructions, webforms are working for my site again.

Thanks I will give that a try and see if it improves the errors.

Update:

I was able to fix my issue using the patch in #11 at https://www.drupal.org/project/drupal/issues/3358586 💬 RuntimeException: Adding non-existent permissions to a role is not allowed Active

Update:

I was able to fix my issue using the patch in #11 at https://www.drupal.org/project/drupal/issues/3358586 💬 RuntimeException: Adding non-existent permissions to a role is not allowed Active

I am experiencing a similar error when trying to edit settings on content type fields. I applied the patch successfully, but I still receive this error:

RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "use text format webform_default". in Drupal\user\Entity\Role->calculateDependencies() (line 210 of /var/www/html/web/core/modules/user/src/Entity/Role.php).

Severity Error
Hostname 172.31.13.98
Operations
Backtrace
#0 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(328): Drupal\user\Entity\Role->calculateDependencies()
#1 /var/www/html/web/core/modules/user/src/Entity/Role.php(182): Drupal\Core\Config\Entity\ConfigEntityBase->preSave()
#2 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(528): Drupal\user\Entity\Role->preSave()
#3 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(483): Drupal\Core\Entity\EntityStorageBase->doPreSave()
#4 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(257): Drupal\Core\Entity\EntityStorageBase->save()
#5 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityBase.php(354): Drupal\Core\Config\Entity\ConfigEntityStorage->save()
#6 /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(617): Drupal\Core\Entity\EntityBase->save()
#7 /var/www/html/web/modules/contrib/field_permissions/src/Plugin/FieldPermissionType/CustomAccess.php(91): Drupal\Core\Config\Entity\ConfigEntityBase->save()
#8 /var/www/html/web/modules/contrib/field_permissions/field_permissions.module(178): Drupal\field_permissions\Plugin\FieldPermissionType\CustomAccess->submitAdminForm()
#9 [internal function]: field_permissions_field_config_edit_form_submit()
#10 /var/www/html/web/core/lib/Drupal/Core/Form/FormSubmitter.php(129): call_user_func_array()
#11 /var/www/html/web/core/lib/Drupal/Core/Form/FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers()
#12 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm()
#13 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(326): Drupal\Core\Form\FormBuilder->processForm()
#14 /var/www/html/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#15 /var/www/html/web/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult()
#16 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
#17 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#18 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#19 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#20 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#21 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#22 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#23 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#24 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#25 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#26 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#27 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#28 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#29 /var/www/html/web/modules/contrib/advban/src/AdvbanMiddleware.php(57): Drupal\page_cache\StackMiddleware\PageCache->handle()
#30 /var/www/html/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\advban\AdvbanMiddleware->handle()
#31 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#32 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#33 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#34 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#35 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#36 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#37 {main}

I received email confirmation from Fireworks AI that their models for Stable Diffusion 3.5 are no longer serverless. From Fireworks AI:

"Stable Diffusion was undeployed on Serverless. We always send emails to users of Serverless models before undeploying the models but it's possible we may have missed some users. We're focusing primarily on text, vision and audio models right now, so I'd recommend looking for another provider."

Related to this, i will put in a request to add Stability AI as a provider.

All of the other models from Fireworks AI still work, but Stable diffusion 3.5 models can safely be removed from their list of models.

I have the same issue, but I am not as experienced with coding. Could you tell me where you added this code to resolve the issue?

I logged into both of those pages and I experienced the same. Flux works but stable diffusion does not. It was working for me on fireworks AI until just recently. Hopefully this is just an error on Fireworks side.

I located Stable Diffusion on their active list of serverless models at https://fireworks.ai/models and had similar issues with other models of Stable diffusion.

I am sending them a support request also under my account also, so they know this is not isolated to one person.

I just want to keep this issue alive until it gets repaired. Please let me know if I can contribute in any way!

Fireworks is the best provider for my current needs, and I would love to regain access to Stable Diffusion. Thanks for your help!

No problem, and thanks for the help!

I am using
- Drupal 10.4.0
- ECA 2.1.0
- Php 8.3.11

All modules are currently up to date

Updated the issue to make it a little more clear. The text from the log ended up causing formatting problems.

I am still experiencing a lot of these errors generating text using the automator. It seems to happen when there is any kind of formatting in the output.

Typically, I receive an error message at the top of the page with the text that should have been placed in the text field. I have tried different providers and settings but nothing seems to help.

I posted the same issue in the fireworks AI provider thread, and the Amazon Bedrock Provider, and not sure if those issues are related. I cannot use any stable diffusion images on Fireworks AI, and I cannot use any images at all on Amazon Titan.

I have not yet tried Anthropic as a provider, but I can if that will help with testing.

Yes, sorry for the delay, Its quite a large list of modules so I agree there is likely a conflict somewhere. Many of these modules are not enabled I am experiencing this issue on at least 2 websites which have a heavy module load. I am not experiencing this on test sites with only AI modules installed.

_core:
  default_config_hash: R4IF-ClDHXxblLcG0L7MgsLvfBIMAvi_skumNFQwkDc
module:
  new_relic_rpm: -20
  address: 0
  admin_toolbar: 0
  admin_toolbar_search: 0
  admin_toolbar_tools: 0
  advban: 0
  ai: 0
  ai_api_explorer: 0
  ai_assistant_api: 0
  ai_automators: 0
  ai_chatbot: 0
  ai_ckeditor: 0
  ai_content_suggestions: 0
  ai_eca: 0
  ai_external_moderation: 0
  ai_image_alt_text: 0
  ai_image_bulk_alt_text: 0
  ai_logging: 0
  ai_provider_aws_bedrock: 0
  ai_provider_groq: 0
  ai_provider_huggingface: 0
  ai_provider_openai: 0
  ai_search: 0
  ai_seo: 0
  aitxt: 0
  allowed_formats: 0
  autoban: 0
  autoban_advban: 0
  autoban_ban: 0
  automated_cron: 0
  autotitle: 0
  aws: 0
  back_to_top: 0
  ban: 0
  better_exposed_filters: 0
  big_pipe: 0
  block: 0
  block_content: 0
  breakpoint: 0
  calendar_view: 0
  calendar_view_demo: 0
  calendar_view_multiday: 0
  captcha: 0
  cdn: 0
  cdn_ui: 0
  certificate: 0
  ckeditor5: 0
  comment: 0
  commerce: 0
  commerce_authnet: 0
  commerce_cart: 0
  commerce_checkout: 0
  commerce_log: 0
  commerce_number_pattern: 0
  commerce_order: 0
  commerce_payment: 0
  commerce_payment_example: 0
  commerce_price: 0
  commerce_product: 0
  commerce_product_limits: 0
  commerce_promotion: 0
  commerce_store: 0
  composer_deploy: 0
  config: 0
  config_entity_reference_selection: 0
  contact: 0
  content_moderation: 0
  contextual: 0
  credited_hours_formatter: 0
  csv_serialization: 0
  date_filter: 0
  datetime: 0
  datetime_range: 0
  dblog: 0
  domain: 0
  domain_access: 0
  duration_field: 0
  dynamic_page_cache: 0
  eca: 0
  editor: 0
  embed: 0
  entity: 0
  entity_browser: 0
  entity_browser_entity_form: 0
  entity_embed: 0
  entity_print: 0
  entity_print_views: 0
  entity_reference_revisions: 0
  entityreference_filter: 0
  exclude_node_title: 0
  field: 0
  field_group: 0
  field_layout: 0
  field_permissions: 0
  field_ui: 0
  file: 0
  file_mdm: 0
  file_mdm_exif: 0
  file_mdm_font: 0
  filefield_paths: 0
  filter: 0
  fireworksai: 0
  flag: 0
  flag_bookmark: 0
  flag_count: 0
  flippy: 0
  flood_control: 0
  formatter_suite: 0
  iframe: 0
  image: 0
  image_effects: 0
  imagemagick: 0
  inline_entity_form: 0
  job_scheduler: 0
  jquery_ui: 0
  jquery_ui_accordion: 0
  jquery_ui_checkboxradio: 0
  jquery_ui_datepicker: 0
  jquery_ui_draggable: 0
  jquery_ui_droppable: 0
  jquery_ui_effects: 0
  jquery_ui_resizable: 0
  jquery_ui_slider: 0
  jquery_ui_tabs: 0
  jquery_ui_touch_punch: 0
  jsonapi: 0
  key: 0
  language: 0
  layout_builder: 0
  layout_discovery: 0
  link: 0
  mailgun: 0
  mailsystem: 0
  masquerade: 0
  media: 0
  media_directories: 0
  media_directories_editor: 0
  media_directories_ui: 0
  media_library: 0
  menu_link_content: 0
  menu_trail_by_path: 0
  menu_ui: 0
  messageclose: 0
  mimemail: 0
  mimemail_example: 0
  multiple_registration: 0
  mysql: 0
  node: 0
  options: 0
  page_cache: 0
  path: 0
  path_alias: 0
  pdf_api: 0
  phpass: 0
  printable: 0
  printable_pdf: 0
  profile: 0
  quicktabs: 0
  quicktabs_accordion: 0
  quicktabs_jqueryui: 0
  quiz: 0
  quiz_directions: 0
  quiz_long_answer: 0
  quiz_matching: 0
  quiz_multichoice: 0
  quiz_page: 0
  quiz_short_answer: 0
  quiz_truefalse: 0
  range: 0
  recaptcha: 0
  responsive_image: 0
  rest: 0
  rules: 0
  s3fs: 0
  scheduler: 0
  search: 0
  search_api: 0
  serialization: 0
  settings_tray: 0
  shortcut: 0
  sophron: 0
  state_machine: 0
  super_login: 0
  superfish: 0
  syslog: 0
  system: 0
  tabtamer: 0
  tamper: 0
  taxonomy: 0
  telephone: 0
  text: 0
  text_field_formatter: 0
  time_field: 0
  token: 0
  token_filter: 0
  toolbar: 0
  twig_tweak: 0
  type_style: 0
  type_style_example: 0
  type_style_moderation: 0
  typed_data: 0
  ultimate_cron: 0
  update: 0
  user: 0
  viewfield: 0
  views_aggregator: 0
  views_bulk_edit: 0
  views_bulk_operations: 0
  views_conditional: 0
  views_data_export: 0
  views_field_view: 0
  views_infinite_scroll: 0
  views_merge_rows: 0
  views_pdf: 0
  views_slideshow: 0
  views_slideshow_cycle: 0
  views_ui: 0
  viewsreference: 0
  webform: 0
  webform_access: 0
  webform_attachment: 0
  webform_demo_region_contact: 0
  webform_entity_view: 0
  webform_example_composite: 0
  webform_example_remote_post: 0
  webform_example_variant: 0
  webform_examples: 0
  webform_image_select: 0
  webform_node: 0
  webform_options_custom: 0
  webform_options_limit: 0
  webform_scheduled_email: 0
  webform_schema: 0
  webform_share: 0
  webform_submission_log: 0
  webform_templates: 0
  webform_ui: 0
  webform_views: 0
  workflows: 0
  pathauto: 1
  views: 10
  paragraphs: 11
  minimal: 1000
theme:
  claro: 0
  stable: 0
  classy: 0
  colosseum: 0
profile: minimal

I am elevating this to major because all image models for Amazon titan are not working, and this affects the site functionality I am currently working on

I have tried the current recommended versions of this module and other AI modules with no improvement. I cannot offer coding or API assistance, but I would be happy to contribute with testing and/or site usage for this and other AI modules.

I greatly appreciate any assistance resolving this and bringing the image models to full functionality!

I am going to create a separate issue for the error since this seems like its related, but not the same problem. Also, the error prevents using Fireworks in most capacities, so I am going to make the new issue critical because it is seriously impacting site functionality.

I can't offer help for coding the fix, but I would be happy to provide some assistance with testing if this is will help move this issue along!

While I cannot offer assistance coding the repair, I would be happy to provide some testing for a repair! Please let me know how I can assist with this project.

I am having the same issue when trying to add a product variation of an existing product.

I had this exact issue. I did not have the Large image style, and experienced the error below, along with a white screen when going to admin/config/media/ai_image_bulk_alt_text. Thanks to this post, I was able to add the Large image style and the page worked correctly. Thanks for the great module! My error is below:
Message Error: Call to a member function transformDimensions() on null in template_preprocess_image_style() (line 288 of /var/www/html/website/web/core/modules/image/image.module).
Severity Error

I was able to test Stable Image Ultra, core, and sd3 and all return errors like this:

An error occurred
The following error occurred while processing your request:

Error invoking model response: Error executing "InvokeModel" on "https://bedrock-runtime.us-west-2.amazonaws.com/model/stability.stable-i..."; AWS HTTP error: Client error: `POST https://bedrock-runtime.us-west-2.amazonaws.com/model/stability.stable-i...` resulted in a `400 Bad Request` response: {"message":"Malformed input request, please reformat your input and try again."} ValidationException (client): Malformed input request, please reformat your input and try again. - {"message":"Malformed input request, please reformat your input and try again."}

Of the following exception type:

Drupal\ai\Exception\AiRequestErrorException

I was able to solve this by emptying the Role ARN field on the Amazon Web Services Module. I hope this helps anyone else experiencing an issue with setup

This may be related, but I can open a new issue if its not. I am using the dev version now and I cannot use Stable Diffusion models. This is while using the AI explorer. Playground and flux work. The automator also fails when trying to use stable diffusion.

The error I receive is:

An error occurred
The following error occurred while processing your request:

Error invoking client: Client error: `POST https://api.fireworks.ai/inference/v1/workflows/accounts/fireworks/model...` resulted in a `404 Not found` response: {"error":"Model not found, inaccessible, and/or not deployed"}

Of the following exception type:

Drupal\ai\Exception\AiBadRequestException

I am using an external amazon RDS database, in case that information helps. But I have a similar configuration on a site where this is working so I am not sure what the difference is.

I am using s3, and cloudfront to serve s3 files. I don't think it is the browser cache because I have been clearing my browser cache multiple times per day while working on css. If it was the browser cache I would be able to get the new files.

When I tested the dev release recently, this issue was unaffected. I was able to save files to the media library on the dev release, but if I did not save the file to the media library I received an old file.

This also gave my site the touch of death. I had to roll back to 2.0.8. I am experiencing the same errors.

On my site this happens when I try to create or edit a node which uses an entity reference on a field. The entity reference uses a contextual filter to check against the logged in user.

When this field with the entity reference is set to "checkboxes" or "select list" and a node with the field is created or edited, the error is produced. If I set the field to auto-complete, I am able to add or edit nodes, but the auto-complete does not work.

My errors:
1. Error: Call to a member function bundle() on null in Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection->stripAdminAndAnchorTagsFromResults() (line 289 of /var/www/html/website/web/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php).
2. Warning: Attempt to read property "_entity" on null in Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection->stripAdminAndAnchorTagsFromResults() (line 288 of /var/www/html/website/web/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php)
3. Warning: Undefined array key "#row" in Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection->stripAdminAndAnchorTagsFromResults() (line 288 of /var/www/html/website/web/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php)

Yes I think this is fixed in the dev version. Thanks for your help!

I am not convinced it is a timeout. The racing begins as soon as I send the request when I have the modules listed installed.

Then I uninstalled the sub-modules and the condition is no longer present. I have not experienced it once since uninstalling the extra modules. I am just not sure which one is the cause yet.

I can process a simple prompt, "test" and its instantly returned if I am not using the cron processing. But when I use the cron processing, I get the error even if the request is small. It seems to be an issue with the cron processing of the automator on my system. This may need to be filed as a different issue.

In any case, it seems like the specific issue where the cron processing breaks the site is caused by the conflicting module installations. It may be the particular configuration I have in my site, or a conflict in functionality of the modules. I will keep looking into it.

I have uninstalled several AI sub-modules I was using and that seems to have stabilized the system. The modules I uninstalled were external moderation, seo analyzer, AI search, image alt text, rest facets. The site no longer locks up with the memory overrun on the beta 4 or dev version.
I am not receiving the file back, and instead getting an error. I will keep trying at this and report back.

The error:
Queue worker starting to fill out field field_audio on entity node with id 1072
Error invoking model response: cURL error 28: Operation timed out after 30000 milliseconds with 2485937 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.openai.com/v1/audio/speech
A general error happened why trying to interpolate, message Error invoking model response: cURL error 28: Operation timed out after 30000 milliseconds with 2485937 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.openai.com/v1/audio/speech

Testing Update:

I have uninstalled several AI sub-modules I was using and that seems to have stabilized the system. The modules I uninstalled were external moderation, seo analyzer, AI search, image alt text, rest facets.

After removing these, the system seems to be OK (needs more overall testing). The memory leak issue seems to be related to one of the uninstalled modules, and probably not related to this issue. I am not sure which module, or why. I will test re-installing these modules later to see if I can find the problem. I suspect it to be external moderation calling OpenAI. But I also recently installed AI search and image alt text so I cant rule those out.

I reinstalled the dev version of AI. I was able to successfully save audio to the media library using the AI explorer. This is the first time I have been able to do this.
Each time I enter a new prompt, I get the correct audio back, and the new audio is saved to the media library. Previously I only received duplicates of old submissions.

It seems like this issue has been resolved with the dev version I tested "dev-1.0.x 42f0fea". In the end the only changes I made on my side were uninstalling the modules above, then testing the dev version.

I am not sure its a timeout. Open AI seems to never get the request, and I am not currently being billed for the attempts that fail. It seems like some general communication issue. And the memory starts filling up as soon as I send the request, not after a timeout. This behaves the same for audio as it does for AI assistants, and now the automator on node creation when using open AI. I have removed Open AI from most of my functions which allows things to work. I just upgraded past Beta 1 a few days ago and did not experience this, not sure if that is related.

I can easily reproduce the memory issue but I am not seeing anything in logs about this. Let me know if I can provide any more info or do some testing on my side to help find the cause.

Any request at all causes this issue now. In my most recent request I simply used "Test". It happens with everything I try now.

I have an update. I am experiencing this issue in many areas related to using Open AI. When I use an AI Assistant with Open AI, I get the same type of memory issue, eventually resulting in a timeout. This is solved by using a different provider like Groq or Fireworks.
Audio files only use Open AI. I am thinking this may be a more general Open AI api issue effecting multiple things rather than just related to the audio files.

Well this is interesting! This crashes my site. This may be related to a different issue I recently discovered and made a bug report about ( https://www.drupal.org/project/ai/issues/3492998 🐛 "Queue worker starting to fill out field Cron Job" Breaks Site Active ).

This seems to cause a memory leak when I try to generate the file in the explorer. I am experiencing a similar memory leak when trying to create a tts file using the automator scheduled cron. I also get the same memory leak occasionally when trying to generate text with the automator, using Open AI. When this has occurred, I have switched to Fireworks for the provider and everything works.

With the new dev patch, I do not get any files back when trying to create them no matter if I am using the 'Save as Media'. feature or not.

Error on screen:
Error message
Oops, something went wrong. Check your browser's developer console for more details.

There is no record of this in the site logs. AI logs also show nothing.

Linux shows memory racing for a minute or so then clears out once it hits the timeout. I attached a screenshot of the process running in linux if this helps.

I just installed the AI module on an existing site, and I am also receiving this error. AI text formatting with CK editor does not work at all on that site. I am not receiving this error on other websites using the AI modules.
My error:
LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution. in Drupal\Core\Database\Connection->__sleep() (line 1920 of /var/www/html/web/core/lib/Drupal/Core/Database/Connection.php).
Severity Error
Operations
Backtrace
#0 [internal function]: Drupal\Core\Database\Connection->__sleep()
#1 /var/www/html/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php(14): serialize()
#2 /var/www/html/web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php(129): Drupal\Component\Serialization\PhpSerialize::encode()
#3 /var/www/html/web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php(145): Drupal\Core\KeyValueStore\DatabaseStorageExpirable->doSetWithExpire()
#4 /var/www/html/web/core/lib/Drupal/Core/Form/FormCache.php(193): Drupal\Core\KeyValueStore\DatabaseStorageExpirable->setWithExpire()
#5 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(463): Drupal\Core\Form\FormCache->setCache()
#6 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(441): Drupal\Core\Form\FormBuilder->setCache()
#7 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(633): Drupal\Core\Form\FormBuilder->rebuildForm()
#8 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(326): Drupal\Core\Form\FormBuilder->processForm()
#9 /var/www/html/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#10 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#11 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#12 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#14 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#15 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#17 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#18 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#19 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#20 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#21 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#22 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#23 /var/www/html/web/modules/contrib/advban/src/AdvbanMiddleware.php(57): Drupal\page_cache\StackMiddleware\PageCache->handle()
#24 /var/www/html/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\advban\AdvbanMiddleware->handle()
#25 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#26 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#27 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#28 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#29 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#30 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#31 {main}

Thanks for your suggestion, that put me in the right direction. I am still having trouble applying the fork as described, but I was able to apply the changes as a patch with composer. I have some interesting results. Essentially it works.

When I generate a tts file in the AI explorer:
1. The error is no longer received.
2. The file is saved to the medial library correctly.
3. The saved file is based on the actual prompt, and plays correctly using the requested configuration.
4. Everything seems to line up on the side of the media library.

There are a few issues:
1. The AI Explorer does not provide the new file on-screen. The file provided is an old cached file that I made yesterday.
2. Each new tts I create shows the same cached file on screen, but the correct file is saved to the media library.
3. In short, the AI explorer appears to fail when it actually does not, it provides a cached file instead of the file it just created.

I am experiencing a different issue related to this with the automator, but it seems different enough to need its own issue.

The patch I tested seems to mostly resolve the issue on my website, based on the description above.

I tried the dev version, and everything seems to be working properly. Each assistant remembers their own session history and it is not shared with other assistants. Issue #1 is resolved for me!

I am still experiencing the same issue for number 2. I realize there are probably not a lot of use cases for most people. Thanks for the speedy fix!

I do not know how to do that. I haven't been able to find much helpful information how to do this, and my attempts have failed. If you know of a link to some instructions I can try to figure it out, but I am not successful installing the dev branch.

No problem, I'm happy to help. Should I use the latest dev version?

This is a media field referencing an image as the media type.
The automator type is "LLM: Media Image Generation"

Thanks for the help! I will apply and test this when I can, then report back results.

I was able to successfully upgrade to beta-4. Thanks for your help!

I just successfully updated to beta-4 but I am still experiencing this issue.

I just successfully updated to beta-4 but I am still experiencing this issue.

I had a few assistants with custom instructions, prompts, and a system prompt on these assistants. It looks like all of these instructions were wiped out but the assistants are still functional. I can get my prompts from a site backup, but this may be a larger issue for some people

No problem! I appreciate all of the hard work that you guys are doing on these AI modules and I am happy to help any way that I can.

This seems to be working so far. I will keep using it and let you know if I experience additional issues.

No user roles are missing.

I ran the all cron jobs and cleared the caches, and now the site has the white screen of death when navigating to most places. I tried to check the commerce license page and received a new error:
---------------------------------------------
Type php
Date Wednesday, December 4, 2024 - 10:43 am
User jeremy
Location https://www.aideamaker.com/admin/commerce/licenses
Referrer https://www.aideamaker.com/admin/commerce/config/licenses/dashboard
Message Error: Call to a member function label() on null in Drupal\commerce_license\Plugin\Commerce\LicenseType\Role->buildLabel() (line 48 of /var/www/html/website/web/modules/contrib/commerce_license/src/Plugin/Commerce/LicenseType/Role.php).
Severity Error
Hostname 67.11.162.40
Operations
Backtrace
#0 /var/www/html/website/web/modules/contrib/commerce_license/src/Entity/License.php(99): Drupal\commerce_license\Plugin\Commerce\LicenseType\Role->buildLabel()
#1 /var/www/html/website/web/modules/contrib/commerce_license/src/Plugin/views/field/EntityLabel.php(94): Drupal\commerce_license\Entity\License->label()
#2 /var/www/html/website/web/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1202): Drupal\commerce_license\Plugin\views\field\EntityLabel->render()
#3 /var/www/html/website/web/core/modules/views/views.theme.inc(238): Drupal\views\Plugin\views\field\FieldPluginBase->advancedRender()
#4 [internal function]: template_preprocess_views_view_field()
#5 /var/www/html/website/web/core/lib/Drupal/Core/Theme/ThemeManager.php(261): call_user_func_array()
#6 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(491): Drupal\Core\Theme\ThemeManager->render()
#7 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#8 /var/www/html/website/web/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1796): Drupal\Core\Render\Renderer->render()
#9 /var/www/html/website/web/core/modules/views/src/Plugin/views/style/StylePluginBase.php(767): Drupal\views\Plugin\views\field\FieldPluginBase->theme()
#10 [internal function]: Drupal\views\Plugin\views\style\StylePluginBase->elementPreRenderRow()
#11 /var/www/html/website/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call_user_func_array()
#12 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback()
#13 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(432): Drupal\Core\Render\Renderer->doCallback()
#14 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#15 /var/www/html/website/web/core/modules/views/src/Plugin/views/style/StylePluginBase.php(706): Drupal\Core\Render\Renderer->render()
#16 /var/www/html/website/web/core/modules/views/src/Plugin/views/style/StylePluginBase.php(572): Drupal\views\Plugin\views\style\StylePluginBase->renderFields()
#17 /var/www/html/website/web/core/modules/views/src/Plugin/views/style/StylePluginBase.php(460): Drupal\views\Plugin\views\style\StylePluginBase->renderGrouping()
#18 /var/www/html/website/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2177): Drupal\views\Plugin\views\style\StylePluginBase->render()
#19 /var/www/html/website/web/core/modules/views/src/ViewExecutable.php(1593): Drupal\views\Plugin\views\display\DisplayPluginBase->render()
#20 /var/www/html/website/web/core/modules/views/src/Plugin/views/display/Page.php(201): Drupal\views\ViewExecutable->render()
#21 /var/www/html/website/web/core/modules/views/src/ViewExecutable.php(1690): Drupal\views\Plugin\views\display\Page->execute()
#22 /var/www/html/website/web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay()
#23 [internal function]: Drupal\views\Element\View::preRenderViewElement()
#24 /var/www/html/website/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call_user_func_array()
#25 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback()
#26 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(432): Drupal\Core\Render\Renderer->doCallback()
#27 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender()
#28 /var/www/html/website/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render()
#29 /var/www/html/website/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#30 /var/www/html/website/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(231): Drupal\Core\Render\Renderer->executeInRenderContext()
#31 /var/www/html/website/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#32 /var/www/html/website/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#33 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#34 /var/www/html/website/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#35 /var/www/html/website/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#36 /var/www/html/website/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#37 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#38 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#39 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#40 /var/www/html/website/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#41 /var/www/html/website/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#42 /var/www/html/website/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#43 /var/www/html/website/web/modules/contrib/advban/src/AdvbanMiddleware.php(57): Drupal\page_cache\StackMiddleware\PageCache->handle()
#44 /var/www/html/website/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\advban\AdvbanMiddleware->handle()
#45 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#46 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#47 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#48 /var/www/html/website/web/modules/contrib/remove_http_headers/src/StackMiddleware/RemoveHttpHeadersMiddleware.php(49): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#49 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle()
#50 /var/www/html/website/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#51 /var/www/html/website/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#52 {main}

After using the site a little, I am now getting different errors related to commerce license that I was not experiencing before upgrading to the dev version. I double checked the permissions and setup on the license module and verified everything is correct.
I will try deleting existing licenses in the system and see if I get the same error, then report back. I am not sure if this is because of this update, or because of the license module.

The errors are all the same:
--------------------------------------

Type php
Date Wednesday, December 4, 2024 - 9:55 am
Location https://www.aideamaker.com/Posting-Limits-AI-Text/Account-Manger-AI-Text...
Referrer https://www.aideamaker.com/admin/structure/taxonomy/manage/posting_limit...
Message Error: Call to a member function label() on null in Drupal\commerce_license\Plugin\Commerce\LicenseType\Role->checkUserHasExistingRights() (line 102 of /var/www/html/website/web/modules/contrib/commerce_license/src/Plugin/Commerce/LicenseType/Role.php).
Severity Error
Operations
Backtrace
#0 /var/www/html/website/web/modules/contrib/commerce_license/src/LicenseAvailabilityCheckerExistingRights.php(173): Drupal\commerce_license\Plugin\Commerce\LicenseType\Role->checkUserHasExistingRights()
#1 /var/www/html/website/web/modules/contrib/commerce_license/src/LicenseAvailabilityCheckerExistingRights.php(136): Drupal\commerce_license\LicenseAvailabilityCheckerExistingRights->checkPurchasable()
#2 /var/www/html/website/web/modules/contrib/commerce/modules/order/src/AvailabilityManager.php(50): Drupal\commerce_license\LicenseAvailabilityCheckerExistingRights->check()
#3 /var/www/html/website/web/modules/contrib/commerce/modules/order/src/AvailabilityOrderProcessor.php(53): Drupal\commerce_order\AvailabilityManager->check()
#4 /var/www/html/website/web/modules/contrib/commerce/modules/order/src/OrderRefresh.php(198): Drupal\commerce_order\AvailabilityOrderProcessor->process()
#5 /var/www/html/website/web/modules/contrib/commerce/modules/order/src/OrderStorage.php(123): Drupal\commerce_order\OrderRefresh->refresh()
#6 /var/www/html/website/web/modules/contrib/commerce/modules/order/src/OrderStorage.php(86): Drupal\commerce_order\OrderStorage->doOrderPreSave()
#7 /var/www/html/website/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(529): Drupal\commerce_order\OrderStorage->invokeHook()
#8 /var/www/html/website/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(753): Drupal\Core\Entity\EntityStorageBase->doPreSave()
#9 /var/www/html/website/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(483): Drupal\Core\Entity\ContentEntityStorageBase->doPreSave()
#10 /var/www/html/website/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(806): Drupal\Core\Entity\EntityStorageBase->save()
#11 /var/www/html/website/web/modules/contrib/commerce/modules/order/src/OrderStorage.php(169): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save()
#12 /var/www/html/website/web/core/lib/Drupal/Core/Entity/EntityBase.php(354): Drupal\commerce_order\OrderStorage->save()
#13 /var/www/html/website/web/modules/contrib/commerce/modules/order/src/OrderStorage.php(156): Drupal\Core\Entity\EntityBase->save()
#14 /var/www/html/website/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(319): Drupal\commerce_order\OrderStorage->postLoad()
#15 /var/www/html/website/web/modules/contrib/commerce/modules/cart/src/CartProvider.php(232): Drupal\Core\Entity\EntityStorageBase->loadMultiple()
#16 /var/www/html/website/web/modules/contrib/commerce/modules/cart/src/CartProvider.php(180): Drupal\commerce_cart\CartProvider->loadCartData()
#17 /var/www/html/website/web/modules/contrib/commerce/modules/cart/src/CartProvider.php(167): Drupal\commerce_cart\CartProvider->getCartIds()
#18 /var/www/html/website/web/modules/contrib/commerce/modules/cart/src/Plugin/Block/CartBlock.php(253): Drupal\commerce_cart\CartProvider->getCarts()
#19 /var/www/html/website/web/core/modules/block/src/BlockViewBuilder.php(47): Drupal\commerce_cart\Plugin\Block\CartBlock->getCacheTags()
#20 /var/www/html/website/web/core/modules/block/src/BlockViewBuilder.php(32): Drupal\block\BlockViewBuilder->viewMultiple()
#21 /var/www/html/website/web/core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php(152): Drupal\block\BlockViewBuilder->view()
#22 /var/www/html/website/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(270): Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build()
#23 /var/www/html/website/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#24 /var/www/html/website/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#25 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#26 /var/www/html/website/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#27 /var/www/html/website/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#28 /var/www/html/website/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#29 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#30 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#31 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#32 /var/www/html/website/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#33 /var/www/html/website/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#34 /var/www/html/website/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#35 /var/www/html/website/web/modules/contrib/advban/src/AdvbanMiddleware.php(57): Drupal\page_cache\StackMiddleware\PageCache->handle()
#36 /var/www/html/website/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\advban\AdvbanMiddleware->handle()
#37 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#38 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#39 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#40 /var/www/html/website/web/modules/contrib/remove_http_headers/src/StackMiddleware/RemoveHttpHeadersMiddleware.php(49): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#41 /var/www/html/website/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle()
#42 /var/www/html/website/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#43 /var/www/html/website/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#44 {main}

I upgraded to the dev version based on maintainer recommendation after beta 3 did not work. I am still experiencing the same issue using the latest dev version. A similar error is produced:
----------------------
An error occurred
The following error occurred while processing your request:

The specified file 'temporary://fileHP6ttq' could not be copied because the destination directory 's3://2024-12/text-to-speech.mp3' is not properly configured. This may be caused by a problem with file or directory permissions.

Of the following exception type:

Drupal\Core\File\Exception\DirectoryNotReadyException

It was recommended to upgrade to the dev version when beta 3 did not work. I was able to successfully upgrade to the dev version, but this issue was not resolved using the dev version.

As of now, each time I try to generate a new tts file, it give me a sample file that I created yesterday and does not provide the new tts creation.

I just upgraded using the dev version, and I did not receive any errors during the update. Composer ran successfully without any reported issues, and there are no issues in the logs yet. I will take some time today to use various features and report back any problems I experience.

One unexpected effect of the update is that the AI explorer is missing some of the options it had before. This may be intentional, or it may be an error that is not appearing in the logs. I have 6 options available now when I had a dozen or more available before. Let me know if this is unintentional and I can look at a backup to provide a list of the missing options.

In addition, I am unable to save tts files in the file system, but this may be related to s3. I opened an issue for this in a different ticket, and it was suggested to upgrade to Beta 3 and it may fix the issue. Upgrading to the dev version did not fix the issue, and I receive the following error when trying to create a tts file while automatically saving it to the file system. I will update the ticket for that issue also.
-------------------------------
An error occurred
The following error occurred while processing your request:

The specified file 'temporary://fileHP6ttq' could not be copied because the destination directory 's3://2024-12/text-to-speech.mp3' is not properly configured. This may be caused by a problem with file or directory permissions.

Of the following exception type:

Drupal\Core\File\Exception\DirectoryNotReadyException
--------------------
My s3 is working for all other functions including saving audio files through the media library.

As a side note, when I attempt to use the AI explorer after updating to the dev release, I get the white screen.

I just tried the dev release. The AI Assistant update was successful but the AI content update was not. The full output from composer is below:
---------------------------------------------------------------
website$ sudo ./vendor/bin/drush updatedb
------------------ ----------- --------------- -------------------------------
Module Update ID Type Description
------------------ ----------- --------------- -------------------------------
ai_assistant_api 10200 hook_update_n 10200 - Implements
hook_update_N().
ai_content 9100 hook_update_n 9100 - Copy the old settings
over to the new module and
disable this one.
ai_assistant_api settings post-update Move settings into new fields
to handle future restructure
on config.
------------------ ----------- --------------- -------------------------------

┌ Do you wish to run the specified pending updates? ───────────┐
│ Yes │
└──────────────────────────────────────────────────────────────┘

> [notice] Update started: ai_assistant_api_update_10200
> [notice] Update completed: ai_assistant_api_update_10200
> [notice] Update started: ai_content_update_9100
> [error] Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator::__construct(): Argument #8 ($fileUrlGenerator) must be of type Drupal\Core\File\FileUrlGenerator, Drupal\cdn\File\FileUrlGenerator given, called in /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php on line 61
> [error] Update failed: ai_content_update_9100
[error] Update aborted by: ai_content_update_9100
[error] Finished performing updates.
[error] TypeError: Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator::__construct(): Argument #8 ($fileUrlGenerator) must be of type Drupal\Core\File\FileUrlGenerator, Drupal\cdn\File\FileUrlGenerator given, called in /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php on line 61 in Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator->__construct() (line 53 of /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php) #0 /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php(61): Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator->__construct()
#1 /var/www/html/website/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator::create()
#2 /var/www/html/website/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#3 /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Routing/AiApiExplorerRouteSubscriber.php(30): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#4 /var/www/html/website/web/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php(37): Drupal\ai_api_explorer\Routing\AiApiExplorerRouteSubscriber->alterRoutes()
#5 [internal function]: Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes()
#6 /var/www/html/website/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#7 /var/www/html/website/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(189): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#8 /var/www/html/website/web/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
#9 /var/www/html/website/web/core/includes/common.inc(485): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
#10 /var/www/html/website/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(96): drupal_flush_all_caches()
#11 [internal function]: Drush\Commands\core\UpdateDBCommands->updatedb()
#12 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#13 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#14 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#15 /var/www/html/website/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
#16 /var/www/html/website/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#17 /var/www/html/website/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#18 /var/www/html/website/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#19 /var/www/html/website/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#20 /var/www/html/website/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#21 /var/www/html/website/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#22 /var/www/html/website/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run()
#23 /var/www/html/website/vendor/bin/drush.php(119): include('...')
#24 {main}.
TypeError: Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator::__construct(): Argument #8 ($fileUrlGenerator) must be of type Drupal\Core\File\FileUrlGenerator, Drupal\cdn\File\FileUrlGenerator given, called in /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php on line 61 in /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php on line 53 #0 /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php(61): Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator->__construct()
#1 /var/www/html/website/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator::create()
#2 /var/www/html/website/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#3 /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Routing/AiApiExplorerRouteSubscriber.php(30): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#4 /var/www/html/website/web/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php(37): Drupal\ai_api_explorer\Routing\AiApiExplorerRouteSubscriber->alterRoutes()
#5 [internal function]: Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes()
#6 /var/www/html/website/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#7 /var/www/html/website/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(189): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#8 /var/www/html/website/web/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
#9 /var/www/html/website/web/core/includes/common.inc(485): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
#10 /var/www/html/website/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(96): drupal_flush_all_caches()
#11 [internal function]: Drush\Commands\core\UpdateDBCommands->updatedb()
#12 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#13 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#14 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#15 /var/www/html/website/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
#16 /var/www/html/website/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#17 /var/www/html/website/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#18 /var/www/html/website/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#19 /var/www/html/website/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#20 /var/www/html/website/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#21 /var/www/html/website/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#22 /var/www/html/website/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run()
#23 /var/www/html/website/vendor/bin/drush.php(119): include('...')
#24 {main}
TypeError: Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator::__construct(): Argument #8 ($fileUrlGenerator) must be of type Drupal\Core\File\FileUrlGenerator, Drupal\cdn\File\FileUrlGenerator given, called in /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php on line 61 in Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator->__construct() (line 53 of /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php).
[warning] Drush command terminated abnormally.
-------------------------------------------------------------------

The site is not broken after updating to the dev release, however I have a new error in the log messages related to this. The message about the commerce license error is not present this time:

-----------------------------------------------------------------
TypeError: Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator::__construct(): Argument #8 ($fileUrlGenerator) must be of type Drupal\Core\File\FileUrlGenerator, Drupal\cdn\File\FileUrlGenerator given, called in /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php on line 61 in Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator->__construct() (line 53 of /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php)
#0 /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Plugin/AiApiExplorer/ImageAndAudioToVideoGenerator.php(61): Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator->__construct()
#1 /var/www/html/website/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\ai_api_explorer\Plugin\AiApiExplorer\ImageAndAudioToVideoGenerator::create()
#2 /var/www/html/website/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#3 /var/www/html/website/web/modules/contrib/ai/modules/ai_api_explorer/src/Routing/AiApiExplorerRouteSubscriber.php(30): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#4 /var/www/html/website/web/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php(37): Drupal\ai_api_explorer\Routing\AiApiExplorerRouteSubscriber->alterRoutes()
#5 [internal function]: Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes()
#6 /var/www/html/website/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#7 /var/www/html/website/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(189): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#8 /var/www/html/website/web/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
#9 /var/www/html/website/web/core/includes/common.inc(485): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
#10 /var/www/html/website/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(96): drupal_flush_all_caches()
#11 [internal function]: Drush\Commands\core\UpdateDBCommands->updatedb()
#12 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#13 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#14 /var/www/html/website/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#15 /var/www/html/website/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process()
#16 /var/www/html/website/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#17 /var/www/html/website/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#18 /var/www/html/website/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#19 /var/www/html/website/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#20 /var/www/html/website/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#21 /var/www/html/website/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#22 /var/www/html/website/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run()
#23 /var/www/html/website/vendor/bin/drush.php(119): include('...')
#24 {main}
.

I just tried to upgrade to beta 3 and it broke my site, so I can't test this at this time. I made a bug report about the upgrade error I received.

I just tried to upgrade to beta 3 and it broke my site, so I can't test this at this time. I made a bug report about the upgrade error I received.

I got this cleared up. This was related to the options in the dark mode settings.

I did not have the cookie option enabled and didn't initially realize the effect of the button.

I also did not realize my OS was set to dark mode, so I thought it was an error when opening up a browser and seeing dark mode unintentionally.

I would recommend some help text on the settings page to describe the features of setting the cookie and Matching the OS theme.

Production build 0.71.5 2024