openai_embeddings_entity_delete() throws DatabaseExceptionWrapper on uninstall of taxonomy

Created on 7 February 2024, 5 months ago
Updated 27 May 2024, 30 days ago

Problem/Motivation

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: 'taxonomy_term.tags': DELETE FROM "openai_embeddings" WHERE ("entity_id" = :db_condition_placeholder_0) AND ("entity_type" = :db_condition_placeholder_1); Array ( [:db_condition_placeholder_0] => taxonomy_term.tags [:db_condition_placeholder_1] => language_content_settings ) in openai_embeddings_entity_delete() (line 60 of web\modules\contrib\openai\modules\openai_embeddings\openai_embeddings.module).
>handleExecutionException(Object(PDOException), Object(Drupal\Core\Database\StatementWrapperIterator), Array, Array)
#1 D:\htdocs\esta-immigrationcenter\web\modules\contrib\openai\modules\openai_embeddings\openai_embeddings.module(60): Drupal\Core\Database\Query\Delete->execute()
#2 [internal function]: openai_embeddings_entity_delete(Object(Drupal\language\Entity\ContentLanguageSettings), 'language_conten...')
#3 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Extension\ModuleHandler.php(409): call_user_func_array(Object(Closure), Array)
#4 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Extension\ModuleHandler.php(388): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object(Closure), 'openai_embeddin...')
#5 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Extension\ModuleHandler.php(416): Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_delete', Object(Closure))
#6 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Config\Entity\ConfigEntityStorage.php(343): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_delete', Array)
#7 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Entity\EntityStorageBase.php(462): Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('delete', Object(Drupal\language\Entity\ContentLanguageSettings))
#8 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Entity\EntityBase.php(360): Drupal\Core\Entity\EntityStorageBase->delete(Array)
#9 D:\htdocs\esta-immigrationcenter\web\core\modules\language\language.module(221): Drupal\Core\Entity\EntityBase->delete()
#10 [internal function]: language_entity_bundle_delete('taxonomy_term', 'tags')
#11 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Extension\ModuleHandler.php(409): call_user_func_array(Object(Closure), Array)
#12 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Extension\ModuleHandler.php(388): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object(Closure), 'language')
#13 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Extension\ModuleHandler.php(416): Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_bundle_d...', Object(Closure))
#14 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Entity\EntityBundleListener.php(85): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_bundle_d...', Array)
#15 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Extension\ModuleInstaller.php(464): Drupal\Core\Entity\EntityBundleListener->onBundleDelete('tags', 'taxonomy_term')
#16 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\ProxyClass\Extension\ModuleInstaller.php(91): Drupal\Core\Extension\ModuleInstaller->uninstall(Array, true)
#17 D:\htdocs\esta-immigrationcenter\web\core\modules\system\src\Form\ModulesUninstallConfirmForm.php(174): Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array)
#18 [internal function]: Drupal\system\Form\ModulesUninstallConfirmForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#19 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Form\FormSubmitter.php(129): call_user_func_array(Array, Array)
#20 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Form\FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#21 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Form\FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#22 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Form\FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm('system_modules_...', Array, Object(Drupal\Core\Form\FormState))
#23 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Controller\FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\system\Form\ModulesUninstallConfirmForm), Object(Drupal\Core\Form\FormState))
#24 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#25 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#26 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\Render\Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#27 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#28 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#29 D:\htdocs\esta-immigrationcenter\vendor\symfony\http-kernel\HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#30 D:\htdocs\esta-immigrationcenter\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#31 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\StackMiddleware\Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\StackMiddleware\ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 D:\htdocs\esta-immigrationcenter\web\core\modules\big_pipe\src\StackMiddleware\ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 D:\htdocs\esta-immigrationcenter\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#36 D:\htdocs\esta-immigrationcenter\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#37 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#38 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#39 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\StackMiddleware\AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#40 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\StackMiddleware\StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#41 D:\htdocs\esta-immigrationcenter\web\core\lib\Drupal\Core\DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#42 D:\htdocs\esta-immigrationcenter\web\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#43 {main}

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

OpenAI Embeddings

Created by

🇳🇱Netherlands Spokje

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024