Increased version required
Added new customcertelement class required in 2.6 to avoid debugging message
Created a dummy variable to avoid being redirected back to the upgrade settings page
Do not set the courseid variable for the cm_info object

Doing this causes a debugging message to display in 2.6.