get_the_ID() is working on my local development but not on staging server

The problem is this part: wp_get_attachment_image_src($image, ‘large’)[0] In old PHP versions like 5.3 and below, you cannot reference an entry ([0]) from the returned array of a function. The problem is that WP Engine is still on PHP 5.3, which reached end of life recently and doesn’t get security updates anymore. For the history see … Read more