Title: Site crashed
Last modified: September 9, 2022

---

# Site crashed

 *  Resolved [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/)
 * Hello.
    I have been using this plugin for some time now with no issues. Just 
   updated it and crashed my site. Had to SFTP into the backend to delete the plugin
   to get my site back up. Everything is up-to-date on the site, except the WordPress
   version, 5.9.4. (We cannot update WordPress for a little while as we need to 
   update all our custom code first.) Thanks in advance.

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

 *  Plugin Author [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-15995906)
 * Hi [@wpfiend](https://wordpress.org/support/users/wpfiend/) ,
 * Most of the settings and functionality of the plugin is the same.
    The only reason
   that you may have issues are if you have an older version of the PHP (less than
   7.4).
 * I’ve checked the plugin on version 5.9.4 of WordPress – with no errors.
    Can 
   you please check your php – and check if it’s PHP 7.4 or higher ?
 * If your PHP version is lower than 7.4 i would suggest you use the older version
   of this plugin.
 * Please let me know.
    -  This reply was modified 3 years, 7 months ago by [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/).
 *  Thread Starter [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-15995928)
 * Appreciate the fast response.
 * Yes, the older PHP version could very well be the culprit.
 * Will you please send me a link to the previous version of your plugin, as it 
   was working fine on my site…??
 * Thanks in advance.
 *  Thread Starter [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-15996369)
 * Actually, I just checked, and we are using PHP version 7.4.15.
 * So, it must be something else within the plugin then.
 *  Plugin Author [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-15996575)
 * Hey again,
 * You can get the previous version of the plugin from the development tab.
    [https://wordpress.org/plugins/woo-preview-emails/#developers](https://wordpress.org/plugins/woo-preview-emails/#developers)
 * Also, i’m running the same configuration on a brand new / clean site without 
   any errors, can you please let me know what the error log is showing you ?
 *  Thread Starter [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-15996762)
 * Hi.
    I will take a look at the error logs and report back here. Also, I tried
   to get the previous version of the plugin from the Development tab but did not
   see a link to it. Can you please send me a specific link to the previous version…??
   Thanks.
 *  Plugin Author [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-15997227)
 * Appologies,
 * you can go to [https://wordpress.org/plugins/woo-preview-emails/advanced/](https://wordpress.org/plugins/woo-preview-emails/advanced/)
   
   and right at the end there will be an option to download it from there.
 *  Thread Starter [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-15998058)
 * Strangely enough, suddenly, the site is working with your latest version of the
   plugin, 2.1.0…!!!
 * No idea what is going on. But it at least works now.
 * Will let you know if things go weird on me again.
 * Thanks for your help and for your time.
    -  This reply was modified 3 years, 7 months ago by [wpfiend](https://wordpress.org/support/users/wpfiend/).
 *  [Michael Sumner](https://wordpress.org/support/users/xmic/)
 * (@xmic)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-16012844)
 * I received the same issue as well.
 * Fixed by doing the following. Apparently might have an issue with the Nullable
   Type declaration:
 * `In /application/web/app/plugins/woo-preview-emails/includes/Bootstrap.php`
 * replace `public static ?Bootstrap $instance = null;` with
 * `public static $instance;`
 * Kind regards,
    Michael
 *  Thread Starter [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-16013515)
 * Thank you [@xmic](https://wordpress.org/support/users/xmic/).
 * [@digamberpradhan](https://wordpress.org/support/users/digamberpradhan/) will
   you please confirm this for all future releases…??
 * Thanks.
 *  Plugin Author [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-16016224)
 * Hi Guys,
 * I’ve tried this out on many different PHP versions, with my development code
   
   along with the WP Repo version and I haven’t been able to reproduce this error
   as of yet.
 * Can you guys please let me know – when exactly this issue was triggered ?
    Soon
   as the plugin was updated ? Previewing an e-mail template ?
 *  Thread Starter [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-16016474)
 * Hi.
 * For me, it was as soon as the plugin was updated.
 *  [Michael Sumner](https://wordpress.org/support/users/xmic/)
 * (@xmic)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-16019725)
 * It is the same for me as soon as the plugin has been updated then it causes a
   critical error. If it helps I was on Bedrock on PHP 7.4.30 WP 6.0.2
 *  Plugin Author [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * (@digamberpradhan)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-16022382)
 * With PHP 7.4 and above it should in theory not cause any problems if
    the variable
   is defined as either null or instance of that class.
 * [@xmic](https://wordpress.org/support/users/xmic/) can you please try uninstalling
   and re-installing the plugin to test it out again. I have tried downgrading –
   and the updating the plugin many times on version PHP 7.4 and i’m not able to
   recreate the issue as of yet.

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

The topic ‘Site crashed’ is closed to new replies.

 * ![](https://ps.w.org/woo-preview-emails/assets/icon-256x256.png?rev=3019089)
 * [Preview E-mails for WooCommerce](https://wordpress.org/plugins/woo-preview-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-preview-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-preview-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-preview-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-preview-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-preview-emails/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 15 replies
 * 3 participants
 * Last reply from: [digamberpradhan](https://wordpress.org/support/users/digamberpradhan/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-47/#post-16022382)
 * Status: resolved