I created the project using phoenix.new and now whenever try to start phoenix server with command phoenix.server getting this error.

Erlang/OTP 24 [erts-12.2.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]

warning: found quoted keyword "test" but the quotes are not required. Note that keywords are always atoms, even when quoted. Similar to atoms, keywords made exclusively of ASCII letters, numbers, and underscores do not require quotes

warning: the :gettext compiler is no longer required in your mix.exs.

Please find the following line in your mix.exs and remove the :gettext entry:

    compilers: [..., :gettext, ...] ++ Mix.compilers(),

  (gettext 0.21.0) lib/mix/tasks/compile.gettext.ex:5: Mix.Tasks.Compile.Gettext.run/1
  (mix 1.12.2) lib/mix/task.ex:394: anonymous fn/3 in Mix.Task.run_task/3
  (mix 1.12.2) lib/mix/tasks/compile.all.ex:92: Mix.Tasks.Compile.All.run_compiler/2
  (mix 1.12.2) lib/mix/tasks/compile.all.ex:72: Mix.Tasks.Compile.All.compile/4
  (mix 1.12.2) lib/mix/tasks/compile.all.ex:59: Mix.Tasks.Compile.All.with_logger_app/2
  (mix 1.12.2) lib/mix/tasks/compile.all.ex:36: Mix.Tasks.Compile.All.run/1
  (mix 1.12.2) lib/mix/task.ex:394: anonymous fn/3 in Mix.Task.run_task/3
  (mix 1.12.2) lib/mix/tasks/compile.ex:128: Mix.Tasks.Compile.run/1
  (mix 1.12.2) lib/mix/task.ex:394: anonymous fn/3 in Mix.Task.run_task/3
  (mix 1.12.2) lib/mix/task.ex:437: Mix.Task.get_task_or_run/3
  (mix 1.12.2) lib/mix/task.ex:375: Mix.Task.run_task/3
  (mix 1.12.2) lib/mix/cli.ex:84: Mix.CLI.run_task/2
  (elixir 1.12.2) src/elixir_compiler.erl:75: :elixir_compiler.dispatch/4
  (elixir 1.12.2) src/elixir_compiler.erl:60: :elixir_compiler.compile/3
  (elixir 1.12.2) src/elixir_lexical.erl:15: :elixir_lexical.run/3
  (elixir 1.12.2) src/elixir_compiler.erl:18: :elixir_compiler.quoted/3
  (elixir 1.12.2) lib/code.ex:1261: Code.require_file/2
  (elixir 1.12.2) lib/kernel/cli.ex:553: Kernel.CLI.wrapper/1

Compiling 12 files (.ex)

== Compilation error in file web/views/page_view.ex ==
** (RuntimeError) unexpected EEx.Engine state: {:safe, ""}. This typically means a bug or an outdated EEx.Engine or tool
    (eex 1.12.2) lib/eex/engine.ex:218: EEx.Engine.check_state!/1
    (eex 1.12.2) lib/eex/engine.ex:181: EEx.Engine.handle_text/3
    (eex 1.12.2) lib/eex/compiler.ex:51: EEx.Compiler.generate_buffer/4
    (phoenix 1.2.5) lib/phoenix/template.ex:378: Phoenix.Template.compile/2
    (phoenix 1.2.5) lib/phoenix/template.ex:186: anonymous fn/3 in Phoenix.Template."MACRO-__before_compile__"/2
    (elixir 1.12.2) lib/enum.ex:2385: Enum."-reduce/3-lists^foldl/2-0-"/3
    (phoenix 1.2.5) expanding macro: Phoenix.Template.__before_compile__/1
    web/views/page_view.ex:1: Test.PageView (module)
    (elixir 1.12.2) lib/kernel/parallel_compiler.ex:319: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7

Thanks! :smiley:

This is a really old version of Phoenix - was that intentional?

You’ll get better answers if you post the file that’s failing to compile here.

Old Phoenix on a newer Elixir version is in for a world of pain.

I’m also used to seeing that gettext warning for Elixir 1.13+.

The version Phoenix 1.2 is looking for according to phoenix/mix.exs at v1.2 · phoenixframework/phoenix · GitHub is Elixir 1.2 and not 1.12, 10 versions later. I’m pretty sure Phoenix 1.6 is what you want if you’re on that version of Elixir.