How to solve this error_log

Those are only cosmetic errors. You can hide them by changing your error logging settings. See for example Error from 2.4.8 to 3.0.2 - #2 by ajnyga