Thanks all! I had 2 of these warning messages. First one solved by updating PHP Version to 7+. Second one solved by updating PHP.ini (most shared hosting let’s you do that) – memory_limit = 512M.
Something to keep in mind, if you turn off debugging mode in your wp-config.php you won’t see these warnings.