Comments (7)
I'm pasting the solution found on glitter here, as glitter is not indexed by Internet search engines:
@ponentesincausa said:
hi all I fixed it adding wicked_pdf and wkhtmltopdf-binary gems to the Gemfile
I can confirm this solution worked for me too !
from decidim-install.
Thats the error when i tried to uncomment initiatives:
decidim@decidim2-ubuntu-s-1vcpu-2gb-nyc1-01:~/decidim-app$ bin/rails decidim:upgrade
rails aborted!
NameError: uninitialized constant WickedPdf
/home/decidim/decidim-app/config/environment.rb:5:in <main>' bin/rails:4:in
Caused by:
NameError: uninitialized constant WickedPdf
/home/decidim/decidim-app/config/environment.rb:5:in <main>' bin/rails:4:in
Tasks: TOP => decidim:upgrade => railties:install:migrations => db:load_config => environment
from decidim-install.
Maybe wickedpdf has to be required manually (require "wickedpdf"
on top of the file), but I am not sure as I haven't used initiatives yet.
Can you ask this question here?
https://gitter.im/decidim/decidim
Please provide your version of Decidim are you using.
from decidim-install.
Thanks, i will ask there. I am using 0.19
from decidim-install.
That worked for me too. This should be added into the install notes, or as a PR to the Gemfile in Decidim.
from decidim-install.
Actually, it is not really necessary to include it in the Gemfile. The problem is that this should be required in the code in this file https://github.com/decidim/decidim/blob/master/decidim-initiatives/config/initializers/wicked_pdf.rb
I'll make a PR to try to solve it.
Meanwhile, other ways to solve it is to edit the config/environment.rb
file for instance, and add it in there:
# Load the Rails application.
require 'wicked_pdf'
require_relative 'application'
# Initialize the Rails application.
Rails.application.initialize!
from decidim-install.
Add:
gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
and voilá
from decidim-install.
Related Issues (20)
- 403 Forbidden nginx/1.18.0 (Ubuntu) HOT 1
- nokogiri requires Ruby version >= 3.0, Install aborted
- Can't send email (gmail) HOT 8
- Cannot install on fresh Ubuntu 18.04 HOT 3
- Fresh install on Ubuntu 20.04 not working
- access the Dashboard from localhost
- Sending email with sendgrid
- Something went wrong installing decidim gem
- which ruby? HOT 1
- Uglifier::Error: generators cannot be async HOT 1
- adding gem does not insert tables into postgres
- Can't install on an AWS EC2 instance
- Installation completed, nginx default page showing HOT 1
- Site not found (404) HOT 3
- Can't see Dashboard
- Compilation failed when I create production environment
- webpacker error during fresh install HOT 1
- installer on Ubuntu 20.4 successful but stuck @ "bundle install" to setup basic config HOT 1
- Decidim on ruby-2.7.5:alpine-3.15
- Installation script not working with 3+ fatal errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decidim-install.