# Website encountered an unexpected error. Try again later

**URL:** <https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323>\
**Category:** Using farmOS\
**Created:** [July 4, 2025, 9:10am UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323 "2025-07-04T09:10:37Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abraham](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/abraham/32/1894_2.png) [@Abraham](https://farmos.discourse.group/u/Abraham)\
**Post date:** [July 4, 2025, 9:10am UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/1 "2025-07-04T09:10:37Z")

</div>

I keep getting this error: The website encountered an unexpected error. Try again later. as I navigate the majority of the features eg Records \> asserts \> any assert will give me that error

How Can I resolve this

---

<div class="post-metadata">

**Author:** ![Symbioquine](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/symbioquine/32/284_2.png) [@Symbioquine](https://farmos.discourse.group/u/Symbioquine)\
**Post date:** [July 4, 2025, 1:21pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/2 "2025-07-04T13:21:00Z")

</div>

Should we assume you are self hosting? What does your “stack” look like? (e.g. docker, tarball on shared hosting, etc) Do you have access to the `drush` command?

Is this a fresh installation - or have you maybe done any updates recently?

---

<div class="post-metadata">

**Author:** ![Abraham](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/abraham/32/1894_2.png) [@Abraham](https://farmos.discourse.group/u/Abraham)\
**Post date:** [July 12, 2025, 7:29am UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/3 "2025-07-12T07:29:31Z")

</div>

Sorry for the late response, Im using shared hosting cPanel and its a fresh installation done 12 days ago.

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [July 13, 2025, 2:27pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/4 "2025-07-13T14:27:35Z")

</div>

Welcome to the community forum @Abraham!

> The website encountered an unexpected error. Try again later.

Are you able to get to Administration \> Reports \> Recent log messages? That may show you more details about the errors. If that doesn’t work, the Apache server logs should include the details. Please copy and paste the error message(s) here and I’ll be happy to provide suggestions.

---

<div class="post-metadata">

**Author:** ![Abraham](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/abraham/32/1894_2.png) [@Abraham](https://farmos.discourse.group/u/Abraham)\
**Post date:** [July 13, 2025, 3:04pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/5 "2025-07-13T15:04:44Z")

</div>

![Screenshot 2025-07-13 170348](https://global.discourse-cdn.com/free1/uploads/farm_os/original/2X/1/15f02b034581f0de275dbf9eb9f65acafed3f8b8.png)  
Please find attached Recent log error messages

---

<div class="post-metadata">

**Author:** ![Symbioquine](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/symbioquine/32/284_2.png) [@Symbioquine](https://farmos.discourse.group/u/Symbioquine)\
**Post date:** [July 13, 2025, 3:10pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/6 "2025-07-13T15:10:59Z")

</div>

> [@Abraham](#):
>
> Please find attached Recent log error messages

You might already be working on this, but please click on one of those error log messages and provide a screenshot of it too. 😃

---

<div class="post-metadata">

**Author:** ![Abraham](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/abraham/32/1894_2.png) [@Abraham](https://farmos.discourse.group/u/Abraham)\
**Post date:** [July 13, 2025, 3:44pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/7 "2025-07-13T15:44:01Z")

</div>

#0 [internal function]: Drupal\asset\Entity\Asset::getWorkflowId(Object(Drupal\asset\Entity\Asset))  
#1 /home/jffcozw/public\_html/farm/web/modules/state\_machine/src/Plugin/Field/FieldType/StateItem.php(257): call\_user\_func(Array, Object(Drupal\asset\Entity\Asset))  
#2 /home/jffcozw/public\_html/farm/web/modules/state\_machine/src/Plugin/Field/FieldType/StateItem.php(132): Drupal\state\_machine\Plugin\Field\FieldType\StateItem-\>getWorkflow()  
#3 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Field/FieldItemList.php(178): Drupal\state\_machine\Plugin\Field\FieldType\StateItem-\>applyDefaultValue(false)  
#4 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(271): Drupal\Core\Field\FieldItemList-\>applyDefaultValue()  
#5 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(129): Drupal\Core\Entity\ContentEntityStorageBase-\>initFieldValues(Object(Drupal\asset\Entity\Asset), Array)  
#6 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(94): Drupal\Core\Entity\ContentEntityStorageBase-\>doCreate(Array)  
#7 /home/jffcozw/public\_html/farm/web/modules/state\_machine/src/Plugin/views/filter/State.php(143): Drupal\Core\Entity\ContentEntityStorageBase-\>create(Array)  
#8 /home/jffcozw/public\_html/farm/web/modules/state\_machine/src/Plugin/views/filter/State.php(77): Drupal\state\_machine\Plugin\views\filter\State-\>getWorkflows(Object(Drupal\Core\Entity\ContentEntityType), ‘status’)  
#9 /home/jffcozw/public\_html/farm/web/core/modules/views/src/Plugin/views/filter/InOperator.php(183): Drupal\state\_machine\Plugin\views\filter\State-\>getValueOptions()  
#10 /home/jffcozw/public\_html/farm/web/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php(1074): Drupal\views\Plugin\views\filter\InOperator-\>valueForm(Array, Object(Drupal\Core\Form\FormState))  
#11 /home/jffcozw/public\_html/farm/web/core/modules/views/src/Form/ViewsExposedForm.php(104): Drupal\views\Plugin\views\filter\FilterPluginBase-\>buildExposedForm(Array, Object(Drupal\Core\Form\FormState))  
#12 [internal function]: Drupal\views\Form\ViewsExposedForm-\>buildForm(Array, Object(Drupal\Core\Form\FormState))  
#13 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call\_user\_func\_array(Array, Array)  
#14 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Form/FormBuilder.php(284): Drupal\Core\Form\FormBuilder-\>retrieveForm(‘views\_exposed\_f…’, Object(Drupal\Core\Form\FormState))  
#15 /home/jffcozw/public\_html/farm/web/core/modules/views/src/Plugin/views/exposed\_form/ExposedFormPluginBase.php(134): Drupal\Core\Form\FormBuilder-\>buildForm(‘\Drupal\views\F…’, Object(Drupal\Core\Form\FormState))  
#16 /home/jffcozw/public\_html/farm/web/core/modules/views/src/ViewExecutable.php(1298): Drupal\views\Plugin\views\exposed\_form\ExposedFormPluginBase-\>renderExposedForm()  
#17 /home/jffcozw/public\_html/farm/web/core/modules/views/src/Plugin/views/display/PathPluginBase.php(393): Drupal\views\ViewExecutable-\>build()  
#18 /home/jffcozw/public\_html/farm/web/core/modules/rest/src/Plugin/views/display/RestExport.php(424): Drupal\views\Plugin\views\display\PathPluginBase-\>execute()  
#19 /home/jffcozw/public\_html/farm/web/core/modules/views/src/ViewExecutable.php(1690): Drupal\rest\Plugin\views\display\RestExport-\>execute()  
#20 /home/jffcozw/public\_html/farm/web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable-\>executeDisplay(‘full’, Array)  
#21 [internal function]: Drupal\views\Element\View::preRenderViewElement(Array)  
#22 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call\_user\_func\_array(Array, Array)  
#23 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Render/Renderer.php(875): Drupal\Core\Render\Renderer-\>doTrustedCallback(Array, Array, ‘Render #pre\_ren…’, ‘exception’, ‘Drupal\Core\Ren…’)  
#24 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Render/Renderer.php(432): Drupal\Core\Render\Renderer-\>doCallback(‘#pre\_render’, Array, Array)  
#25 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer-\>doRender(Array, true)  
#26 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Render/Renderer.php(153): Drupal\Core\Render\Renderer-\>render(Array, true)  
#27 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\Renderer-\>Drupal\Core\Render{closure}()  
#28 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Render/Renderer.php(152): Drupal\Core\Render\Renderer-\>executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))  
#29 /home/jffcozw/public\_html/farm/web/core/modules/rest/src/Plugin/views/display/RestExport.php(409): Drupal\Core\Render\Renderer-\>renderRoot(Array)  
#30 /home/jffcozw/public\_html/farm/web/core/modules/views/src/Routing/ViewPageController.php(56): Drupal\rest\Plugin\views\display\RestExport::buildResponse(‘farm\_asset\_geoj…’, ‘full’, Array)  
#31 [internal function]: Drupal\views\Routing\ViewPageController-\>handle(‘farm\_asset\_geoj…’, ‘full’, Object(Drupal\Core\Routing\RouteMatch))  
#32 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call\_user\_func\_array(Array, Array)  
#33 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-\>Drupal\Core\EventSubscriber{closure}()  
#34 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer-\>executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))  
#35 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-\>wrapControllerExecutionInRenderContext(Array, Array)  
#36 /home/jffcozw/public\_html/farm/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber-\>Drupal\Core\EventSubscriber{closure}()  
#37 /home/jffcozw/public\_html/farm/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel-\>handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)  
#38 /home/jffcozw/public\_html/farm/web/modules/simple\_oauth/src/HttpMiddleware/BasicAuthSwap.php(54): Symfony\Component\HttpKernel\HttpKernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#39 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Drupal\simple\_oauth\HttpMiddleware\BasicAuthSwap-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#40 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#41 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#42 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\ContentLength-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#43 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#44 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#45 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#46 /home/jffcozw/public\_html/farm/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)  
#47 /home/jffcozw/public\_html/farm/web/index.php(19): Drupal\Core\DrupalKernel-\>handle(Object(Symfony\Component\HttpFoundation\Request))  
#48 {main}

---

<div class="post-metadata">

**Author:** ![Abraham](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/abraham/32/1894_2.png) [@Abraham](https://farmos.discourse.group/u/Abraham)\
**Post date:** [July 13, 2025, 3:45pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/8 "2025-07-13T15:45:27Z")

</div>

_Error_ : Call to a member function getWorkflowId() on null in _Drupal\asset\Entity\Asset::getWorkflowId()_ (line _283_)

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [July 13, 2025, 4:33pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/9 "2025-07-13T16:33:11Z")

</div>

That error is somewhat mysterious. It’s been reported before but we haven’t been able to figure out exactly what causes it. It seems that sometimes it is a result of something that broke during installation.

If this is a fresh instance without any real data then I would suggest trying to reinstall from scratch. Delete the database and the farmOS codebase and follow the installation instructions again from the beginning, following the official guide.

> **[Installing farmOS](https://farmos.org/hosting/install/)**
>
> farmOS is a free and open source web-based application for farm management, planning, and record keeping.

Hopefully that resolves it for you.

---

<div class="post-metadata">

**Author:** ![Abraham](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/abraham/32/1894_2.png) [@Abraham](https://farmos.discourse.group/u/Abraham)\
**Post date:** [July 13, 2025, 4:54pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/10 "2025-07-13T16:54:19Z")

</div>

Thank, I appreciate your comms

---

<div class="post-metadata">

**Author:** ![BOTLFarm](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/botlfarm/32/74_2.png) [@BOTLFarm](https://farmos.discourse.group/u/BOTLFarm)\
**Post date:** [July 14, 2025, 12:11am UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/11 "2025-07-14T00:11:04Z")

</div>

> [@Abraham](#):
>
> The website encountered an unexpected error

When I was self hosting on a shared serve with tarball installation I sometimes got this error. I always just re-downloaded and re-extracted the tarball and followed the update procedure (replacing all the files except site folder and running update.php) and this fixed it.

A note to always extract the tarball on the server and not on your local machine and upload the extracted files. Me not knowing the technical reason always found local extraction and uploading to be problematic but extracting on the serve usually worked. Sometimes I feel missing files during extraction caused this error.

---

<div class="post-metadata">

**Author:** ![Guillermo](https://avatars.discourse-cdn.com/v4/letter/g/eb8c5e/32.png) [@Guillermo](https://farmos.discourse.group/u/Guillermo)\
**Post date:** [February 21, 2026, 6:50pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/12 "2026-02-21T18:50:37Z")

</div>

Hi Mike @mstenta

I have a similar error.

Hosting: Farmier  
Browser: Brave  
When: trying to import KML via KML importer ( Setup \> Import \> KML Import \>  
Console error message:  
{  
“message”: “\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /import/kml?ajax\_form=1\nStatusText: 500 Service unavailable (with message)\nResponseText: The website encountered an unexpected error. Try again later.”,  
“name”: “AjaxError”  
}

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [February 21, 2026, 7:19pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/13 "2026-02-21T19:19:40Z")

</div>

@Guillermo It’s probably an issue with your KML file. This topic might provide some clues for debugging:

> [@Error importing KML](https://farmos.discourse.group/t/error-importing-kml/1889):
>
> Hi I’m trying to create activity log based on recent activity on AgOpenGPS. I parse the filename of the most recent field worked on. Also, I want to import the KML-file from AgOpenGPS with boundary, flags, ab-lines etc. When the field is done, and closed, the KML is generated. But I’m confused. Some KML files I can import and some not. All are created in AgOpenGPS, but could be different versions of the app. Even a simple field with just a bondary is not working. I can open them in Google …

---

<div class="post-metadata">

**Author:** ![Guillermo](https://avatars.discourse-cdn.com/v4/letter/g/eb8c5e/32.png) [@Guillermo](https://farmos.discourse.group/u/Guillermo)\
**Post date:** [February 22, 2026, 8:28am UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/14 "2026-02-22T08:28:27Z")

</div>

Thanks Mike !@mstenta

I think the error message “_Try again later_” mislead me: made me think the problem was on the server side.

I will try @pat’s way:

> Adding the first coordinate to the end of the polygon closes it, and I can import it without errors. closing polygons with initial points

---

<div class="post-metadata">

**Author:** ![altix](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@altix](https://farmos.discourse.group/u/altix)\
**Post date:** [February 25, 2026, 8:59pm UTC](https://farmos.discourse.group/t/website-encountered-an-unexpected-error-try-again-later/2323/15 "2026-02-25T20:59:52Z")

</div>

> [@Abraham](#):
>
> I keep getting this error: The website encountered an unexpected error. Try again later. as I navigate the majority of the features eg Records \> asserts \> any assert will give me that error

```auto

```

You need to delete the files on your server, keeping the /sites folder, and update to the latest version. This will solve your 500 error problem.
