Preconditions and environment
- Magento 2.4.9
- Braintree module enabled
- Developer mode
Steps to reproduce
- Attempt to load checkout without static content fully generated (which is normal in dev mode)
Expected result
Checkout should load
Actual result
Crash due to missing image on 'getimagesizefromstring' in \PayPal\Braintree\Gateway\Config\PayPal\Config line 256.
Additional information
To elaborate, because developer mode is supposed to dynamically generate static assets as they are loaded, the images are not pregenerated.
This code attempts to directly load an image using the static content path which does not yet exist via the filesystem and crashes when '$imageData' is false.
This should use 'getSourceFile()' instead which uses the original image location in the module, which should always be availabe.
Release note
No response
Triage and priority
Preconditions and environment
Steps to reproduce
Expected result
Checkout should load
Actual result
Crash due to missing image on 'getimagesizefromstring' in
\PayPal\Braintree\Gateway\Config\PayPal\Configline 256.Additional information
To elaborate, because developer mode is supposed to dynamically generate static assets as they are loaded, the images are not pregenerated.
This code attempts to directly load an image using the static content path which does not yet exist via the filesystem and crashes when '$imageData' is false.
This should use 'getSourceFile()' instead which uses the original image location in the module, which should always be availabe.
Release note
No response
Triage and priority