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
Prestashop 8 CSV Import Load Saved configuration not working #32416
Comments
I solved in this way:
|
The Delete button doesn't work too. It seems that JQuery does'nt want an empty response from ajax call. So the solution is to substitute |
Hello @pavonic Could you please provide a screen record 🙏 and did you encounter this issue with older version? Thanks! |
Hello @sanjaydungarwal Since we had no news from you for more than 20 days, I'll close this ticket to avoid cluttering up the backlog. Thanks! |
Two fixes posted from panovic are legit. |
Yeah it doesn't work @hibatallahAouadni, try saving column configuration and loading it, doesn't work. |
pshop v8.0.4 This does NOT work. with or without the changes described above. The SAVE and DELETE work and can be observed changing the database table. But the LOAD function does nothing! |
I'm having the same problem on 8.1.0. I can save a configuration but can't load it. |
Ping @PrestaShop/qa-functional please reopen this, it's a real issue |
After some searching I think this is a duplicate of this issue: |
Only partially. There is only problem with import.js at issue 32798. But at this issue 32416, there is necessary to make PHP changes as well. Check pavonic reaction, there is fix for JS file and PHP as well. Fixing only JS side is only partially solution and not fixing all isues. You have to edit PHP as well. We tested this two fixes. Working well. |
Thanks! I made the PHP change and IT WORKS!!! For reference: I fixed it making only one change to import.js and the change to the PHP file. I didn't do the "async: true" part, mostly because I didn't know what to change and where. But it seems to work without it. |
@hibatallahAouadni |
But users should NOT have to edit or "hack" files in order for something that is SUPPOSED to work as a normal function! Developers need to fix it properly and provide corrected files in and update or a patch. There is way too much problem solving being done by users hacking core files. That is not proper support. |
Hi @ShaiMagal if you find that this issue is critical for you, and it's important to have it fixed soon, then you can invest into having it done 😉 You can hire a developer to fix it, or if you are a developer yourself, you can try doing it on your own 💪 The most important thing is to share that fix (that was already done, great 👍 ) and even better submit a Pull Request -- that's what the open source spirit is all about. @ecopets The PrestaShop open-source project can be freely downloaded and used by anyone, but it is provided “as is”, with no warranty or dedicated support. The software moves forward thanks to everybody's effort, and your help is needed too 👍 . So when you say "Developers need to fix it properly and provide corrected files in and update or a patch." I say: do you think you can help fixing this problem properly? 😉 |
I think the only issue here is that the bug is closed and we can't reopen it, it's not a problem with how open source works. @hibatallahAouadni said:
So maybe a new ticket should be open? |
Yes indeed 😉 this ticket was closed as the QA analyst who attempted to reproduce it was not able to observe the problem. If a QA analyst fails to reproduce the problem, it does not mean there's no problem, it means it does not affect everyone so then we need to find what are the exact circumstances that make the bug happen. Sometimes the bug only appears for some PHP version or some MySQL version, sometimes you need a specific usecase like "3 products, with combinations, B2B mode is enabled and the shop accepts 3 languages and currencies" to make it observable. If you think you can find the exact circumstances that make the bug happen, and allow anyone to reproduce it, then please submit a new ticket 👍 and provide the circumstances description in the ticket . These exact circumstances are very important as they allow anybody involved in the process to observe the bug and understand if the fix is valid.
This fix seems to work in your shop, which is already a great step, but does it pass CI? Does it meets the project quality standards? Until it does, it won't be merged. A little more work is yet to do. For example the Symfony open source project will refuse a PR which does not add a unit test to prove the bug is gone, even if the suggested code changes are valid. This is because the software development industry usually considers untested code is broken code. I'm not so strict about code 😅 but I think you get the idea: the needed change is a piece of the work to be done, but incomplete. If you're willing to help 😉 go ahead: submit a PR with the suggested code changes. Reviewers will guide you in the process if they believe something is missing to merge it. I think you're waiting for me to pick up the code changes and do the PR myself but unfortunately I already am shouldering way too many topics, I can't be everywhere. So here's your chance to step forward 😉 |
Hi @matks . The proposed fix is literally adding 3 characters in a php file and three words in jquery, not a lot of chances for it not to pass QC. ;) Out of curiosity - does this feature work for you? Because as far as I can see, it's broken for everyone since 8.0.4 to at least 8.1.0. It takes all of 30 seconds to test it. It would be much appreciated, it's not the same if the bug is general or if it only affects some users. The analyst that closed the ticket simply asked for verification, didn't get it on time and closed the ticket without checking. |
Hello everyone, Thanks for your patience 🙏 Thanks! |
Duplicate of #32798 |
Prerequisites
Describe the bug and add attachments
While importing products using CSV Import, I am trying to load a saved configuration. On clicking on load button, the saved configuration is not loading. In the browser console, we receive an error :
Deprecated Feature Used:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/ .
Affected Sources:
jquery-3.5.1.min.js:2
Expected behavior
The saved configuration should load.
Steps to reproduce
Goto Advanced Parameters>Import>CSV Import. Select products. On the next page, while matching field, try to load a saved configuration.
PrestaShop version(s) where the bug happened
8.04
PHP version(s) where the bug happened
8.1
If your bug is related to a module, specify its name and its version
No response
Your company or customer's name goes here (if applicable).
9gems.in
The text was updated successfully, but these errors were encountered: