We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using Alchemy v6 with Solidus v3.1.7. Just starting the application server throws an error and the server stops.
The application starts without problems.
I'm getting the following error:
wrong number of arguments (given 4, expected 1) (ArgumentError) /home/antonio/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/psych-4.0.4/lib/psych.rb:322:in `safe_load' /home/antonio/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/alchemy_cms-d5f1dad16a55/lib/alchemy/config.rb:58:in `read_file' /home/antonio/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/alchemy_cms-d5f1dad16a55/lib/alchemy/config.rb:41:in `alchemy_config' /home/antonio/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/alchemy_cms-d5f1dad16a55/lib/alchemy/config.rb:27:in `show' /home/antonio/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/alchemy_cms-d5f1dad16a55/lib/alchemy/config.rb:12:in `get' /home/antonio/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/alchemy_cms-d5f1dad16a55/app/models/alchemy/attachment.rb:88:in `<class:Attachment>' /home/antonio/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/alchemy_cms-d5f1dad16a55/app/models/alchemy/attachment.rb:21:in `<module:Alchemy>' /home/antonio/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/alchemy_cms-d5f1dad16a55/app/models/alchemy/attachment.rb:20:in `<main>'
The version of Solidus used requires Psych 4 and I saw that Alchemy uses the safe_load method that needs to be adapted or replaced with unsafe_load as already done in Rails. See also this issue: ruby/psych#533
safe_load
unsafe_load
The text was updated successfully, but these errors were encountered:
I've just realized that I was running the v6.0.0 of Alchemy, with the latest version (v6.0.5) I don't have this problem. Sorry for the noise.
Sorry, something went wrong.
Use new syntax for psych 4
ef260bc
- Psych 4 has changed their syntax so account for that - Taken from: AlchemyCMS/alchemy_cms@v6.0.0...v6.0.5 which I got too from here; AlchemyCMS#2361
No branches or pull requests
Steps to reproduce
I'm using Alchemy v6 with Solidus v3.1.7.
Just starting the application server throws an error and the server stops.
Expected behavior
The application starts without problems.
Actual behavior
I'm getting the following error:
System configuration
The version of Solidus used requires Psych 4 and I saw that Alchemy uses the
safe_load
method that needs to be adapted or replaced withunsafe_load
as already done in Rails.See also this issue: ruby/psych#533
The text was updated successfully, but these errors were encountered: