Been getting these warnings for at least since mid-April in max.php:
[01-May-2026 13:16:54 UTC] PHP Warning: Undefined array key “data” in /home/xxxx/public_html/wp-content/themes/pro/cornerstone/includes/integration/Max/max.php on line 47
[01-May-2026 13:16:54 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/xxxx/public_html/wp-content/themes/pro/cornerstone/includes/integration/Max/max.php on line 47
Note that I am manually removing Max showing up on the install by adding this to my functions.php file:
add_filter(‘cs_max_enabled’, ‘__return_false’);
Not sure if this is causing the warning or not … but wanted you to know it’s happening. Looks like that line and section have to do with adding Personify templates.
I’ve thought of temporarily wrapping that section with “if (array_key_exists(‘data’, $courses)) { }” to only have it run if the data key exists, but once again, wanted to pass the info on before making any changes.
