I just upgraded to the beta (and then dev) version 2.
I performed the database updates on my site (from v1.x) and when I visit the print/pdf config screen, my site no longer recognizes any of the PDF modules. I have these in the libraries folder (sites/all/libraries). I have tried upgrading to a newer dompdf, I have tried moving this into sites/all/modules/print/lib, and still no luck.
I can visit the dompdf extension in my browser and it is working fine (the fonts are installed, etc.) but Drupal and the print module refuse to see that it is there.
Anyone having similar issues?
Comments
Comment #1
blackclover commentedSame issue here.
Status Report Errors:
Printer, email and EPUB versions - EPUB generation library No EPUB tool selected
Please configure it in the EPUB settings page.
Error
Printer, email and PDF versions - PDF generation library No PDF tool selected
Please configure it in the PDF settings page.
Both the latest versions of ePub and dompdf are in the sites/all/library directory and both are selected as the tools in configuration.
Comment #2
mikemadison commentedJust a FYI, I'm running the newest version of Libraries (7.21) and I wonder if this has something to do with it?
Comment #3
sveldkamp commentedAlso using Libraries 7.x-2.1.
I had this problem too coming from Print-7.x-1.2 until I disabled the modules, uninstalled the modules, deleted the sites/all/modules/print folder altogether, and then installed Print-7.x-2.x-dev.
The root problem was either that certain new modules (e.g. print_pdf_mpdf) weren't being discovered, or that I just wasn't enabling them because I wasn't aware of them.
Comment #4
firebird commentedI was trying to get the mpdf library to work. It seems that the 1.2-branch doesn't support it at all (based on looking at the code). Is that documented anywhere?
I then tried to update to the 2.0 beta, but that just made all the libraries disappear.
Just disabling, uninstalling and enabling Print and Print PDF didn't fix this for me.
This didn't work either:
- Disable
- Uninstall
- Delete module directory
- drush cc all
- drush dl print-7.x-2.0-beta2
- drush en print_pdf --yes
How would I get the mpdf library to work?
Comment #5
firebird commentedGot it.
In the 7.x-2.0 branch, you need to enable a submodule for each library. In my case:
drush en print_pdf_mdf
Comment #6
firebird commentedI also needed to save the PDF settings page once, even though I needed to make no changes. The mpdf library was selected in the form, but the library wasn't saved in the Drupal variable, so the module didn't have a library to use.
Comment #7
jcnventuraI've now modified the print_pdf update functions to enable the PDF library module. That should clear any confusion for anyone updating from 7.x-1.x to 7.x-2.x.
Comment #9
zilla commentedfootnote: i just set up with latest dev and mpdf and it's not seeing all/libraries
i then moved entire MPDF into module's lib/ and still not seeing it at all - any ideas?
Comment #10
lperepolkin1 commentedI installed all the PDF libraries and am getting this message in admin/report/status:
Printer, email and PDF versions - PDF generation library No PDF tool selected
Please configure it in the PDF settings page.
The PDF portion of this module is not working. I tried all of the latest libraries for dompdf, mPDF, TCPDF and wkhtmltopdf
None work.
Comment #11
lperepolkin1 commentedComment #12
lperepolkin1 commentedInstalling the Token tweaks module fixed this issue for my install.
Comment #13
rwilson0429 commentedI was having the same problem, 'Cannot Find the PDF Libraries' trying to use the wkhtmltopdf libraries on a Linux (hostgator shared hosting) server. Below are the steps I took to resolve:
First, using SSH (secure shell) access, I downloaded the wkhtmltopdf library and unpacked using the following commands:
The wkhtmltopdf library was unpacked into a folder named wkhtmltox.
I created a wkhtmltopdf folder in sites/all/libraries/ (sites/all/libraries/wkhtmltopdf).
I then copied the wkhtmltopdf file fromthe wkhtmltox/bin folder to the sites/all/libraries/wkhtmltopdf folder.
Next, I created a symbolic link (this is the step that I believe resolved the missing pdf libraries issue):
Comment #14
ferrete commentedI had the same problem but i solve by downloading this version of lib mPDF
https://github.com/mpdf/mpdf/tree/master.
Comment #15
wohlfarth commentedI had similar problems: blank PDF config page at admin/config/user-interface/print/pdf and "No PDF tool selected" on the status page.
My solution: edit temporarily lines around 120 at print/print_pdf/print_pdf.admin.inc
This enables the config page at admin/config/user-interface/print/pdf and allows you to select the correct "PDF generation tool" which was dompdf in my case.
Once the library is correctly set, I rolled back to original code in print_pdf.admin.inc
I hope this helps someone.
Comment #16
jcnventuraNeeds work is for when there's something to improve. In this case, this seems to be a bug in token that shows up in here.
@wohlfarth: which other modules did you have installed? One of them is creating this. I've just tested latest D7 + print + token on a fresh install, and the PDF settings page works fine.
Comment #17
wohlfarth commentedA fresh install also works fine here.
After looking more into the blank config page at admin/config/user-interface/print/pdf it is in fact a fatal error and seemed to point to an issue with the module expire. The token help page at admin/help/token had the same issue.
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /drupalpath/includes/database/database.inc:2227
Stack trace:
#0 /drupalpath/includes/database/database.inc(2227): PDOStatement->execute(Array)
#1 /drupalpath/includes/database/database.inc(697): DatabaseStatementBase->execute(Array, Array)
#2 /drupalpath/includes/database/database.inc(2406): DatabaseConnection->query('SELECT expire, ...', Array, Array)
#3 /drupalpath/includes/lock.inc(167): db_query('SELECT expire, ...', Array)
#4 /drupalpath/includes/lock.inc(146): lock_may_be_available('theme_registry:...')
#5 /drupalpath/includes/theme.inc(449): lock_acquire('theme_registry:...')
#6 /drupalpath/includes/bootstrap.inc(455): ThemeRegistry->set(Array)
#7 [internal function]: DrupalCa in /drupalpath/includes/database/database.inc on line 2227
Uninstalling expire fixed it sometimes and sometimes not (inconsistently).
Adding this line to the mysql config in my.cfn fixed it definitely: max_allowed_packet = 256M.
@jcnventura: The pdf settings page works in fact as expected!
Feels like a dog chasing his tail!
Comment #18
jcnventuraSetting it back to the status of #7. Please do not reopen this issue, but instead open a new one.