Weet iemand wat deze MiniRacer::RuntimeError (TypeError: moment.tz is geen functie) fout is?

I’ve been getting this error frequently now and it’s beginning to become a large annoyance. Running ./launcher restart app temporarily resolves the issue, but after a bit it will return.

I get this error when I edit posts especially, I’ve had a history in the past where if a Date/Time stamp is inserted such as this → 2024-11-11T05:00:00Z, then it would result in the error.

Can someone please examine this error and figure out where the source is, or if anyone has encountered this before know a better workaround? Thanks.

MiniRacer::RuntimeError (TypeError: moment.tz is not a function) lib/pretty_text.rb:239:in `block in markdown' lib/pretty_text.rb:686:in `block in protect' lib/pretty_text.rb:686:in `synchronize' lib/
mini_racer (0.14.1) lib/mini_racer.rb:237:in `eval_unsafe'
mini_racer (0.14.1) lib/mini_racer.rb:237:in `block (2 levels) in eval'
mini_racer (0.14.1) lib/mini_racer.rb:378:in `timeout'
mini_racer (0.14.1) lib/mini_racer.rb:236:in `block in eval'
mini_racer (0.14.1) lib/mini_racer.rb:234:in `synchronize'
mini_racer (0.14.1) lib/mini_racer.rb:234:in `eval'
lib/pretty_text.rb:239:in `block in markdown'
lib/pretty_text.rb:686:in `block in protect'
lib/pretty_text.rb:686:in `synchronize'
lib/pretty_text.rb:686:in `protect'
lib/pretty_text.rb:176:in `markdown'
lib/pretty_text.rb:302:in `cook'
plugins/automation/lib/discourse_automation/scripts/append_last_checked_by.rb:31:in `block (2 levels) in <main>'
plugins/automation/app/models/discourse_automation/automation.rb:146:in `trigger!'
plugins/automation/lib/discourse_automation/event_handlers.rb:296:in `block in handle_after_post_cook'
activerecord (7.1.5) lib/active_record/relation/batches.rb:82:in `each'
activerecord (7.1.5) lib/active_record/relation/batches.rb:82:in `block in find_each'
activerecord (7.1.5) lib/active_record/relation/batches.rb:158:in `block in find_in_batches'
activerecord (7.1.5) lib/active_record/relation/batches.rb:396:in `block in batch_on_unloaded_relation'
<internal:kernel>:187:in `loop'
activerecord (7.1.5) lib/active_record/relation/batches.rb:372:in `batch_on_unloaded_relation'
activerecord (7.1.5) lib/active_record/relation/batches.rb:269:in `in_batches'
activerecord (7.1.5) lib/active_record/relation/batches.rb:157:in `find_in_batches'
activerecord (7.1.5) lib/active_record/relation/batches.rb:81:in `find_each'
plugins/automation/lib/discourse_automation/event_handlers.rb:271:in `handle_after_post_cook'
plugins/automation/plugin.rb:213:in `block (2 levels) in activate!'
lib/plugin/filter_manager.rb:17:in `block in apply'
lib/plugin/filter_manager.rb:17:in `each'
lib/plugin/filter_manager.rb:17:in `apply'
lib/plugin/filter.rb:15:in `apply'
app/models/post.rb:350:in `cook'
app/models/post.rb:871:in `block in <class:Post>'
activesupport (7.1.5) lib/active_support/callbacks.rb:448:in `instance_exec'
activesupport (7.1.5) lib/active_support/callbacks.rb:448:in `block in make_lambda'
activesupport (7.1.5) lib/active_support/callbacks.rb:202:in `block (2 levels) in halting'
activesupport (7.1.5) lib/active_support/callbacks.rb:707:in `block (2 levels) in default_terminator'
activesupport (7.1.5) lib/active_support/callbacks.rb:706:in `catch'
activesupport (7.1.5) lib/active_support/callbacks.rb:706:in `block in default_terminator'
activesupport (7.1.5) lib/active_support/callbacks.rb:203:in `block in halting'
activesupport (7.1.5) lib/active_support/callbacks.rb:598:in `block in invoke_before'
activesupport (7.1.5) lib/active_support/callbacks.rb:598:in `each'
activesupport (7.1.5) lib/active_support/callbacks.rb:598:in `invoke_before'
activesupport (7.1.5) lib/active_support/callbacks.rb:119:in `block in run_callbacks'
activesupport (7.1.5) lib/active_support/callbacks.rb:141:in `run_callbacks'
activesupport (7.1.5) lib/active_support/callbacks.rb:952:in `_run_save_callbacks'
activerecord (7.1.5) lib/active_record/callbacks.rb:441:in `create_or_update'
activerecord (7.1.5) lib/active_record/timestamp.rb:127:in `create_or_update'
activerecord (7.1.5) lib/active_record/persistence.rb:718:in `save'
activerecord (7.1.5) lib/active_record/validations.rb:49:in `save'
activerecord (7.1.5) lib/active_record/transactions.rb:309:in `block in save'
activerecord (7.1.5) lib/active_record/transactions.rb:365:in `block in with_transaction_returning_status'
activerecord (7.1.5) lib/active_record/connection_adapters/abstract/database_statements.rb:342:in `transaction'
activerecord (7.1.5) lib/active_record/transactions.rb:361:in `with_transaction_returning_status'
activerecord (7.1.5) lib/active_record/transactions.rb:309:in `save'
activerecord (7.1.5) lib/active_record/suppressor.rb:52:in `save'
lib/post_revisor.rb:499:in `update_post'
lib/post_revisor.rb:460:in `revise'
lib/post_revisor.rb:454:in `revise_and_create_new_version'
lib/post_revisor.rb:357:in `revise_post'
lib/post_revisor.rb:279:in `block in revise!'
activerecord (7.1.5) lib/active_record/connection_adapters/abstract/transaction.rb:535:in `block in within_new_transaction'
activesupport (7.1.5) lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
activerecord (7.1.5) lib/active_record/connection_adapters/abstract/transaction.rb:532:in `within_new_transaction'
activerecord (7.1.5) lib/active_record/connection_adapters/abstract/database_statements.rb:344:in `transaction'
activerecord (7.1.5) lib/active_record/transactions.rb:212:in `transaction'
lib/post_revisor.rb:278:in `revise!'
app/controllers/posts_controller.rb:273:in `update'
actionpack (7.1.5) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (7.1.5) lib/abstract_controller/base.rb:224:in `process_action'
actionpack (7.1.5) lib/action_controller/metal/rendering.rb:165:in `process_action'
actionpack (7.1.5) lib/abstract_controller/callbacks.rb:259:in `block in process_action'
activesupport (7.1.5) lib/active_support/callbacks.rb:121:in `block in run_callbacks'
app/controllers/application_controller.rb:424:in `block in with_resolved_locale'
i18n (1.14.6) lib/i18n.rb:353:in `with_locale'
app/controllers/application_controller.rb:424:in `with_resolved_locale'
activesupport (7.1.5) lib/active_support/callbacks.rb:130:in `block in run_callbacks'
activesupport (7.1.5) lib/active_support/callbacks.rb:141:in `run_callbacks'
actionpack (7.1.5) lib/abstract_controller/callbacks.rb:258:in `process_action'
actionpack (7.1.5) lib/action_controller/metal/rescue.rb:25:in `process_action'
actionpack (7.1.5) lib/action_controller/metal/instrumentation.rb:74:in `block in process_action'
activesupport (7.1.5) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.1.5) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport (7.1.5) lib/active_support/notifications.rb:206:in `instrument'
actionpack (7.1.5) lib/action_controller/metal/instrumentation.rb:73:in `process_action'
actionpack (7.1.5) lib/action_controller/metal/params_wrapper.rb:261:in `process_action'
activerecord (7.1.5) lib/active_record/railties/controller_runtime.rb:32:in `process_action'
actionpack (7.1.5) lib/abstract_controller/base.rb:160:in `process'
actionview (7.1.5) lib/action_view/rendering.rb:40:in `process'
rack-mini-profiler (3.3.1) lib/mini_profiler/profiling_methods.rb:115:in `block in profile_method' 
actionpack (7.1.5) lib/action_controller/metal.rb:227:in `dispatch'
actionpack (7.1.5) lib/action_controller/metal.rb:309:in `dispatch'
actionpack (7.1.5) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
actionpack (7.1.5) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:51:in `block in serve'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:131:in `block in find_routes'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:124:in `each'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:124:in `find_routes'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (7.1.5) lib/action_dispatch/routing/route_set.rb:882:in `call'
lib/middleware/omniauth_bypass_middleware.rb:64:in `call'
rack (2.2.10) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.10) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.10) lib/rack/head.rb:12:in `call'
actionpack (7.1.5) lib/action_dispatch/http/permissions_policy.rb:36:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:399:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
rack (2.2.10) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.10) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (7.1.5) lib/action_dispatch/middleware/c

