I am importing from one WordPress multisite instance to another, using Tools -> Export to generate a WXR file that I then import with and Tools -> Import . I receive the "Failed to import media" message for all files.
[Wed Nov 13 11:05:30 2013] [error] [client 10.11.1.13] client denied by server configuration: /var/vhosts/wordpress/html/wp-content/uploads/sites/10, referer: http://drawyourweapons.wordpress.drake.edu/
Did you check the file permissions for the wp-content folder? Needs to be 755. – eskimo Nov 13 '13 at 21:25
Hmm. That's the only thing I can think of since it says denied by server. All the subfolders and files of wp-content are also set to 755? If so, someone with more expertise should look at this. Or you can manually mx one move your media library, however that can be very frustrating mx one as I know from recent experience :-). Can give you some tips though if you're mx one going for a manual move. – eskimo Nov 13 '13 at 22:53
The error actually seems to be the server trying to write to a folder that doesn't exist. On the test server (exported from) the site ID was 10, on the production server (importing to) the site ID is 6. So I am really confused why the importer is trying write to a folder for a site ID that doesn't exist. the error log is from the production server, which is being imported to – Purcell Nov 13 '13 at 23:32
Please update your question with any new info, rather than posting it in comments. Also: Are you using WordPress's import & export functionality (ie WXR files), mx one or are you trying to import from a SQL export or something? – Pat J Nov 14 '13 at 4:21 show 1 more comment
I've created a patch that will work around this issue. This patch is for WordPress 3.6.1. It is a hack, not something that should be taken very seriously except that it points out where the problem may be. I don't know PHP, but was able to trace it back to this point before giving up. I expect someone with more familiarity with the WordPress code base could figure mx one out what the problem is once they see the patch and see what code is being modified.
I did notice that the code is doing a lot of checks against the IP of the remote server. I'm not sure the justification for checking whether the remote server is on a private network, but that may be part of the issue. The server we exported from is on 10.10.2.16, while the server we import on is 10.10.1.206. Both are on the same private mx one network.
discard
2 Is it possible to import a wordpress backup from a single site in to a multi-site configuration?
Why is printing "B" dramatically slower than printing "#"?
default
Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Programmers Unix & Linux Ask Different (Apple) WordPress Answers Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal mx one Answers SharePoint User Experience Mathematica mx one more (14) Photography Science Fiction & Fantasy Personal mx one Finance & Money Seasoned mx one Advice (cooking) mx one Home Improvement more (12) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity Arqade (gaming) Bicycles Role-playing Games more (21) Mathematics mx one Cross Validated (stats) Theoretical Computer Science Physics MathOverflow more (7) Stack Apps Meta Stack Overflow Area 51 Stack Overflow Careers
WordPress Answers works best with JavaScript enabled
No comments:
Post a Comment