Title: Subscriptions doesn&#8217;t work for PHP 8.x
Last modified: October 31, 2022

---

# Subscriptions doesn’t work for PHP 8.x

 *  Resolved [rogerkullang](https://wordpress.org/support/users/rogerkullang/)
 * (@rogerkullang)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/)
 * 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](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16172935)
 * 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 3 years, 7 months ago by [vandestouwe](https://wordpress.org/support/users/vandestouwe/).
    -  This reply was modified 3 years, 7 months ago by [vandestouwe](https://wordpress.org/support/users/vandestouwe/).
 *  Thread Starter [rogerkullang](https://wordpress.org/support/users/rogerkullang/)
 * (@rogerkullang)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16173170)
 * Thanks [@vandestouwe](https://wordpress.org/support/users/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 3 years, 7 months ago by [rogerkullang](https://wordpress.org/support/users/rogerkullang/).
 *  Plugin Author [vandestouwe](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16173440)
 * 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](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16173614)
 * 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](https://wordpress.org/support/users/rogerkullang/)
 * (@rogerkullang)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16176366)
 * 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](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16176412)
 * 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](https://wordpress.org/support/users/rogerkullang/)
 * (@rogerkullang)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16176589)
 * 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](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16177528)
 * Is there any error STC related in the php error log file?
 *  Thread Starter [rogerkullang](https://wordpress.org/support/users/rogerkullang/)
 * (@rogerkullang)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16183029)
 * 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](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16183180)
 * 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](https://wordpress.org/support/users/rogerkullang/)
 * (@rogerkullang)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16186986)
 * 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](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16187042)
 * 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](https://wordpress.org/support/users/rogerkullang/)
 * (@rogerkullang)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16188561)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/subscribe-to-category_b0acac.svg)
 * [Subscribe to Category](https://wordpress.org/plugins/subscribe-to-category/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe-to-category/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe-to-category/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe-to-category/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe-to-category/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe-to-category/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [rogerkullang](https://wordpress.org/support/users/rogerkullang/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/subscriptions-doesnt-work-for-php-8-x/#post-16188561)
 * Status: resolved