Skip to content
New issue

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

TypeError at /admin/orders/R837725288.pdf - "no implicit conversion of nil into String" #81

Open
aruprakshit opened this issue Apr 13, 2015 · 1 comment

Comments

@aruprakshit
Copy link

My Gemfile has the below version :

gem 'spree_print_invoice' , :git => 'git://github.com/spree/spree_print_invoice.git' , branch: '2-3-stable'

While, I am clicking the button -- print invoice, getting the error -

Started GET "/admin/orders/R837725288.pdf?template=invoice" for 127.0.0.1 at 2015-04-13 13:50:57 +0530
Processing by Spree::Admin::OrdersController#show as PDF
  Parameters: {"template"=>"invoice", "id"=>"R837725288"}
#.....
Rendered /Users/shreyas/.rvm/gems/ruby-2.1.2@collective/bundler/gems/spree_print_invoice-393bec83bfd6/app/views/spree/admin/orders/_print.pdf.prawn (20.2ms)
  Rendered /Users/shreyas/.rvm/gems/ruby-2.1.2@collective/bundler/gems/spree_print_invoice-393bec83bfd6/app/views/spree/admin/orders/invoice.pdf.prawn (27.7ms)
Completed 500 Internal Server Error in 47ms

TypeError - no implicit conversion of nil into String:
  prawn (1.0.0) lib/prawn/images.rb:144:in `verify_and_open_image'
  prawn (1.0.0) lib/prawn/images.rb:79:in `build_image_object'
  prawn (1.0.0) lib/prawn/images.rb:67:in `image'
   () Users/shreyas/.rvm/gems/ruby-2.1.2@collective/bundler/gems/spree_print_invoice-393bec83bfd6/lib/prawn_handler.rb:22:in `method_missing'
   () Users/shreyas/.rvm/gems/ruby-2.1.2@collective/bundler/gems/spree_print_invoice-393bec83bfd6/app/views/spree/admin/orders/_print.pdf.prawn:8:in `_411b913187c5f59f36c7bb34abf7ead6'
  actionview (4.1.4) lib/action_view/template.rb:145:in `block in render'
#...
@MichaelSp
Copy link

Are you sure that Spree::PrintInvoice::Config[:logo_path] is actually a valid image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants