deliciousbrains / wp-offload-ses-lite

WP Offload SES Lite sends all outgoing WordPress emails through Amazon Simple Email Service (SES) instead of the local wp_mail() function.
https://wordpress.org/plugins/wp-ses/
13 stars 11 forks source link

WP Cron does not appear to be working correctly #19

Closed skipton-io closed 3 years ago

skipton-io commented 3 years ago

For one of my sites I am continually seeing an error notice at the top of the page stating that the WP Cron does not appear to be working correctly.

For the setup I have set DISABLE_WP_CRON to true and I use AWS Lambda to hit the /wp-cron.php?doing_wp_cron url every 15 minutes.

When I look at the access logs I can see the entry: 18.130.127.133 - - [09/Oct/2020:17:55:29 +0100] "GET /wp-cron.php?doing_wp_cron HTTP/1.1" 200 2245 "-" "AWS Lambda"

Not sure if the following will help - but I've attached the diagnostic info.

diagnostic-log-20201009170735.txt

skipton-io commented 3 years ago

Further to this - I have just found the following PHP Warnings:


[09-Oct-2020 18:15:16 UTC] PHP Warning:  Illegal string offset 'path' in /var/www/html/wp-includes/functions.php on line 2309
Warning: Illegal string offset 'path' in /var/www/html/wp-includes/functions.php on line 2309
[09-Oct-2020 18:15:16 UTC] PHP Warning:  Illegal string offset 'error' in /var/www/html/wp-includes/functions.php on line 2328
Warning: Illegal string offset 'error' in /var/www/html/wp-includes/functions.php on line 2328
[09-Oct-2020 18:15:16 UTC] PHP Warning:  Illegal string offset 'basedir' in /var/www/html/wp-content/plugins/wp-ses/classes/Attachments.php on line 58
Warning: Illegal string offset 'basedir' in /var/www/html/wp-content/plugins/wp-ses/classes/Attachments.php on line 58
[09-Oct-2020 18:15:16 UTC] PHP Warning:  Illegal string offset 'baseurl' in /var/www/html/wp-content/plugins/wp-ses/classes/Attachments.php on line 59
Warning: Illegal string offset 'baseurl' in /var/www/html/wp-content/plugins/wp-ses/classes/Attachments.php on line 59
skipton-io commented 3 years ago

Just a quick update that I found a configuration error related to the uploads path.

This has now been resolved and the php warnings no longer appear.

The warning still appears, however I am unsure if it needs time to resolve itself.

skipton-io commented 3 years ago

It seems the issue was around the misconfiguration around the uploads path.

I stopped receiving the emails yesterday.