i am in the midst of fixing our website (which is built using Drupal version 7.67) that shows many errors after the PHP version is updated into PHP 8.0.
One of the errors that i am stuck now is this particular error
Exception: Serialization of 'Closure' is not allowed in serialize();
After i did some traces, it appears that this is happening when drupal_get_form or drupal_build_form is getting called.
Does anyone knows where should I look in the code to find out why is this happening?