• Resolved wpfiend

    (@wpfiend)


    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

    (@digamberpradhan)

    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.

    Thread Starter wpfiend

    (@wpfiend)

    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

    (@wpfiend)

    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

    (@digamberpradhan)

    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 ?

    Thread Starter wpfiend

    (@wpfiend)

    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

    (@digamberpradhan)

    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.

    Thread Starter wpfiend

    (@wpfiend)

    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

    Thread Starter wpfiend

    (@wpfiend)

    Thank you @xmic.

    @digamberpradhan will you please confirm this for all future releases…??

    Thanks.

    Plugin Author digamberpradhan

    (@digamberpradhan)

    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

    (@wpfiend)

    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

    Plugin Author digamberpradhan

    (@digamberpradhan)

    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.

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

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