I have configured Redis and Magento. I am getting this error
Source class "\Magento\Payment\Model\Method\Virtual" for "Magento\Payment\Model\Method\VirtualLogger" generation does not exist. This only happens when I try to use Redis. But when I switch back to the original env.php file without Redis the error is not there. How do I fix this error?
The error doesn't seem to point to a Redis issue.
Based on the Github issue below it may be caused by an extension (for example modules by WeltPixel are confirmed to be causing this behavior):-