WPIntell

Source evidence

Site crashed

Preview E-mails for WooCommerce · support · 2022-09-09T16:43:00+00:00

mixedsentiment
highseverity
0.95relevance
13replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 36 rows with source links

16.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
wpfiend resolved
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. Hi @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, 10 months ago by digamberpradhan . 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. Actually, I just checked, and we are using PHP version 7.4.15. So, it must be something else within the plugin then. Hey again, You can get the previous version of the plugin from the development tab. 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 ? 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. Appologies, you can go to https://wordpress.org/plugins/woo-preview-emails/advanced/ and right at the end there will be an option to download it from there. 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, 10 months ago by wpfiend . 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 Thank you @xmic . @digamberpradhan will you please confirm this for all future releases…?? Thanks. 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 ? Hi. For me, it was as soon as the plugin was updated. 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 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 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.

Comments

13 shown
digamberpradhan 2022-09-09T18:12:00+00:00

Hi @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, 10 months ago by digamberpradhan .

wpfiend 2022-09-09T18:17:00+00:00

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.

wpfiend 2022-09-09T22:16:00+00:00

Actually, I just checked, and we are using PHP version 7.4.15. So, it must be something else within the plugin then.

digamberpradhan 2022-09-10T02:08:00+00:00

Hey again, You can get the previous version of the plugin from the development tab. 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 ?

wpfiend 2022-09-10T06:04:00+00:00

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.

digamberpradhan 2022-09-10T11:25:00+00:00

Appologies, you can go to https://wordpress.org/plugins/woo-preview-emails/advanced/ and right at the end there will be an option to download it from there.

wpfiend 2022-09-10T22:36:00+00:00

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, 10 months ago by wpfiend .

Michael Sumner 2022-09-15T12:13:00+00:00

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

wpfiend 2022-09-15T14:45:00+00:00

Thank you @xmic . @digamberpradhan will you please confirm this for all future releases…?? Thanks.

digamberpradhan 2022-09-16T10:15:00+00:00

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 ?

wpfiend 2022-09-16T11:32:00+00:00

Hi. For me, it was as soon as the plugin was updated.

Michael Sumner 2022-09-17T18:17:00+00:00

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

digamberpradhan 2022-09-19T08:24:00+00:00

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 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.