Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 911459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:12:38+00:00 2026-05-15T17:12:38+00:00

dompdf is not able to generate a pdf from a page of my website.

  • 0

dompdf is not able to generate a pdf from a page of my website. However, I’ve saved the page and uploaded it as simple static html file, and it worked!

So, I don’t know if the issue is with the url, or something else.. this is the error I get:

Warning: require_once(/home/o110334/public_html/dompdf/include/firephp.cls.php) [function.require-once]: failed to open stream: No such file or directory in /home/o110334/public_html/dompdf/dompdf_config.inc.php on line 194

Fatal error: require_once() [function.require]: Failed opening required ‘/home/o110334/public_html/dompdf/include/firephp.cls.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/o110334/public_html/dompdf/dompdf_config.inc.php on line 194

This is the code:

$file = "admin/store/orders/45/invoice/print"; // doesn't work
//$file = "invoice_sample2.html"; //it works (same web page, but stored in a html file)

$dompdf = new DOMPDF();
$dompdf->load_html_file($file);
$dompdf->render();
$dompdf->stream("sample.pdf");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:12:39+00:00Added an answer on May 15, 2026 at 5:12 pm

    DOMPDF is trying all kinds of stuff/eval’s when running local, you’re better of trying:

    1) the (granted, long way trip) of requesting the HTML by http:

    $dompdf->load_html_file('http://yourdomain.ext/'.$file);
    

    2) Don’t let DOMPDF eval but use output buffering itself, and let DOMPDF load the resulting string of HTML.

    <?php
        ob_start();
        //be sure this file exists, and works outside of web context etc.)
        require("admin/store/orders/45/invoice/print");
        $dompdf = new DOMPDF();
        $dompdf->load_html(ob_get_clean());
        $dompdf->render();
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iam using dompdf to generate pdf file from html , the problem is the
I'm using DOM PDF to convert a simple html page to a PDF--everything works
Hi I am using DOMPDF to generate PDF file, I would like to know
I m using Dompdf to convert Html Page to PDF. As client's requirement pdf
I'm using dompdf to generate a PDF file. In the file I'm including an
I'm using dompdf to generate a PDF. I've grabbed the code from the dompdf
I'm using DOMPDF to generate about 500 reports from one script. It's running out
I followed this tutorial: https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf However, I can't seem to set the path right.
DOMPDF does not support floats . However I am listing many tables, and they
Hi i'm saving some html stuff with .pdf extension using dompdf. The problem is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.