-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Custom option image upload fails check-out with PayPal #6384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If I apply my fix and click the image link at order info page, the option data will not be found in Magento\Sales\Controller\Download controller "DownloadCustomOption" function; |
I found that my fix work for simple product, but for configurable product the issue remains. |
Hi @ddznelad We've created MAGETWO-58851 internal ticket regarding this issue. |
Does anyone have an update/fix for this issue? |
Added have same issue Solution : vendor\magento\module-catalog\Model\Product\Option\Type\File.php line no 451 Before
add below 2 lines
|
@ddznelad, thank you for your report. |
[Arrows] MC-33288: [2.4][MSI][MFTF] StorefrontLoggedInCustomerCreateOrderAllOptionQuantityConfigurableProductCustomStockTest fails because of bad design
Getting exception: Call to a member function isFile() on null in .../vendor/magento/module-catalog/Model/Product/Option/Type/File.php on line 452. If use payment methods other than PayPal it does not fail - copyQuoteToOrder function is used when use PayPal. In this function _rootDirectory variable never initialized anywhere and is therefore null. If I modify code and initialize the variable correctly using
$filesystem->getDirectoryWrite(DirectoryList::MEDIA) it fixes the issue partially - the order will be created and link is generated like site.com/sales/download/downloadCustomOption/id/19/key/e45e0dc5bb08417063e6/?SID=xxxxxxxxxxx, but if I click the link "page not found" pops-up
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: