This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hey I'm trying to get Barryvdh's Dompdf wrapper to work in the latest version October, it has all installed fine using composer and adding the ServiceProvider to the app.php file etc... The issue I'm getting is that in the constructor it is using "October\Rain\Config\Repository" instead of "Illuminate\Contracts\Config\Repository" and I have no idea why.
The full error is: "Argument 1 passed to Barryvdh\DomPDF\PDF::__construct() must be an instance of Illuminate\Contracts\Config\Repository, instance of October\Rain\Config\Repository given, called in /home/ccwukco/public_html/dev5/vendor/barryvdh/laravel-dompdf/src/ServiceProvider.php on line 57 and defined" on line 42 of /home/ccwukco/public_html/dev5/vendor/barryvdh/laravel-dompdf/src/PDF.php
Any help as always is greatly appreciated.
Ok found a solution, I changed the PDF.php of the plugin to use October\Rain\Config\Repository instead of Illuminate\Contracts\Config\Repository and all works fine now, many thanks to the guy in the live chat that pointed me in the right direction.
Hello, after installing my plugin in a fresh new version of October I get the same error message. Could you please elaborate on how to resolve this issue? Thanks!
Hey not sure what extra info you need, I edited pdf.php in the DomPDF plugin to use a different repository and it all worked after that. On an aside I ended up on using wlhtmltopdf instead as I had some large PDFs to generate and in this case it was much quicker.
Thank you, Oly, changing the repo didn't do it for me, I got another error saying that some parameter was missing from a method inside DomPDF. I guess I'll have to reinstall from scratch ( I was simply copying the plugin , including the vendor folder, from a Laravel 4 install to a Laravel 5 install).
This great plugin http://octobercms.com/plugin/renatio-dynamicpdf does that and more. It works like a charm!
1-7 of 7