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