My LearnDash certificate is blank or wrong
Build and check the certificate against a real test student who has completed the course, because the editor does not show what the PDF will look like. A wrong layout is usually a background image that does not match the page size. A blank PDF is usually a PHP warning, an image the server cannot fetch, or a memory limit.
The problem
A student finished the course, clicked for the certificate, and got a blank page, a cropped background, or a name sitting off the edge. Or you have adjusted the certificate for two days and every preview looks different.
When the course carries continuing-education credit, a broken certificate is not cosmetic. The student needs it for a license.
How to fix it
- Make a test student, enroll them in the course, and mark it complete from their profile screen in wp-admin. Open the certificate from the course page while logged in as that student. The editor preview does not use real data.
- Export your background at the exact page size and orientation the certificate settings use, such as landscape Letter or A4. Otherwise it is cropped or stretched.
- Keep the text simple. The name, course title and date come from shortcodes such as
[usermeta field="first_name"]and[courseinfo show="completed_on" format="F j, Y"]. The PDF engine handles plain HTML and a short list of fonts. Decorative fonts, columns and absolute positioning fall apart. Move things with paragraphs and spacing, generate, adjust, repeat. - Check where the certificate is attached: a course, a quiz or a group. If it is a quiz, the student must pass at the score you set, and an ungraded essay question holds it back. Take the quiz as the test student.
- For a blank PDF, turn on WordPress debug logging, open the certificate once, and read the newest log lines. The cause is usually a PHP warning, an image the server cannot fetch, or a memory limit.
- For continuing-education certificates, make sure hours, license numbers and dates come from fields the student filled in, not text typed into the template.
When to stop
That gets a simple certificate right in an afternoon. Stop when the log shows errors you cannot place, when the certificate pulls hours or license numbers from custom fields, or when students who passed still cannot see it.
Or I can do it for you
You do not have to wrestle with this yourself. A certificate fix is a one-off I quote in writing, or it is covered for clients on a monthly maintenance plan. See LearnDash setup, configuration and repair, or get a quote.