# Blank thank you page, no emails sent

**URL:** <https://forum.modmore.com/t/blank-thank-you-page-no-emails-sent/2129>\
**Category:** Commerce\
**Created:** [September 15, 2020, 2:18pm UTC](https://forum.modmore.com/t/blank-thank-you-page-no-emails-sent/2129 "2020-09-15T14:18:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlastairFallon](https://forum.modmore.com/user_avatar/forum.modmore.com/alastairfallon/32/515_2.png) [@AlastairFallon](https://forum.modmore.com/u/AlastairFallon)\
**Post date:** [September 15, 2020, 2:18pm UTC](https://forum.modmore.com/t/blank-thank-you-page-no-emails-sent/2129/1 "2020-09-15T14:18:24Z")

</div>

I recently had a problem with FormIt whereby the formit plugin with the ! in it caused the page with the form on it to be blank, and I am not sure if this is related. Because of the issue I am testing the order process (on the live site) in commerce and everything works up to the point it comes back from the payment processor (in this case PayPal). It goes to the thank you page url but the page is blank until I refresh. No order email is received by the merchant or the customer either yet emails are working and FormIt (after fixing the issue) is now working. Are the blank page and emails not sending related or could there be another reason order emails aren’t being sent. Thanks

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [September 15, 2020, 2:32pm UTC](https://forum.modmore.com/t/blank-thank-you-page-no-emails-sent/2129/2 "2020-09-15T14:32:08Z")

</div>

I’d start by checking your servers’ (php) error log, it sounds like a fatal error. I honestly can’t say if there’s any relation to your formit issue or the email sending without seeing that.

---

<div class="post-metadata">

**Author:** ![AlastairFallon](https://forum.modmore.com/user_avatar/forum.modmore.com/alastairfallon/32/515_2.png) [@AlastairFallon](https://forum.modmore.com/u/AlastairFallon)\
**Post date:** [September 15, 2020, 3:07pm UTC](https://forum.modmore.com/t/blank-thank-you-page-no-emails-sent/2129/3 "2020-09-15T15:07:54Z")

</div>

Hi Mark, this is what I am getting when I turn errors on. I am using PHP 7.3

**Deprecated** : \_\_autoload() is deprecated, use spl\_autoload\_register() instead in **/home/ministryofcraft/public\_html/core/model/modx/mail/phpmailer/PHPMailerAutoload.php** on line **45**

**Fatal error** : Uncaught Error: Class ‘modmore\Commerce\_mPDFWriter\Writer’ not found in /home/ministryofcraft/public\_html/core/components/commerce\_mpdfwriter/src/Modules/mPDFWriter.php:44 Stack trace: #0 /home/ministryofcraft/public\_html/core/components/commerce/vendor/symfony/event-dispatcher/EventDispatcher.php(184): modmore\Commerce\_mPDFWriter\Modules\mPDFWriter-\>getPDFWriter(Object(modmore\Commerce\Events\PDFWriter), ‘core.pdf.get\_wr…’, Object(Symfony\Component\EventDispatcher\EventDispatcher)) #1 /home/ministryofcraft/public\_html/core/components/commerce/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher-\>doDispatch(Array, ‘core.pdf.get\_wr…’, Object(modmore\Commerce\Events\PDFWriter)) #2 /home/ministryofcraft/public\_html/core/components/commerce/model/commerce/commerce.class.php(775): Symfony\Component\EventDispatcher\EventDispatcher-\>dispatch(‘core.pdf.get\_wr…’, Object(modmore\Commerce\Events\PDFWriter)) #3 /home/ministryofcraft/public\_html/core/components/c in **/home/ministryofcraft/public\_html/core/components/commerce\_mpdfwriter/src/Modules/mPDFWriter.php** on line **44**

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [September 15, 2020, 4:08pm UTC](https://forum.modmore.com/t/blank-thank-you-page-no-emails-sent/2129/4 "2020-09-15T16:08:22Z")

</div>

Can you try removing and re-installing the mpdfwriter extra?

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [September 15, 2020, 11:20pm UTC](https://forum.modmore.com/t/blank-thank-you-page-no-emails-sent/2129/5 "2020-09-15T23:20:31Z")

</div>

If that doesn’t work and you have composer around, try running this command in the `core/components/commerce_mpdfwriter/` directory:

```auto
composer dumpautoload -o

```

That will optimize the autoloader which seems to resolve issues with classes not being found due to some weird conflict.

---

<div class="post-metadata">

**Author:** ![AlastairFallon](https://forum.modmore.com/user_avatar/forum.modmore.com/alastairfallon/32/515_2.png) [@AlastairFallon](https://forum.modmore.com/u/AlastairFallon)\
**Post date:** [September 16, 2020, 9:03am UTC](https://forum.modmore.com/t/blank-thank-you-page-no-emails-sent/2129/6 "2020-09-16T09:03:33Z")

</div>

Removing the package, purging old packages and then reinstalling seems to have solved the issue. Thanks
