Sensei Certificates Fail after WP Migration

So I have been struggling with a PHP error upon trying to preview and veiw the certificates senei generates and just found the fix. make a backup First off, I recommend exporting the certs via the admin panel. The Sensei certificate PHP fail after migration fix...