If you upgrade a site from one version of Drupal to another, you must take specific steps to make your theme compatible with the new version.

Always test the modifications on a separate development server before moving to a production site.