This error, "PHP Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP)" indicated a constant must be define first. This happen when you use PHP version >= 7.2.
To solve this issue you can define the constant or just downgrade to PHP 7.1. (WW)