If you are in fact a tenant, not just an occupant, contact the new owner with proof that you are a tenant and thus entitled to the protections offered by Illinois law.
If you are not a tenant, you are not entitled to the protection of a law that protects only tenants after foreclosure.
If you are trying to oppose the eviction, you will need to answer the eviction lawsuit and properly raise your defenses to eviction.
The judge cannot correct improper notice. If you were given 30 days notice as an occupant, and are entitled to 90 days notice as a tenant, then the new owner will have to start over by giving proper notice.

