Hi,
I don't know if you are aware of it or not, but you are using two functions that are deprecated in the TYPO3 v8.