Ik krijg een Internal Server Error voor de Time/Date Insert. Dit is eerder gebeurd, ik weet niet zeker wat ik heb gedaan om het op te lossen, waarschijnlijk gewoon een server herstart - maar ik dacht dat het misschien een goed idee was om er een onderwerp over te maken, aangezien mijn vorige probleem werd opgelost door erover te praten. Foutdetails uit logs:

Message

MiniRacer::RuntimeError (TypeError: moment.tz is not a function)
lib/pretty_text.rb:237:in `eval'
lib/pretty_text.rb:237:in `block in markdown'
lib/pretty_text.rb:677:in `block in protect'
lib/pretty_text.rb:677:in `synchronize'
lib/pretty_text.rb:677:in `protect'
lib/pretty_text.rb:174:in `markdown'
lib/pretty_text.rb:300:in `cook'
app/models/post_analyzer.rb:30:in `cook'
app/models/post_analyzer.rb:149:in `cooked_stripped'
app/models/post_analyzer.rb:126:in `raw_links'
app/models/post_analyzer.rb:143:in `link_count'
app/models/post.rb:312:in `public_send'
app/models/post.rb:312:in `block (2 levels) in <class:Post>'
lib/validators/post_validator.rb:141:in `max_links_validator'
lib/validators/post_validator.rb:20:in `validate'
lib/post_creator.rb:179:in `valid?'
lib/post_creator.rb:187:in `create'
lib/new_post_manager.rb:321:in `perform_create_post'
lib/new_post_manager.rb:255:in `perform'
app/controllers/posts_controller.rb:223:in `create'
app/controllers/application_controller.rb:428:in `block in with_resolved_locale'
app/controllers/application_controller.rb:428:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:35:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:415:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
lib/middleware/default_headers.rb:13:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/processing_request.rb:12:in `call'
lib/middleware/request_tracker.rb:410:in `call'

Backtrace

lib/pretty_text.rb:237:in `eval'
lib/pretty_text.rb:237:in `block in markdown'
lib/pretty_text.rb:677:in `block in protect'
lib/pretty_text.rb:677:in `synchronize'
lib/pretty_text.rb:677:in `protect'
lib/pretty_text.rb:174:in `markdown'
lib/pretty_text.rb:300:in `cook'
app/models/post_analyzer.rb:30:in `cook'
app/models/post_analyzer.rb:149:in `cooked_stripped'
app/models/post_analyzer.rb:126:in `raw_links'
app/models/post_analyzer.rb:143:in `link_count'
app/models/post.rb:312:in `public_send'
app/models/post.rb:312:in `block (2 levels) in <class:Post>'
lib/validators/post_validator.rb:141:in `max_links_validator'
lib/validators/post_validator.rb:20:in `validate'
lib/post_creator.rb:179:in `valid?'
lib/post_creator.rb:187:in `create'
lib/new_post_manager.rb:321:in `perform_create_post'
lib/new_post_manager.rb:255:in `perform'
app/controllers/posts_controller.rb:223:in `create'
actionpack (8.0.2) lib/action_controller/metal/basic_implicit_render.rb:8:in `send_action'
actionpack (8.0.2) lib/abstract_controller/base.rb:226:in `process_action'
actionpack (8.0.2) lib/action_controller/metal/rendering.rb:193:in `process_action'
actionpack (8.0.2) lib/abstract_controller/callbacks.rb:261:in `block in process_action'
activesupport (8.0.2) lib/active_support/callbacks.rb:120:in `block in run_callbacks'
app/controllers/application_controller.rb:428:in `block in with_resolved_locale'
app/controllers/application_controller.rb:428:in `with_resolved_locale'
activesupport (8.0.2) lib/active_support/callbacks.rb:129:in `block in run_callbacks'
activesupport (8.0.2) lib/active_support/callbacks.rb:140:in `run_callbacks'
actionpack (8.0.2) lib/abstract_controller/callbacks.rb:260:in `process_action'
actionpack (8.0.2) lib/action_controller/metal/rescue.rb:27:in `process_action'
actionpack (8.0.2) lib/action_controller/metal/instrumentation.rb:76:in `block in process_action'
activesupport (8.0.2) lib/active_support/notifications.rb:210:in `block in instrument'
activesupport (8.0.2) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport (8.0.2) lib/active_support/notifications.rb:210:in `instrument'
actionpack (8.0.2) lib/action_controller/metal/instrumentation.rb:75:in `process_action'
actionpack (8.0.2) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
activerecord (8.0.2) lib/active_record/railties/controller_runtime.rb:39:in `process_action'
actionpack (8.0.2) lib/abstract_controller/base.rb:163:in `process'
actionview (8.0.2) lib/action_view/rendering.rb:40:in `process'
rack-mini-profiler (4.0.1) lib/mini_profiler/profiling_methods.rb:116:in `block in profile_method'
actionpack (8.0.2) lib/action_controller/metal.rb:252:in `dispatch'
actionpack (8.0.2) lib/action_controller/metal.rb:335:in `dispatch'
actionpack (8.0.2) lib/action_dispatch/routing/route_set.rb:67:in `dispatch'
actionpack (8.0.2) lib/action_dispatch/routing/route_set.rb:50:in `serve'
actionpack (8.0.2) lib/action_dispatch/journey/router.rb:53:in `block in serve'
actionpack (8.0.2) lib/action_dispatch/journey/router.rb:133:in `block in find_routes'
actionpack (8.0.2) lib/action_dispatch/journey/router.rb:126:in `each'
actionpack (8.0.2) lib/action_dispatch/journey/router.rb:126:in `find_routes'
actionpack (8.0.2) lib/action_dispatch/journey/router.rb:34:in `serve'
actionpack (8.0.2) lib/action_dispatch/routing/route_set.rb:908:in `call'
lib/middleware/omniauth_bypass_middleware.rb:35:in `call'
rack (2.2.17) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.17) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.17) lib/rack/head.rb:12:in `call'
actionpack (8.0.2) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:415:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
rack (2.2.17) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.17) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (8.0.2) lib/action_dispatch/middleware/cookies.rb:706:in `call'
actionpack (8.0.2) lib/action_dispatch/middleware/callbacks.rb:31:in `block in call'
activesupport (8.0.2) lib/active_support/callbacks.rb:100:in `run_callbacks'
actionpack (8.0.2) lib/action_dispatch/middleware/callbacks.rb:30:in `call'
actionpack (8.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:31:in `call'
actionpack (8.0.2) lib/action_dispatch/middleware/show_exceptions.rb:32:in `call'
logster (2.20.1) lib/logster/middleware/reporter.rb:40:in `call'
lib/middleware/default_headers.rb:13:in `call'
railties (8.0.2) lib/rails/rack/logger.rb:41:in `call_app'
railties (8.0.2) lib/rails/rack/logger.rb:29:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
actionpack (8.0.2) lib/action_dispatch/middleware/request_id.rb:34:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
rack (2.2.17) lib/rack/method_override.rb:24:in `call'
actionpack (8.0.2) lib/action_dispatch/middleware/executor.rb:16:in `call'
rack (2.2.17) lib/rack/sendfile.rb:110:in `call'
rack-mini-profiler (4.0.1) lib/mini_profiler.rb:334:in `call'
lib/middleware/processing_request.rb:12:in `call'
message_bus (4.4.1) lib/message_bus/rack/middleware.rb:60:in `call'
lib/middleware/request_tracker.rb:410:in `call'
actionpack (8.0.2) lib/action_dispatch/middleware/remote_ip.rb:96:in `call'
railties (8.0.2) lib/rails/engine.rb:535:in `call'
railties (8.0.2) lib/rails/railtie.rb:226:in `public_send'
railties (8.0.2) lib/rails/railtie.rb:226:in `method_missing'
rack (2.2.17) lib/rack/urlmap.rb:74:in `block in call'
rack (2.2.17) lib/rack/urlmap.rb:58:in `each'
rack (2.2.17) lib/rack/urlmap.rb:58:in `call'
unicorn (6.1.0) lib/unicorn/http_server.rb:634:in `process_client'
unicorn (6.1.0) lib/unicorn/http_server.rb:739:in `worker_loop'
unicorn (6.1.0) lib/unicorn/http_server.rb:547:in `spawn_missing_workers'
unicorn (6.1.0) lib/unicorn/http_server.rb:143:in `start'
unicorn (6.1.0) bin/unicorn:128:in `<top (required)>'
vendor/bundle/ruby/3.3.0/bin/unicorn:25:in `load'
vendor/bundle/ruby/3.3.0/bin/unicorn:25:in `<main>'

Env

HTTP HOSTS:

BEWERKING: Handmatig opnieuw opbouwen heeft dit opgelost, maar omdat het eerder is gebeurd, ben ik nog steeds benieuwd hoe ik dit in de toekomst kan voorkomen.

1 like

The issue has also been encountered here

Hoewel dat dezelfde fout is (500), denk ik niet dat het dezelfde situatie is (ook al is deze vergelijkbaar), aangezien mijn probleem zich voordeed nadat ik Discourse had bijgewerkt, wat ook de kernplugins had moeten bijwerken.

De OP van dat onderwerp zei dat ze een kernplugin hadden bijgewerkt om het op te lossen - terwijl ik het hele platform heb bijgewerkt - en het gebeurde na een update.

Het probleem deed zich vandaag opnieuw voor, dit keer zonder dat er voorafgaand aan de fout een update werd uitgevoerd. Ik hoop nog steeds dat iemand met een oplossing reageert.

can’t believe this is being ignored. I am still getting the ERROR - Chat GPT says its something to do with a missing Import :upside_down_face:

Kunt u stapsgewijze replicatiestappen verstrekken? Hoe komt u tot dit foutbericht?

The issue happens when users are creating topics and inserting a timestamp. They insert the timestamp, and the error occurs when they press “Post” or “Edit” a post I believe. I personally cannot reproduce it. The information I provide is from the Error logging information, and what my moderators are reporting to me.

Yes, it is self-hosted and resolves on its own when I rebuild but the issue seems to always return. For the last week it’s been a daily return.

For context - I use Discourse for my small moderation team to log actions performed within our community - so we use the date/time insert every time we log something.

I have more of the details from the error log if you need them.

kunt u hier de markdown delen voor een bericht dat het interne serverfoutbericht genereert?

We use the button within the composer and not insert through a markdown format, so I am unsure what you are looking for.

For context, its hard to reproduce, but happens frequently. I have to update Discourse or rebuild to stop the error. I have narrowed it down to the Date/Time plugin as you can still post without it - which brought me to here.

Thanks!

Ik probeer replicatiestappen te krijgen. Als je een bericht hebt met alleen de onderstaande markdown, wat gebeurt er dan?

[date=2025-08-15 timezone="America/Los_Angeles"]

2025-08-15T07:00:00Z

Edit: I will post the markdown soon. I didn’t have the button pressed. :sweat_smile:

[date-range from=2025-08-06 to=2025-09-03 timezone="Europe/Warsaw"]

Dit is de stempel in de post (waar een van de instanties van de fout optrad).

Het plaatsen van de markdown die u noemt, veroorzaakt de fout bij mij niet - Sterker nog, ik heb deze zelf helemaal niet kunnen reproduceren.

Nou, dit verklaart waarom niemand opspringt om je te helpen je probleem op te lossen. Zonder stappen om het te repliceren, is het erg moeilijk om erachter te komen wat er aan de hand is en om te bepalen of het een bug is.

Ik zie nog een ander onderwerp van afgelopen november dat een vergelijkbare fout uit het logboek citeert en gaat over het bewerken van berichten met tijdstempels erin. Kun je de fout repliceren bij het bewerken van een onderwerp met een tijdstempel, versus het maken van een nieuw onderwerp?

Ik verplaats deze hiernaartoe.

1 like

Ik zal hier opnieuw posten wanneer het probleem zich voordoet - en hopelijk heb ik tegen die tijd een reproductieproces.

2 likes

Today, Sunday August 24th I got notified that my staff were getting this internal server error again - Instead of rebooting the server I decided to go ahead and record a video for you of me reproducing it. I also included without the timestamp being inserted to demonstrate the issue only occurs when you insert a time.

My SOLID Reproduction steps in my case

  1. Create a new topic
  2. Fill it in with information - Including inserting a timestamp.
  3. Click Post and observe.

Message (3 copies reported)

MiniRacer::RuntimeError (TypeError: moment.tz is not a function)
lib/pretty_text.rb:237:in `eval'
lib/pretty_text.rb:237:in `block in markdown'
lib/pretty_text.rb:677:in `block in protect'
lib/pretty_text.rb:677:in `synchronize'
lib/pretty_text.rb:677:in `protect'
lib/pretty_text.rb:174:in `markdown'
lib/pretty_text.rb:300:in `cook'
app/models/post_analyzer.rb:30:in `cook'
app/models/post_analyzer.rb:149:in `cooked_stripped'
app/models/post_analyzer.rb:126:in `raw_links'
app/models/post_analyzer.rb:143:in `link_count'
app/models/post.rb:311:in `public_send'
app/models/post.rb:311:in `block (2 levels) in <class:Post>'
lib/validators/post_validator.rb:141:in `max_links_validator'
lib/validators/post_validator.rb:20:in `validate'
lib/post_creator.rb:179:in `valid?'
lib/post_creator.rb:187:in `create'
lib/new_post_manager.rb:321:in `perform_create_post'
lib/new_post_manager.rb:255:in `perform'
app/controllers/posts_controller.rb:223:in `create'
app/controllers/application_controller.rb:428:in `block in with_resolved_locale'
app/controllers/application_controller.rb:428:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:35:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:415:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
lib/middleware/default_headers.rb:13:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/processing_request.rb:12:in `call'
lib/middleware/request_tracker.rb:410:in `call'

Backtrace

lib/pretty_text.rb:237:in `eval'
lib/pretty_text.rb:237:in `block in markdown'
lib/pretty_text.rb:677:in `block in protect'
lib/pretty_text.rb:677:in `synchronize'
lib/pretty_text.rb:677:in `protect'
lib/pretty_text.rb:174:in `markdown'
lib/pretty_text.rb:300:in `cook'
app/models/post_analyzer.rb:30:in `cook'
app/models/post_analyzer.rb:149:in `cooked_stripped'
app/models/post_analyzer.rb:126:in `raw_links'
app/models/post_analyzer.rb:143:in `link_count'
app/models/post.rb:311:in `public_send'
app/models/post.rb:311:in `block (2 levels) in <class:Post>'
lib/validators/post_validator.rb:141:in `max_links_validator'
lib/validators/post_validator.rb:20:in `validate'
lib/post_creator.rb:179:in `valid?'
lib/post_creator.rb:187:in `create'
lib/new_post_manager.rb:321:in `perform_create_post'
lib/new_post_manager.rb:255:in `perform'
app/controllers/posts_controller.rb:223:in `create'
actionpack (8.0.2.1) lib/action_controller/metal/basic_implicit_render.rb:8:in `send_action'
actionpack (8.0.2.1) lib/abstract_controller/base.rb:226:in `process_action'
actionpack (8.0.2.1) lib/action_controller/metal/rendering.rb:193:in `process_action'
actionpack (8.0.2.1) lib/abstract_controller/callbacks.rb:261:in `block in process_action'
activesupport (8.0.2.1) lib/active_support/callbacks.rb:120:in `block in run_callbacks'
app/controllers/application_controller.rb:428:in `block in with_resolved_locale'
i18n (1.14.7) lib/i18n.rb:353:in `with_locale'
app/controllers/application_controller.rb:428:in `with_resolved_locale'
activesupport (8.0.2.1) lib/active_support/callbacks.rb:129:in `block in run_callbacks'
activesupport (8.0.2.1) lib/active_support/callbacks.rb:140:in `run_callbacks'
actionpack (8.0.2.1) lib/abstract_controller/callbacks.rb:260:in `process_action'
actionpack (8.0.2.1) lib/action_controller/metal/rescue.rb:27:in `process_action'
actionpack (8.0.2.1) lib/action_controller/metal/instrumentation.rb:76:in `block in process_action'
activesupport (8.0.2.1) lib/active_support/notifications.rb:210:in `block in instrument'
activesupport (8.0.2.1) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport (8.0.2.1) lib/active_support/notifications.rb:210:in `instrument'
actionpack (8.0.2.1) lib/action_controller/metal/instrumentation.rb:75:in `process_action'
actionpack (8.0.2.1) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
activerecord (8.0.2.1) lib/active_record/railties/controller_runtime.rb:39:in `process_action'
actionpack (8.0.2.1) lib/abstract_controller/base.rb:163:in `process'
actionview (8.0.2.1) lib/action_view/rendering.rb:40:in `process'
rack-mini-profiler (4.0.1) lib/mini_profiler/profiling_methods.rb:116:in `block in profile_method'
actionpack (8.0.2.1) lib/action_controller/metal.rb:252:in `dispatch'
actionpack (8.0.2.1) lib/action_controller/metal.rb:335:in `dispatch'
actionpack (8.0.2.1) lib/action_dispatch/routing/route_set.rb:67:in `dispatch'
actionpack (8.0.2.1) lib/action_dispatch/routing/route_set.rb:50:in `serve'
actionpack (8.0.2.1) lib/action_dispatch/journey/router.rb:53:in `block in serve'
actionpack (8.0.2.1) lib/action_dispatch/journey/router.rb:133:in `block in find_routes'
actionpack (8.0.2.1) lib/action_dispatch/journey/router.rb:126:in `each'
actionpack (8.0.2.1) lib/action_dispatch/journey/router.rb:126:in `find_routes'
actionpack (8.0.2.1) lib/action_dispatch/journey/router.rb:34:in `serve'
actionpack (8.0.2.1) lib/action_dispatch/routing/route_set.rb:908:in `call'
lib/middleware/omniauth_bypass_middleware.rb:35:in `call'
rack (2.2.17) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.17) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.17) lib/rack/head.rb:12:in `call'
actionpack (8.0.2.1) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:415:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
rack (2.2.17) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.17) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (8.0.2.1) lib/action_dispatch/middleware/cookies.rb:706:in `call'
actionpack (8.0.2.1) lib/action_dispatch/middleware/callbacks.rb:31:in `block in call'
activesupport (8.0.2.1) lib/active_support/callbacks.rb:100:in `run_callbacks'
actionpack (8.0.2.1) lib/action_dispatch/middleware/callbacks.rb:30:in `call'
actionpack (8.0.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in `call'
actionpack (8.0.2.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in `call'
logster (2.20.1) lib/logster/middleware/reporter.rb:40:in `call'
lib/middleware/default_headers.rb:13:in `call'
railties (8.0.2.1) lib/rails/rack/logger.rb:41:in `call_app'
railties (8.0.2.1) lib/rails/rack/logger.rb:29:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
actionpack (8.0.2.1) lib/action_dispatch/middleware/request_id.rb:34:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
rack (2.2.17) lib/rack/method_override.rb:24:in `call'
actionpack (8.0.2.1) lib/action_dispatch/middleware/executor.rb:16:in `call'
rack (2.2.17) lib/rack/sendfile.rb:110:in `call'
rack-mini-profiler (4.0.1) lib/mini_profiler.rb:334:in `call'
lib/middleware/processing_request.rb:12:in `call'
message_bus (4.4.1) lib/message_bus/rack/middleware.rb:60:in `call'
lib/middleware/request_tracker.rb:410:in `call'
actionpack (8.0.2.1) lib/action_dispatch/middleware/remote_ip.rb:96:in `call'
railties (8.0.2.1) lib/rails/engine.rb:535:in `call'
railties (8.0.2.1) lib/rails/railtie.rb:226:in `public_send'
railties (8.0.2.1) lib/rails/railtie.rb:226:in `method_missing'
rack (2.2.17) lib/rack/urlmap.rb:74:in `block in call'
rack (2.2.17) lib/rack/urlmap.rb:58:in `each'
rack (2.2.17) lib/rack/urlmap.rb:58:in `call'
unicorn (6.1.0) lib/unicorn/http_server.rb:634:in `process_client'
unicorn (6.1.0) lib/unicorn/http_server.rb:739:in `worker_loop'
unicorn (6.1.0) lib/unicorn/http_server.rb:547:in `spawn_missing_workers'
unicorn (6.1.0) lib/unicorn/http_server.rb:143:in `start'
unicorn (6.1.0) bin/unicorn:128:in `<top (required)>'
vendor/bundle/ruby/3.3.0/bin/unicorn:25:in `load'
vendor/bundle/ruby/3.3.0/bin/unicorn:25:in `<main>'

Env

HTTP HOSTS: logging.vcmoderation.xyz

Edit: Forgot to do a test with plugins disabled the one that I posted in their support forum for. So here is the second test with it DISABLED - Eliminating it from the root issue.**
The video below is with the plugin disabled the one above had the plugin enabled.
**

1 like

Geweldig! Kun je het opnieuw proberen in de veilige modus?

Ik zal het over een paar dagen opnieuw proberen wanneer de fout zich opnieuw voordoet, deze verdwijnt na updates of herbouw, en ik heb Discourse een tijdje geleden bijgewerkt. Het spijt me nogmaals dat dit een pijnlijk probleem voor u is, net zoals het voor mij is, aangezien het moeilijk te debuggen is Ik zal posten wanneer ik kan! Bedankt!

Ja, proberen in de veilige modus is de volgende stap, aangezien niemand dit op een andere site kan repliceren, behalve die van jou. Het kan een ander plugin of thema-onderdeel zijn dat je dwarszit. Als het werkt in de veilige modus, kun je plugins en componenten terugzetten totdat je de boosdoener hebt gevonden.

Als het niet werkt in de veilige modus, kun je proberen je app.yml te bewerken om plugins één voor één te verwijderen totdat je site weer werkt. Het kan zijn dat een plugin nog steeds interfereert, zelfs als deze via de gebruikersinterface is uitgeschakeld.

En tot slot, dit had ik eerder moeten vragen, maar kun je bevestigen dat je de app.yml niet hebt bewerkt om over te schakelen van de tests-passed naar de stabiele branch? Je moet op tests-passed staan om er zeker van te zijn dat je toegang hebt tot de allernieuwste fixes en verbeteringen.

En ook, ik ga ervan uit dat je de officiële installatie-instructies oorspronkelijk hebt gevolgd toen je je zelf-gehoste site voor het eerst hebt ingesteld? Als je daar niet zeker van bent en op een oude server zit, kun je overwegen je site te back-uppen en deze te herstellen naar een nieuw ingestelde server met behulp van de officiële installatie-instructies.

Je kunt daar hulp bij krijgen in Marketplace als de bovenstaande stappen te moeilijk voor je zijn.