I’m using the Statamic site generator package and have deployed a site successfully to Netlify using the current settings. However on this project I get an error “PHP version 7.4 does not exist”. Output is:
10:51:22 AM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1 10:51:22 AM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list 10:51:22 AM: ruby-2.7.1 - #generating default wrappers 10:51:23 AM: ....... 10:51:23 AM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1 10:51:23 AM: Using ruby version 2.7.1 10:51:24 AM: PHP version 7.4 does not exist 10:51:24 AM: Error running command: Build script returned non-zero exit code: 1 10:51:24 AM: Failing build: Failed to build site 10:51:24 AM: failed during stage 'building site': Build script returned non-zero exit code: 1 10:51:24 AM: Finished processing build request in 20.566683673s
I’m following the steps for the Statamic Static Site Generator and have an environment variable set through the Netlify dashboard for PHP_VERSION = 7.4. I have another Statamic site running fine on Netlify but with this site I get the PHP version does not exist error. Does anyone know why this is happening? I’m using the Cool Writings starter kit.