• Resolved rogerkullang

    (@rogerkullang)


    My web-hotell will soon switch over to PHP 8.0 (from 7.4) and I have discovered that the plug-in will not send subscription emails with a PHP version greater than 8.0 (tested with both 8.0 and 8.1).

    When I manually trigger sending e-mails to subscribers I get an error message, so it should be pretty easy to reproduce.

    Since my users are heavily relying on the subscription feature, it would be good if this could be solved asap.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author vandestouwe

    (@vandestouwe)

    STC runs and is tested on version 8.08 of PHP
    As written in the manual I advise not to the sendmail internal function but make use of and external sendmail provider by making use of a sendmail plugin. I will however upgrade my xampp test environment to test with the latest PHP

    Kind Regards, Sidney

    • This reply was modified 2 years, 2 months ago by vandestouwe.
    • This reply was modified 2 years, 2 months ago by vandestouwe.
    Thread Starter rogerkullang

    (@rogerkullang)

    Thanks @vandestouwe for replying on my issue. I installed the “WP Mail Log” plugin as advised in the user manual. Is that what you referred to as a sendmail plugin or am I missing another plugin?

    I tried to upgrade to PHP 8.0 again, and when doing force_run got “Code: undentified Exception: undentified”

    When checking the “WP Mail Log” there is nothing in the log so apparently an exception is triggered before any mail is sent out. Any empty $_GET() statements that aren’t handled?

    • This reply was modified 2 years, 2 months ago by rogerkullang.
    Plugin Author vandestouwe

    (@vandestouwe)

    Now also tested with PHP version 8.1.10 nut as sted before It is advised to you a sendmail provider to takeover the PHP sendmailfunction

    Plugin Author vandestouwe

    (@vandestouwe)

    No you need to add a plugin that takeover the wp_mail function from PHP.
    Use the one I suggested in the manual

    Thread Starter rogerkullang

    (@rogerkullang)

    Many thanks for trying to help me with my website issues!

    The manual doesn’t actually mention anything about the wp_mail SMTP function. I read the full 33 pages and not in a single sentence is this mentioned. I did however see a snapshot of how you have configured your add-ins on page 9 and was able to find WP Mail SMTP and configure it. You might want to update the manual on this topic OR I am reading the wrong version? 2.6.12 is the latest on the addin page.

    Unfortunately, even with WP Mail SMTP properly setup, I still get the error as mentioned before (the exception from force_run). I also cannot see any mails going out from the mail log (which works for the WP Mail SMTP test e-mails). Do I need to re-initialize the “Subscribe to category” WP-addin?

    Plugin Author vandestouwe

    (@vandestouwe)

    Can you please check if the mails go out based on the cron timer. So do not press the send now button!

    Thread Starter rogerkullang

    (@rogerkullang)

    Now I tried that, and no mails was sent and nothing is in the log. Is there any other log in that the add-in is generating that you would like to take a look at?

    Plugin Author vandestouwe

    (@vandestouwe)

    Is there any error STC related in the php error log file?

    Thread Starter rogerkullang

    (@rogerkullang)

    Unfortunately, I can’t access that log file since I run my webpage on a hosted service (One.com)

    I upgraded to the latest version of the plug-in but the problem sadly persist…

    Plugin Author vandestouwe

    (@vandestouwe)

    That should still give you access to the php log file. Are you sure your provider supports php 8. It looks to me that they dont.

    Thread Starter rogerkullang

    (@rogerkullang)

    I am certain that I am using the correct version of PHP since I can control which version I am using from a control panel that one.com has implemented. I also check which version the site is using with the phpinfo() call. They support 8.0.25 and I have also tried 8.1.12 with the same result.

    I can see that the error log path is not set to a value and I am checking with my host provider to see if it is possible to retrieve the log somehow.

    Plugin Author vandestouwe

    (@vandestouwe)

    Please load version 2.7.3 I do not think it will solve yur problem but then you are least up to speed

    Thread Starter rogerkullang

    (@rogerkullang)

    Success! It tried with disabling the plug-in and re-enabled it again. Now the timer function work again with PHP 8.1.12 (and version 2.7.3 of the plug-in). Haven’t tried the manual trigger function, but the problem from my point of view is resolved.

    Don’t know why I didn’t think of that, maybe something that could be added to a troubleshooting section in the manual (unless it isn’t there already).

    Many thanks for your assistance in this thread!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Subscriptions doesn’t work for PHP 8.x’ is closed to new replies.