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 believe this can be closed. Thanks!
I am having the same issue when trying to add a product variation of an existing product.
jbuttler → created an issue.
jbuttler → created an issue.
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
jbuttler → created an issue.
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
jbuttler → created an issue.
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
Any idea if this will be completed?
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.
jbuttler → created an issue.
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}
jbuttler → created an issue.
jbuttler → created an issue.
jbuttler → created an issue.
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!
Yes this is now working properly for me!
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.
The patch fails to apply on my system.
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"
marcus_johansson → credited jbuttler → .
marcus_johansson → credited jbuttler → .
jbuttler → created an issue.
jbuttler → created an issue.
jbuttler → created an issue.
jbuttler → created an issue.
Thanks for the help! I will apply and test this when I can, then report back results.
jbuttler → created an issue.
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.
Perfect, thanks for the help!
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.
jbuttler → created an issue.
jbuttler → created an issue.
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.
jbuttler → created an issue.
jbuttler → created an issue.
I would recommend making this a major issue. It makes the license module nearly unusable in my case. It must be a bug. I'm sure its not intended to let people keep a license when payment fails, otherwise why have licenses attached to subscriptions at all.
I am also experiencing an issue where dark mode is enabled by default on first page load for some users, but the icon indicates that dark mode is not enabled.
Status of dark mode is also not remembered in those cases.
I am experiencing the same issue. It works great once enabled, but when I go to a different page it resets back to light mode. I am not sure why this is happening at all. I just installed the module and followed the instructions exactly. Any help is apprecited!
I have been looking into this much further, and I am no longer convinced that its a module error.
It appears that if I submit similar prompts to a stable diffusion model within a few minutes of each other, it will return nearly identical images with slight variations.
I have been able to verify this by
1. Submit a prompt to generate a specific person. Ex:Create an image of XX person in a suit and tie.
2. Image returns successfully
3. Submit the same prompt again, hoping for a different output
4. Image is returned that appears to be identical to the first
5. Submit an identical prompt, but change the name of the person only. em>Ex:Create an image of ZZ person in a suit and tie.
6. Almost the exact same image is returned down to specific details, but the face is replaced with ZZ's face.
So, from what I can tell this is an issue with the prompt or model rather than the API connection.
I have been using this heavily for the last few days and have found no other issues to report.
I confirmed that there are sometimes issues with Fireworks AI communication and I have a few details that may help.
When creating images with Fireworks AI images are sometimes duplicated. I have tried running the cron and clearing the cache multple times with no alteration in the behavior. There are no messages in the logs related to this.
- When using the automator, if an image had already been generated for the content then removed, the replaced image is actually the first image. This seems to be cached, as I can sometimes change the image later and it creates a new image successfully. I think it is getting the new image back from FireworksAI, but it may be having an issue saving the new image. This is only tied to the node that is created. If i create a new node, I get a new image successfully every time.
- When using the AI explorer, each model within the Fireworks AI connection will create a new image, but behaves the same way as the automator. Whenever I try to create the second image with the same model, its a duplicate of the first. I can switch models and get an original the first time, but then a duplicate afterwards. After a while it allows me new images.
I installed the dev module and have been using it successfully for the last day in the AI explorer as well as the automator. Images are generated successfully now, thanks!
One issue I discovered while doing this is that some images are provided more than once as the result in the AI explorer. I have not had this happen in the automator yet. Should I create a separate issue for that and close this one?
No problem! The category that is chosen always is correct based on the prompt input, and the category is always generated and applied to the reference field. If a term already exists, it chooses the existing term.
----------------------------------------------
Automator input mode: Base Mode
Automator Base Field: Prompt Field
Automator Prompt:
"
Based on the context text choose up to 1 category that fits the text. If no categories exist that fit the text, create 1 new category that applies to the context. Do not pass along any errors received. If there are already categories, do not try to assign any more. Never assign more than one category.
-----------------------
Context:
{{ raw_context }}
"
Thanks for your help in the repair and hard work on the module!
I logged a different error while trying to create an image with Fireworks AI using an automator upon node creation:
------------------------
The website encountered an unexpected error. Try again later.
Error: Call to undefined method GuzzleHttp\Psr7\Stream::getAsBinary() in Drupal\ai_automators\PluginBaseClasses\TextToMediaImage->generate() (line 170 of modules/contrib/ai/modules/ai_automators/src/PluginBaseClasses/TextToMediaImage.php).
I confirmed that Fireworks AI is receiving and attempting to fulfill the requests I submit from the AI explorer. My failed requests are being applied against the billing. However the AI logs indicate that no response is received from Fireworks AI. I hope this helps. These AI modues are really amazing and the hard work is much appreciated.
I am really looking forward to getting this working because the OpenAI image generation cost adds up quicker than I would like but its the only image model I can get working right now.
I am also experiencing the exact same issue and error. Text and chat functions work, but I am completely unable to generate any images. Did you ever find a solution to this?
jbuttler → created an issue.
Thanks for your help on this, its much appreciated! This solution works for me!
Additional informat from log messages:
Type ai_automator
Date Wednesday, November 20, 2024 - 8:55 am
Message A general error happened why trying to interpolate, message Error invoking model response: cURL error 28: Operation timed out after 30002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.openai.com/v1/images/generations
------------------------
Type ai
Location https://www.example.com/admin/config/ai/explorers/ai-image-generation?_w...
Referrer https://www.example.com/admin/config/ai/explorers/ai-image-generation
Message Error invoking model response: cURL error 28: Operation timed out after 30002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.openai.com/v1/images/generations
I also verified in my openai account that the images are being created, just not being rendered or saved by the web server.
jbuttler → created an issue.
Unfortunately I still am getting errors with licensing, renewals, and cancellations. Now, the subscriptions are creating multiple duplicate licenses for users, and not cancelling the old ones. So I have users who should have their subscriptions and licenses cancelled completely, but instead have multiple active licenses which were reproduced when billing failed.
I also noticed several buggy issues with trials. When a trial ends, the subscription seems to leave the original license for the trial active with unlimited duration, then it creates another license controlled by the subscription. So there are many orphaned licenses in the system related to subscription billing failures. This seems to be a major issue and would allow users access to licensed content after a subscription should be ended.
Even without trial-based licenses, occasionally, a license is cancelled when the subscription is cancelled, but this seems to not be working as it should. I went through the setup several times to make sure everything is correct and I can't find any issue with my configuration.
I was testing by using a daily billing schedule to control the recurring billing to speed up the cycle. For some products, I used trials. For other products, I purchased several different subscription products under multiple test accounts and deleted the payment method, causing a billing failure the next day. For others I entered an example payment method that was due to expire. In all cases, the subscription was cancelled correctly, but the associated licenses were duplicated many times and the user retained access to licensed content.
jbuttler → created an issue.
Update: I discovered why this was happening.
On my site, this was due to the configuration of the billing schedules. In the dunning options, I allowed it to re-attempt billing for several attempts over a few days if the initial payment failed. This kept the subscription active while the billing schedule was re-attempting the charges based on the dunning settings. I reduced the settings to the minimum, and the subscription cancelled successfully.
I would like to suggest a new feature to this module to handle this type of situation. There could be a boolean added as an option to the billing schedules so that if the payment fails, the license will go to suspended status. If the payment ends up failing after the dunning schedule cycle completes, then the subscription would be completely cancelled. But, if the payment ends up being successful within the dunning schedule, the license could be re-activated.
It would be great to have this feature to suspend the license while the order is waiting for payment. Thanks for considering!
Thanks to the developers for making a great module!
I am also experiencing this issue. I am also using stripe.
I am experiencing the same issue while testing stripe with my website. When I remove the credit card from the user account, payment fails, but the license remains active. The order shows payment failed, but the license states that it was renewed successfully.
The license should not be active if subscription payment fails, and go into another non-active state instead.
I am also experiencing this same issue. In my case, I believe this is experiencing some kind of conflict with the commerce license module. After enabling both, I receive this error when I try to update existing user accounts, create new user accounts, or add items to the cart. My error in the white screen of death:
The website encountered an unexpected error. Try again later.
TypeError: administerusersbyrole_user_assign_role(): Argument #2 ($account) must be of type Drupal\Core\Session\AccountInterface, null given, called in /var/www/html/WEBSITE/web/modules/contrib/administerusersbyrole/src/Plugin/Action/ChangeUserRoleTrait.php on line 19 in administerusersbyrole_user_assign_role() (line 65 of modules/contrib/administerusersbyrole/administerusersbyrole.module).
I can provide the backtrace from the log if it will be helpful in resolving this issue.
jbuttler → created an issue.