PHP Warnings in max.php

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.

Hello @geekgoddessx,

Thanks for writing to us.

I checked on my localhost installations, and I can not see any error on my end. Please ensure you have installed the latest version of the Pro theme and WordPress. We need to check your settings. I would request please share the admin login details meanwhile I would suggest you troubleshoot a few of the common issues before we investigate your settings. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password

You can find the Secure Note button at the bottom of your posts

Thanks