Weiß jemand, was dieser MiniRacer::RuntimeError (TypeError: moment.tz ist keine Funktion) Fehler ist?

Ich bekomme diesen Fehler jetzt häufig und er wird langsam zu einer großen Belästigung. Das Ausführen von ./launcher restart app behebt das Problem vorübergehend, aber nach einer Weile kehrt es zurück.

Ich erhalte diesen Fehler, wenn ich Beiträge bearbeite, insbesondere. Ich hatte in der Vergangenheit Probleme, wenn ein Datums-/Zeitstempel eingefügt wurde, wie dieser –\u003e 2024-11-11T05:00:00Z, dann führte dies zu dem Fehler.

Kann jemand diesen Fehler untersuchen und herausfinden, woher er kommt, oder wenn jemand dies zuvor erlebt hat, eine bessere Problemumgehung kennt? Danke.

MiniRacer::RuntimeError (TypeError: moment.tz ist keine Funktion) 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/\n```

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' 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

Ich erhalte einen internen Serverfehler für die Zeit-/Datums-Einfügung. Dies ist schon einmal passiert, ich bin mir nicht sicher, was ich getan habe, um es zu beheben, wahrscheinlich nur ein Serverneustart – aber ich dachte, es wäre vielleicht eine gute Idee, ein Thema darüber zu erstellen, da mein letztes Problem durch das Ansprechen gelöst wurde. Fehlerdetails aus den Protokollen:

Nachricht

MiniRacer::RuntimeError (TypeError: moment.tz ist keine Funktion)
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>'

Umgebung

HTTP HOSTS:

EDIT: Manuelles Neukompilieren hat dies behoben, aber da es schon einmal passiert ist, bin ich immer noch daran interessiert, es in Zukunft zu verhindern.

1 „Gefällt mir“

Das Problem ist auch hier aufgetreten

Obwohl dies derselbe Fehler (500) ist, glaube ich nicht, dass es dieselbe Situation ist (obwohl sie ähnlich ist), da mein Problem auftrat, nachdem ich Discourse aktualisiert hatte, was auch die Kern-Plugins aktualisiert haben sollte.

Der OP dieses Themas sagte, sie hätten ein Kern-Plugin zur Behebung aktualisiert – während ich die gesamte Plattform aktualisiert habe – und es trat nach einem Update auf.

Das Problem trat heute erneut auf, diesmal ohne vorheriges Update, bevor der Fehler auftrat. Ich hoffe immer noch, dass jemand mit einer Lösung antwortet.

Ich kann nicht glauben, dass das ignoriert wird. Ich bekomme immer noch den FEHLER - Chat GPT sagt, es hat etwas mit einem fehlenden Import zu tun :upside_down_face:

Können Sie Schritt-für-Schritt-Replikationsschritte angeben? Wie kommen Sie zu dieser Fehlermeldung?

Das Problem tritt auf, wenn Benutzer Themen erstellen und einen Zeitstempel einfügen. Sie fügen den Zeitstempel ein, und der Fehler tritt auf, wenn sie meiner Meinung nach auf „Posten“ oder „Bearbeiten“ klicken. Ich persönlich kann es nicht reproduzieren. Die Informationen, die ich bereitstelle, stammen aus den Fehlerprotokollinformationen und dem, was meine Moderatoren mir berichten.

Ja, es ist selbst gehostet und löst sich von selbst, wenn ich neu baue, aber das Problem scheint immer wieder aufzutreten. In der letzten Woche trat es täglich wieder auf.

Zum Kontext: Ich verwende Discourse für mein kleines Moderationsteam, um Aktionen zu protokollieren, die in unserer Community durchgeführt werden – daher verwenden wir die Datums-/Zeiteinfügung jedes Mal, wenn wir etwas protokollieren.

Ich habe weitere Details aus dem Fehlerprotokoll, falls Sie diese benötigen.

Können Sie hier das Markdown für einen Beitrag teilen, der die Fehlermeldung „Interner Serverfehler“ generiert?

Wir verwenden die Schaltfläche im Composer und fügen sie nicht über ein Markdown-Format ein, daher bin ich mir nicht sicher, was Sie suchen.\n\nZum Kontext: Es ist schwer zu reproduzieren, tritt aber häufig auf. Ich muss Discourse aktualisieren oder neu erstellen, um den Fehler zu beheben. Ich habe es auf das Datums-/Zeit-Plugin eingegrenzt, da Sie ohne dieses noch posten können – was mich hierher gebracht hat.\n\nDanke!\n\n

Ich versuche, Replikationsschritte zu erhalten. Wenn Sie einen Beitrag mit nur dem folgenden Markdown haben, was passiert?

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

2025-08-15T07:00:00Z

Bearbeiten: Ich werde den Markdown bald posten. Ich hatte die Schaltfläche nicht gedrückt. :sweat_smile:

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

Dies ist der Stempel in dem Beitrag (wo eine der Instanzen des Fehlers aufgetreten ist).

Das Posten des von Ihnen erwähnten Markdown löst den Fehler bei mir nicht aus – tatsächlich konnte ich ihn selbst überhaupt nicht reproduzieren.

Nun, das erklärt, warum niemand Ihnen hilft, Ihr Problem zu lösen. Ohne Replikationsschritte ist es sehr schwierig herauszufinden, was vor sich geht und ob es sich um einen Fehler handelt.

Ich sehe ein weiteres Thema vom letzten November, das einen ähnlichen Fehler aus dem Protokoll zitiert und sich mit der Bearbeitung von Beiträgen mit Zeitstempeln befasst. Können Sie den Fehler reproduzieren, wenn Sie ein Thema mit einem Zeitstempel bearbeiten, im Gegensatz zur Erstellung eines neuen Themas?

Ich werde dieses hier dorthin verschieben.

1 „Gefällt mir“

Ich werde hier erneut posten, wenn das Problem auftritt – und hoffentlich bis dahin einen Reproduktionsprozess haben.

2 „Gefällt mir“

Heute, Sonntag, dem 24. August, erhielt ich die Benachrichtigung, dass meine Mitarbeiter erneut diesen internen Serverfehler erhielten. Anstatt den Server neu zu starten, beschloss ich, ein Video für Sie aufzunehmen, in dem ich das Problem reproduziere. Ich habe auch ohne das Einfügen des Zeitstempels aufgenommen, um zu demonstrieren, dass das Problem nur auftritt, wenn Sie eine Zeit einfügen.

Meine SOLID-Reproduktionsschritte in meinem Fall

  1. Erstellen Sie ein neues Thema
  2. Füllen Sie es mit Informationen aus – einschließlich des Einfügens eines Zeitstempels.
  3. Klicken Sie auf „Posten“ und beobachten Sie.

Nachricht (3 Kopien gemeldet)

MiniRacer::RuntimeError (TypeError: moment.tz ist keine Funktion)
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'
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

Bearbeiten: Ich habe vergessen, einen Test mit deaktivierten Plugins durchzuführen, für den ich in ihrem Support-Forum gepostet habe. Hier ist also der zweite Test mit deaktiviertem Plugin – damit ist es als Ursache des Problems ausgeschlossen. **
Das Video unten ist mit deaktiviertem Plugin, das obige hatte das Plugin aktiviert.
**

1 „Gefällt mir“

Großartig! Können Sie es im abgesicherten Modus noch einmal versuchen?

Ich werde es in ein paar Tagen noch einmal versuchen, wenn der Fehler erneut auftritt. Er verschwindet nach Updates oder Rebuilds, und ich habe Discourse vor einiger Zeit aktualisiert. Es tut mir nochmals leid, dass dies ein schmerzhaftes Problem für Sie ist, genauso wie für mich, da es schwer zu debuggen ist. Ich werde posten, wenn ich kann! Danke!

Ja, der Versuch im abgesicherten Modus ist der nächste Schritt, da niemand dies auf einer anderen Website außer Ihrer reproduzieren kann. Es könnte ein anderes Plugin oder eine Theme-Komponente sein, die Sie behindert. Wenn es im abgesicherten Modus funktioniert, können Sie Plugins und Komponenten wieder aktivieren, bis Sie den Schuldigen gefunden haben.

Wenn es im abgesicherten Modus nicht funktioniert, können Sie versuchen, Ihre app.yml zu bearbeiten, um Plugins einzeln zu entfernen, bis Ihre Website wieder funktioniert. Es kann sein, dass ein Plugin immer noch stört, auch wenn es über die Benutzeroberfläche deaktiviert ist.

Und schließlich hätte ich das früher fragen sollen, aber können Sie bestätigen, dass Sie die app.yml nicht bearbeitet haben, um von der tests-passed- auf die stabile Version zu wechseln? Sie müssen sich auf tests-passed befinden, um sicherzustellen, dass Sie Zugriff auf die allerneuesten Korrekturen und Verbesserungen haben.

Außerdem gehe ich davon aus, dass Sie ursprünglich die offiziellen Installationsanweisungen befolgt haben, als Sie Ihre selbst gehostete Website zum ersten Mal eingerichtet haben? Wenn Sie sich da nicht sicher sind und auf einem alten Server sind, könnten Sie in Erwägung ziehen, Ihre Website zu sichern und sie mit den offiziellen Installationsanweisungen auf einem neu eingerichteten Server wiederherzustellen.

Sie könnten dabei in Marketplace Hilfe bekommen, wenn Ihnen die oben genannten Schritte zu schwierig erscheinen.