Avatar of wcotech
wcotech
 asked on

Fix for dompdf and php 5.2.8???

So there I was with a happy website that created custom contracts for my customers with dompdf and then my host upgraded dompdf to 5.2.8 and now if the html that I feed into dompdf is too big, it fails with no error, no warning, no nothin but a blank screen.  I desperately need to get this function restored.  Anyone know of a fix or possibly a comparable alternative that would do the job?

Thanks & God bless!

Also,  I've attached a sample of the html that I feed which ends up breaking dompdf
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Untitled document</title>
<?require("contract_style.php")?>
</head>
<body>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><img src="images/tdlogo.gif" alt="" width="600" height="131" /></p>
<p style="text-align: center;"><span style="font-size: large;"><strong>Entertainment Contract</strong></span></p>
<p style="text-align: left;">This agreement, made between XXXXXXX &amp; XXXXX XXXXXXXXX XXXX XXXXXXX XXXXXXXX (here-in-after known as "Disc-Jockey") and <strong>{contact}</strong> (here-in-after known as "Client"), is for the purpose of contracting the Disc-Jockey's entertainment service.<br /><br />The Disc-Jockey agrees to provide its mobile disc-jockey services on the <strong>{dd} day of {mm}, {yy}</strong> from <strong>{ft} </strong>until <strong>{tt}</strong> at the following location: <strong>{location}</strong>.</p>
<div>
<table id="pricing_table" border="0">
<thead> 
<tr>
<td colspan="2"><span style="font-size: small;"><strong> Event Pricing Information:</strong></span></td>
</tr>
</thead> 
<tbody>
<tr>
<td class="label">Package Price:  <br /></td>
<td>${sum}  <br /></td>
</tr>
<tr>
<td class="label">Discount:  <br /></td>
<td><span style="color: #ff0000;"> ${discount}  <br /></span></td>
</tr>
</tbody>
<tfoot> 
<tr>
<td class="label">Balance Due:  <br /></td>
<td>${balance}  <br /></td>
</tr>
</tfoot>
</table>
</div>
<p><strong>Payment</strong> <br />The Client agrees to pay the disc-jockey the total sum of <strong>${balance}</strong> which includes a one-time discount of <strong>${discount}</strong>.  A retainer of <strong>${retainer}</strong> is due upon booking of the above services and the balance of <strong>${dbalance}</strong> <span style="color: #ff0000;">is due two (2) weeks (14 business days) prior to the stated date of services above</span>. <br /><br />The Client's failure to pay the above stated compensation in full by the end of the date of services shall be considered a breach of contract and shall permit the Disc-Jockey to pursue the balance due through necessary collection methods.<br /><br />The retainer is non-refundable unless the client requests a refund of the retainer before a period of three full calendar months prior to the date of the services stated above.  <br /><br />Payments for the retainer, or payments on account will be accepted by check or money order (made out to XXXXX XX XXXXXXX) only. Cash payments are not accepted.<br /><br />This Contract is contingent upon the receipt of the retainer and contract (contract must have the Client's signature) within fourteen days after the date that the Disc-Jockey signs below.   <br /><br />The Client agrees to pay a $25.00 service charged for all returned checks, plus any bank service charges incurred by the Disc-Jockey.  <br /><br /><strong>Facility Requirements</strong><br />The Client agrees to furnish a facility that completely covers the Disc-Jockey's equipment from direct sunlight and rain.  <br /><br />The Client further agrees to provide sufficient electrical power within fifty feet of the location where the Disc-Jockey's equipment is set up, and provide at least one six foot table for our use.  <br /><br />The Client agrees to provide specific directions to the event location, and access for the disc jockey's set-up at least one full hour prior to the above stated contracted time.<br /><br /><strong>Overtime</strong><br />The Client may request that the Disc-Jockey play longer than the time frame listed above provided that:.  <br />a. The Disc-Jockey has no other obligations and the Client is willing to pay current overtime rates.  <br />b. The Client is fully aware that availability of the Disc-Jockey to play over cannot be guaranteed.  <br /><br /><strong>Requests</strong><br />The Disc-Jockey will make every effort to play all requests but cannot be held responsible if specific selections are not available.  <br /><br />Disc Jockey Liabilities<br />This agreement cannot be terminated by any of the parties hereto, but is subject to proven detention by sickness, accidents, equipment malfunction or acts of God beyond the control of the Disc-Jockey.  <br /><br />In the unlikely event that the Disc-Jockey is unable to appear, the Disc-Jockey will make every effort to find a qualified substitute replacement.  <br /><br />In the unlikely event that a replacement cannot be found, the Disc-Jockey will make a full refund of any retainer paid by the Client, however, the Client agrees that the refund will be the full extent of damages he or she is entitled to and no further damages may be sought against the Disc-Jockey.<br /><br />In the unlikely event that the Disc-Jockey is delayed and the event does not start on time, or time is lost during the event due to equipment malfunction, the Disc-Jockey will refund the portion of fees paid prorated to the time lost.  <br /><br />This is the extent of the Disc-Jockey's liabilities.<br /> <br />This Contract contains all of the terms and conditions agreed upon by the Client and the Company, and no other agreements, oral or otherwise regarding the subject matter of this contract or performance for the event stated on this contract, shall be deemed to exist.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<hr />
<table border="0" width="100%">
<tbody>
<tr>
<td width="300">Client Signature</td>
<td>Date</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td width="300"><img src="images/signature.gif" alt="" width="214" height="38" /></td>
<td valign="bottom"><?=date("m/d/Y")?></td>
</tr>
<tr>
<td colspan="2">
<hr />
</td>
</tr>
<tr>
<td width="300">XXXXXXX &amp; XXXXX XXXXXXXXX XXXX XXXXXXX XXXXXXXX<br />XXXX XXXXXXXXXXXX XXX<br />XXXXXXXXXX, XX XXXXX</td>
<td valign="top">Date</td>
</tr>
</tbody>
</table>
<?require("contract_footer.php")?>
</body>
</html>

Open in new window

PHP

Avatar of undefined
Last Comment
wcotech

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ionut A. Tudor

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
wcotech

ASKER
I think that did it.  Thank you sir!
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes