We are using CiviCRM 4.6 on a live site we built with WordPress 4.6.1. We ran into the problem explained below. Any help is much appreciated.
I have set up a scheduled reminder to send reminder emails to CiviCRM members 1 month before their membership expires. It works on my local VM and also on WPEngine's staging site. However on the live site on the same WPEngine environment the sent email is empty, no subject line and no body content.
This happens with both SMTP and "Redirect to Database" options in "Settings - Outbound Mail". CiviCRM's SMTP settings are correct and "Save and Send Test Email" works as expected. When redirecting to database, body field is NULL.
I get the following 8 PHP warnings every time a scheduled reminder email goes out. Smarty seems trying to include some missing php files with random names which change every time. Web server has full permissions on /nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US. I even renamed this folder and it was re-created. So file permissions on that folder should be OK.
Disabling Smarty in civicrm.settings.php or clearing/disabling cache did not help.
Does anyone have any idea what could be causing this weird problem?
Thanks
[Thu Oct 27 22:07:51.221907 2016] [:error] [pid 1516] [client 208.124.188.134:42618] PHP Warning: include(/nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US//%%B8/B82/B82902AF%%14776060711886644419.php): failed to open stream: No such file or directory in /nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1264
[Thu Oct 27 22:07:51.222042 2016] [:error] [pid 1516] [client 208.124.188.134:42618] PHP Warning: include(): Failed opening '/nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US//%%B8/B82/B82902AF%%14776060711886644419.php' for inclusion (include_path='/nas/content/live/mysite/wp-content/plugins/wordpress-seo/vendor/yoast/api-libs/google:/nas/content/live/mysite/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/packages/:/nas/content/live/mysite/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/:.:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:.:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1264
[Thu Oct 27 22:07:51.223342 2016] [:error] [pid 1516] [client 208.124.188.134:42618] PHP Warning: include(/nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US//%%E1/E1B/E1B25959%%147760607183913258.php): failed to open stream: No such file or directory in /nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1264
[Thu Oct 27 22:07:51.223430 2016] [:error] [pid 1516] [client 208.124.188.134:42618] PHP Warning: include(): Failed opening '/nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US//%%E1/E1B/E1B25959%%147760607183913258.php' for inclusion (include_path='/nas/content/live/mysite/wp-content/plugins/wordpress-seo/vendor/yoast/api-libs/google:/nas/content/live/mysite/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/packages/:/nas/content/live/mysite/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/:.:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:.:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1264
[Thu Oct 27 22:07:51.224501 2016] [:error] [pid 1516] [client 208.124.188.134:42618] PHP Warning: include(/nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US//%%91/910/9105E2BB%%1477606071414776177.php): failed to open stream: No such file or directory in /nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1264
[Thu Oct 27 22:07:51.224611 2016] [:error] [pid 1516] [client 208.124.188.134:42618] PHP Warning: include(): Failed opening '/nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US//%%91/910/9105E2BB%%1477606071414776177.php' for inclusion (include_path='/nas/content/live/mysite/wp-content/plugins/wordpress-seo/vendor/yoast/api-libs/google:/nas/content/live/mysite/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/packages/:/nas/content/live/mysite/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/:.:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:.:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1264
[Thu Oct 27 22:07:51.225795 2016] [:error] [pid 1516] [client 208.124.188.134:42618] PHP Warning: include(/nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US//%%CB/CBC/CBC1541F%%14776060711283623884.php): failed to open stream: No such file or directory in /nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1264
[Thu Oct 27 22:07:51.225911 2016] [:error] [pid 1516] [client 208.124.188.134:42618] PHP Warning: include(): Failed opening '/nas/content/live/mysite/wp-content/plugins/files/civicrm/templates_c/en_US//%%CB/CBC/CBC1541F%%14776060711283623884.php' for inclusion (include_path='/nas/content/live/mysite/wp-content/plugins/wordpress-seo/vendor/yoast/api-libs/google:/nas/content/live/mysite/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/packages/:/nas/content/live/mysite/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/:.:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/vendor/tecnickcom:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:.:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/:/nas/content/live/mysite/wp-content/plugins/civicrm/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /nas/content/live/mysite/wp-content/plugins/civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1264