Uh oh!
There was an error while loading. Please reload this page.
Import app branch - #243
Conversation
Thanks, Shahid! I did a test import and got this error...
I believe that is because For your questions...
Brent can get that going when this is a little closer to release.
All of the main app components get passed the @brentjett can you still get history from |
shahidajmeri786
commented
Apr 2, 2020
Hi @fastlinemedia , Thank you for the test. I checked and updated the string variable into array one. the funny part is my PHP server did not give the error at all :D I also add the history object and pushed to a list of posts after import complete. I pushed code so you will check it out for the further test. |
fastlinemedia
commented
Apr 6, 2020
Thanks, @shahidajmeri786! It looks like it's working. Only issue I noticed is that it's only importing one post. I exported two pages using the WordPress exporter but only one imports when using the Assistant importer. Can you check that out? |
shahidajmeri786
commented
Apr 10, 2020
Hi @fastlinemedia , Thanks for testing. Multiple import issue fixed. code pushed. can you please check again? |
fastlinemedia
commented
May 12, 2020
@shahidajmeri786 I did some testing and ran into a few things. I also merged with master so be sure to npm install!
One question: does the import app handle importing attachments? |
Fixed attachment import Fixed error redirected to post list Break import logic into separate controller.
shahidajmeri786
commented
May 15, 2020
One question: does the import app handle importing attachments? |
Thanks, @shahidajmeri786! However, I'm getting an error when trying to import this file... https://share.getcloudapp.com/04uP4KW4 There's nothing in the PHP error log, but the console is showing this...
Can you check that out? Also be sure to pull, I merged in master. |
shahidajmeri786
commented
May 26, 2020
Hi @fastlinemedia , I tested and checked the import is working fine. check here: https://www.screencast.com/t/ahSFrLxL there is an import message fix. added post type in the message so user know what successfully imported and what failed. Can you please tell me your WordPress version which you tested? |
fastlinemedia
commented
Jun 1, 2020
Thanks, @shahidajmeri786! I just pulled and it seems to be working now. Looks like it's coming together! I have some code review notes I'll leave on the PR. Also, I'm seeing a few notices in the PHP error log now. Can you look into those? |
fastlinemedia
left a comment
There was a problem hiding this comment.
Hey @shahidajmeri786 let me know if you have any questions about this review.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| return rest_ensure_response( | ||
| [ | ||
| 'error' => true, | ||
| 'message' => 'Sorry, only XML files are allowed.', |
There was a problem hiding this comment.
Can you use WordPress translation functions (e.g __ or sprintf) anywhere there is human readable text? We need to be sure to always do that on the front or backend. There are a number of places that need it in this file.
Uh oh!
There was an error while loading. Please reload this page.
| } else { | ||
| $fail_imp_count++; | ||
| return rest_ensure_response( |
There was a problem hiding this comment.
Do we really want to cancel the entire import if an attachment fails? It might be better to fail silently for attachments and let the import proceed.
Uh oh!
There was an error while loading. Please reload this page.
Resolved some php warnings Cleanup codelines which are unused Removed Upload ok as not needed anymore Added WP translate for alert text messages Added Dynamic wp allowed file size Fixed post import failed due to terms and metas
shahidajmeri786
commented
Jun 2, 2020
Worked on feedbacks: |
Added import app.
Suggestion:
Please check for quick view: https://www.screencast.com/t/oMIo0lrtN