I can get rid of the error message in the first screenshot of the original post (reattached here to be clear which error)
I just added (array) to the php in line 610 like this:
Original code:
foreach( $templates as $id ► $template ) {
//…
}
edited code:
foreach((array) $templates as $id ► $template ) {
//…
}
Not sure if this is the right thing to do, but it removes that error in the settings screen. The other problems, no dropdown menu in the archive page and the broken download button are still present…