It doesn't look like the code has been updated to mySQLi. It looks like just the connection was updated.... If you open the server behavior and re-apply it then the code should be updated to MySQLi. The entire chunk of code should be updated. This is MySQL standard code that just has the connection updated to MySQLi, so that is why it has an error.