Uploading a Demo file to Wordpress

Category: Wordpress

Jones105
Asked:
2013-06-10 4:11 pm EST

Hits: 1,349
Hi, I purchased a theme for Wordpress from Themeforest.net and installed on Wordpress 3.5.1 with no problems. However, in trying to upload their demo.xml file (with sample page layouts, postings, etc.) the importer will not read the file properly. I contacted the theme designer for support, and they said that it appears to have something to do with file permissions on my server side. Any insight or thoughts on this? Website is www.sagaciastrategies.com Thanks!

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Ok, I removed Wordpress completely and reinstalled. I then grabbed an XML export from an entirely separate wordpress site, and had the same trouble attempting to import. I then deactivated the import tool and installed ReadyMade WordPress Importer and had the same trouble trying to import with it. It seems at this point that it is not the XML file, but something to do with how the server is setup regarding permissions or something. Any advice would be greatly appreciated!

I installed Wordpress using the script in control panel, and it is the latest version.
Jones105
30 Points
2013-06-12 02:20 pm EST

OTHER ANSWERS

0

JacobIMH
Staff
9,962 Points
2013-06-10 5:13 pm EST
Hello Jones105, and thanks for your question!

When you attempt to upload your demo.xml file within WordPress, are you using the Tools > Import > WordPress option?

Does it give you a specific error such as it can't create a particular directory or file? You can read our guide about changing file permissions that goes over how you can modify your folder and file permissions using cPanel if this is the case.

I believe what might have happened is that it looks like your /wp-content/uploads/ directory had the incorrect permissions of 777 so I bumped that down to 755 for you.

Please let us know if you're still encountering any issues getting it uploaded now.

- Jacob

You must login before you can post a comment about this answer.

That didn't quite do the trick. When I try to upload using Tools>Import>Word Press, it processes the upload, but then asks me to select which user to assign the posts to. I know the demo file has 4 users, but in the "Import Author ()" line there are no users selected to match. If I proceed anyway, it just gives a hundred errors or so and the blog looks the same as before.

If there is an option here to attach a file, I can upload either a screenshot of the page, or the xml file if it would help.
Jones105
30 Points
2013-06-10 6:02 pm EST
Hello Jones105,

I'm sorry to hear that you're still having problems with the theme. I spoke with Jacob (who provided the initial change above) and in looking at the issue it appears that you may need to have a user with the necessary access (e.g. an administrator user) already set so that you can properly assign it. Otherwise, if you can provide the files that you have used or installing this by uploading them into the same folder as where the theme exists, then we can look at it and see what's happening. I would use FTP access in order to upload the file, or upload the file(s) into the website and then notifying us which folder you have saved it to so that we can troubleshoot the issue further.

I do apologize that we can't answer he question at the moment, but if you can provide us the files we can better assess issue and hopefully provide a quick answer. If you do upload the file(s), then please leave us another message here so that we know where to look for the file in your account.

Regards,

Arnel C.
Arn
16,176 Points
Staff
2013-06-10 6:53 pm EST
Thanks, Arnel. I have uploaded the demo.xml file to the themes folder under wp-content.

I do have an existing administrator user and that is an option in the "assign posts to a specific user" - the problem is that it is not actually reading the posts (I know this because the Import Author box does not list any authors from the demo file)

Thanks for your help!
Jones105
30 Points
2013-06-10 9:16 pm EST
Were you able to find it?
Jones105
30 Points
2013-06-11 9:51 am EST
Hello Jones105,

Yes, I was able to get the XML file and test both on my blank Wordpress test site (without the template) and then I created a testadmin (that has since been removed) on your Wordpress account in order to test it on your site. I only tested it after backing up the database and the WP files.

I followed the directions in the XML file which asks you to download the Wordpress tool under Import. When the file is downloaded in my test site, it shows 4 different users but the import does not appear to go - possibly due to missing structures in the site that need to be there.

After that, I decided to test it on your website since you have the theme loaded. It gave me a different set of errors, but I can tell that the import is at least partially working. Here's a screenshot that summarizes all of the errors I'm seeing: http://grab.by/nqdK.

They are probably similar to what you are seeing. The issue is no longer a permission issue, but one where the import may possibly require structures in the database created by either the theme, or manually within the WordPress Admin. Mainly, I'm seeing a missing Post type, which is probably correctable through the dashboard. Try reaching out to the theme authors once again, and present them with the issue as we have seen it.

Apologies that we cannot find the factor that's causing the import to fail, but at this point it does appear to be something to do with the contents of the import as opposed to server permission settings. Please let us know if you require any further assistance!

Regards,

Arnel C.
Arn
16,176 Points
Staff
2013-06-11 1:13 pm EST
Ok, I removed Wordpress completely and reinstalled. I then grabbed an XML export from an entirely separate wordpress site, and had the same trouble attempting to import. I then deactivated the import tool and installed ReadyMade WordPress Importer and had the same trouble trying to import with it. It seems at this point that it is not the XML file, but something to do with how the server is setup regarding permissions or something. Any advice would be greatly appreciated!

I installed Wordpress using the script in control panel, and it is the latest version.
Jones105
30 Points
2013-06-12 1:14 pm EST
Hello Jones105,

I did not see an error report within your Wordpress files, to help in troubleshooting, I recommend enabling WP-DEBUG, as it will provide specific errors when an issue occurs.

If you suspect a PHP limitation is causing this to fail, you can increase the limit in the PHP.ini file.

Please reply with any error messages you receive, after turning on debug mode, and we can provide a specific answer.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
johnpaulb-imhs1
8,310 Points
Staff
2013-06-12 2:26 pm EST
I changed the debug settings as you requested and am still having issues. the problem is that as soon as I choose the xml file to upload, the importer is not recognizing it properly. I can proceed to attempt the import, but get over 100 errors, such as:

Failed to import
Failed to import “test-image-landscape”: Invalid post type
Failed to import “test-image-portrait”: Invalid post type
Failed to import “spectacles”: Invalid post type
Failed to import “canola2”: Invalid post type
Failed to import “dsc20050315_145007_132”: Invalid post type
Failed to import “dsc20050727_091048_222”: Invalid post type
Failed to import “dsc20050813_115856_52”: Invalid post type
etc. etc.

I dont know anything about modifying the php.ini - not sure I should be the one messing with this??
Jones105
30 Points
2013-06-12 2:56 pm EST
Hello Jones105,

After doing some research, this seems to be a common problem. Here is a link to a workaround I found on Wordpress' official support forum.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
johnpaulb-imhs1
8,310 Points
Staff
2013-06-12 4:13 pm EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!