[2017-10-05 14:37:15] main.CRITICAL: Exception: Notice: Undefined index: path in /var/www/vhosts/Rosita/public/vendor/magento/module-customer/Model/FileUploader.php on line 113 in /var/www/vhosts/Rosita/public/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
In vendor/magento/module-customer/Model/FileProcessor.php line 199 there is unset($result['path']);
This is required by the upload function in vendor/magento/module-customer/Model/FileUploader.php
commenting out line 199 results in the file appearing in the customer form, however clicking the link results in a 404 error
This issue seems to be introduced with this line:
https://github.com/magento/magento2/commit/09d662e2a163049d7d09c8e23e60a547a4b0400a#diff-cd95dedce531a403edab860781af87aeR232
Hi @stevenlavine
How did you create the file upload attribute? Please share install script that add the attribute.
And please could you share a code, that introduce this attribute in to CMS (xml or/and phtml files)
Here is the UpgradeData.php The file attribute is defined on line 109.
@stevenlavine Thanks for the answer.
But for reproduce the issue i need know how do you introduce this attribute in to CMS.
Here is the extension code
Hi @stevenlavine
After add your module, the "customer file upload attribute" can't appear in customer information CMS.
http://prntscr.com/gw3c35
http://prntscr.com/gw3cpk
http://prntscr.com/gw3cxf
http://prntscr.com/gw3can
Please describe all steps to reproduce the issue
@stevenlavine we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.
These issues still exist on Magento 2.2.2, if I add customer attributes type "file" or "image", when I save customer information the system will throw an error:
_main.CRITICAL: Exception: Notice: Undefined index: path in vendor/magento/module-customer/Model/FileUploader.php on line 113_
There seems to be a mismatch on the versions this fix is claiming to be applied. The branch the fix was applied to is in 2.3-develop, however the latest comment from @okorshenko states it was fixed in 2.2.x?
Hi @stevenlavine. Thank you for your report.
The issue has been fixed in magento/magento2#13563 by @Mkennethsmith in 2.2-develop branch
Related commit(s):
The fix will be available with the upcoming 2.2.4 release.
I try with override file but get some issue like under as is any one know about how to solve please share it
main.CRITICAL: Notice: Undefined index: extension in /var/www/html/magentoextension/vendor/magento/framework/File/Uploader.php on line 595 {"exception":"[object] (Exception(code: 0): Notice: Undefined index: extension in /var/www/html/magentoextension/vendor/magento/framework/File/Uploader.php on line 595 at /var/www/html/magentoextension/vendor/magento/framework/App/ErrorHandler.php:61)"} []
i have fixed this issue. for this i need to use preference in di file and copy the code in our new file. for more discussion please join on skype avinash.garg1991
Most helpful comment
Hi @stevenlavine. Thank you for your report.
The issue has been fixed in magento/magento2#13563 by @Mkennethsmith in 2.2-develop branch
Related commit(s):
The fix will be available with the upcoming 2.2.4 release.