MyBB Community Forums

Full Version: Notification E-Mail for new Posts / PMs not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ok, what could then be the reason? I now only have the single mail send task, which I recreated. It just isn't being executed.

I just looked at the php error log. It contains several (but not every minute) entries like

[28-Jun-2022 20:06:57 Europe/Berlin] PHP Warning:  Trying to access array offset on value of type null in /homepages/u74637/kaikki.de/inc/functions_task.php on line 115
[28-Jun-2022 20:07:02 Europe/Berlin] PHP Warning:  Trying to access array offset on value of type null in /homepages/u74637/kaikki.de/inc/functions_task.php on line 115
[28-Jun-2022 20:07:02 Europe/Berlin] PHP Warning:  Trying to access array offset on value of type null in /homepages/u74637/kaikki.de/inc/functions_task.php on line 115
[28-Jun-2022 20:17:21 Europe/Berlin] PHP Warning:  Trying to access array offset on value of type null in /homepages/u74637/kaikki.de/inc/functions_task.php on line 115


It's just a warning, but maybe that's related?
Or do you have any other idea, what I could check/try?
Error Points To:
https://github.com/mybb/mybb/blob/6ab629...k.php#L115



Out of curiosity, what version of PHP are you running?
I'm using PHP version 8.1.7.
MyBB requires you use a PHP version that is greater than or equal to 5.2 or less that 8.0. This could be your issue here.

https://docs.mybb.com/1.8/install/requirements/

I’ve had no issues running 7.3 or 7.4.

I would start by downgrading your PHP version and then see if that solves the issue.
I think I found the issue. It's not (directly) related to the main code, but the Google SEO plugin caused it.

The error I listed from the php error log says that in line 115 of functions_task.php the $task is null. I added some debug information and found that while the $task is null, the $message actually contains helpful information. It contained two errors caused by url.php from the plugin. Due to these errors the actual run_task was simply never executed and thus no task was run.

After I fixed the errors in the url.php file (or did some work-arounds) the run_task gets executed again and all my tasks run. :-)

For further information on what I did to fix the errors, please see: https://community.mybb.com/thread-202483...pid1378278

Thanks for all your help and support. Smile
Pages: 1 2