Hi there, trying to import from my WP Blog.
When I try to use the login box I get the following error:
The file could not be uploaded, most likely because the file size exceeds the configured limit of 8 MB
There is nothing in the file upload box.
Also, when I try to use the upload file feature, I get:
Could not load WXR file - problems reported: Opening and ending tag mismatch: encoded line 157 and script at line 159 Opening and ending tag mismatch: item line 145 and code at line 161 Sequence ']]>' not allowed in content at line 167 Opening and ending tag mismatch: channel line 28 and content:encoded at line 167 Opening and ending tag mismatch: rss line 19 and item at line 207 Extra content at the end of the document at line 208
Any ideas?
Bryn
Comment | File | Size | Author |
---|---|---|---|
#8 | import-with-credential-nodpm.patch | 28.6 KB | aacraig |
#7 | import-with-credentials.patch | 28.63 KB | aacraig |
#2 | 1180684_smart_file_check.patch | 879 bytes | wizonesolutions |
Comments
Comment #1
mikeryanHow big is the file? You can increase the limit by adding this to your .htaccess file:
As for the error, that looks like a duplicate of #1055310: Could not load WXR file - mismatched tag due to embedded CDATA.
Comment #2
wizonesolutionsI've stepped into the code, and this is actually because of the following:
Basically, it's checking for an error with the file even if login credentials have been supplied.
Hmm, since I'm already in here, here's a shot at a patch. Untested, but it'll move us along.
Comment #3
wizonesolutions1. I verified that this patch works. Both import methods continue to function.
2. I've bumped this to major because in the current -dev release the domain + credentials-based method of retrieving the WXR file is completely inaccessible. I'd say that (relative to the module) that's major.
Comment #4
wizonesolutions@mikeryan, have you seen this issue? I know you don't have time to fix everything - just curious as there have been other commits since.
Comment #5
dqdlet me try your patch!
thanks for your contribution wizonesolutions.
Comment #6
ptaff CreditAttribution: ptaff commentedsubscribe; indeed, patch from comment #2 works
Comment #7
aacraig CreditAttribution: aacraig commentedThe patch in #2 doesn't solve all of the problems for importing with credentials. The remaining code has quite a bit of issues, including not handling the file download (the downloaded file remains empty) and problems with the cookie file.
Included is a patch which addresses all of these issues (including the test which is fixed in the comment #2 patch).
I am currently importing a large (1.4 MB) xml file using the credentials option with the code contained in this patch, so I guess you can say it's tested :)
Comment #8
aacraig CreditAttribution: aacraig commentedI left behind a call to dpm() in the patch.
Here is a clean version without the debug output.
Comment #9
starapple CreditAttribution: starapple commentedHas the patch been committed? I've tried today, Nov 14, to patch and Patch says "Reversed patch detected!" and "Hunk #1 failed at 18. Hunk #2 failed at 118".
Thanks.
Comment #10
joeshmoe123 CreditAttribution: joeshmoe123 commentedI'm having the same issue. If the patch has been applied I still have the same outcome as the OP.
Comment #11
finedesign CreditAttribution: finedesign commentedSame as #10 above on Nov 29.
Comment #12
stephnicolaou CreditAttribution: stephnicolaou commentedWhy hasn't this been solved, is anyone even working on this?
Which patch do I use out of the possible 3 uploaded and what are the steps use the patch with the wordpress migrate module!
I edited by php.ini file to allow 87GBs and it still told me that the limit weren't enough!
This error should have been a warning prior to downloading this module.
I'm new to Drupal and so far I'm not very impressed by all these bugs I'm finding.
Comment #13
mikeryanCommitted the patch by wizonesolutions in #2, which appears to address the original issue directly. The other patches do not apply, and it's not clear to me what they were intended to do - please open a separate issue and make a clean patch for that.
Thanks.