We're running Civicrm 4.7.11, Drupal 7.56 on Cpanel.
I'm running cron via a custom php script that calls the url as per the civicrm cookbook.
All the jobs seem to get called except "Update Membership Statuses and Send Renewal Reminders" which fails with:
PHP Fatal error: Call to a member function delete() on null in /home/sitename/public_html/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php on line 659
Same error happens when running from drush, and when trying to execute manually via admin page I get a WSOD 500 error, which i guess is the same problem.
The issue seems to have occurred when moving to a new cpanel server which is using easyapache PHP instead of Cloudlinux.
Any ideas? PHP error? Civicrm? Drupal?
I've been holding off updating Civicrm due to a Leaflet maps issue with drupal.