Hi,
Sorry to keep you wait, I have fixed the first problem for you. And the second problem, it’s not caused by your theme, please kindly check in additional plugins on your site.
Or disable the notice in wp-config
find this line in your wp-config: define( ‘WP_DEBUG’, true ); and change true –> false