Title: Compilation failed
Last modified: August 30, 2016

---

# Compilation failed

 *  Resolved [wpku123](https://wordpress.org/support/users/wpku123/)
 * (@wpku123)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/compilation-failed-2/)
 * Hello,
 * I have tried you plugin DK PDF, but it produce error when I press Print PDF button.
   The error message :
 * > Warning: preg_replace(): Compilation failed: regular expression is too large
   > at offset 105081 in /srv/users/serverpilot/apps/srikandi/public/wp-content/
   > plugins/dk-pdf/includes/mpdf60/classes/cssmgr.php on line 167
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /srv/users/serverpilot/apps/srikandi/public/wp-content/plugins/dk-
   > pdf/includes/mpdf60/classes/cssmgr.php:167) in /srv/users/serverpilot/apps/
   > srikandi/public/wp-content/plugins/dk-pdf/includes/mpdf60/mpdf.php on line 
   > 8314
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /srv/users/serverpilot/apps/srikandi/public/wp-content/plugins/dk-
   > pdf/includes/mpdf60/classes/cssmgr.php:167) in /srv/users/serverpilot/apps/
   > srikandi/public/wp-content/plugins/dk-pdf/includes/mpdf60/mpdf.php on line 
   > 1706
   >  mPDF error: Some data has already been output to browser, can’t send 
   > PDF file
 * I choose all Post types to apply: post page attachment frm_display project.
 * For Action: I tested it using both Open PDF in new Window and Download PDF directly
 * I hope you can explain what does this error message mean and how to solve it?
 * Here is my page link [http://128.199.200.139/reservasi-admin-view/](http://128.199.200.139/reservasi-admin-view/)
 * Thank You
 * [https://wordpress.org/plugins/dk-pdf/](https://wordpress.org/plugins/dk-pdf/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/compilation-failed-2/#post-6424838)
 * Hi wpku123,
 * the first thing that we have to do is ensure that the error is not produced by
   your code in the page, please do this steps in your site:
 * 1. create a new post and add some text in the content.
    2. in Settings / PDF 
   Button / Post types to apply: ensure that post is checked. 3. go to your new 
   post page in the frontend and click the pdf button.
 * do this and tell me if the error persist, thanks.
 * Best.
 *  Thread Starter [wpku123](https://wordpress.org/support/users/wpku123/)
 * (@wpku123)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/compilation-failed-2/#post-6424880)
 * Hi Dinamiko,
 * I found the problem. The theme that I use, divi elegant themes, is not compatible
   with DK pdf plugin. I switched it to default WordPress theme, yes it works.
 * DK PDF plugin is now working perfectly with my new theme.
 * Thank you for developing such a great plugin.
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/compilation-failed-2/#post-6424883)
 * Hi wpku123,
 * Great 🙂
 * I’m going to mark this ticket as resolved, feel free to reopen it or create a
   new one if you’ve another problem in the future.
 * Best.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Compilation failed’ is closed to new replies.

 * ![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)
 * [DK PDF - WordPress PDF Generator](https://wordpress.org/plugins/dk-pdf/)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pdf/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/compilation-failed-2/#post-6424883)
 * Status: resolved