Page 1 of 2

Exporting my blog problems

Posted: Thu Jan 05, 2012 6:06 am
by twoblink
So basically, my hosting is infected, and I need to get off of my hosting; so I'd like to export all of my blog entries as xml;

Administration => export entries => Export Full RSS Feed

Gives me an error..

"""
This page contains the following errors:

error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.

"""

There is no rendering.. Any help appreciated..

Thanks.
Albert

Re: Exporting my blog problems

Posted: Thu Jan 05, 2012 11:13 am
by garvinhicking
Hi!

What are you planning to do with the XML? The RSS-Export is an export with really only some very basic data contained. If you plan on using s9y on a new host, you should instead do a FTP and SQL dump of your files and database.

The RSS-Links is not meant to be viewed in the browser, you can download/save the resulting HTML for import in other systems instead.

Regards,
Garvin

Re: Exporting my blog problems

Posted: Sat Jan 07, 2012 6:21 am
by twoblink
It's actually my wife's blog; and she would like to move it to google.. so would like all the entries exported as xml.. Any way to do that?

Re: Exporting my blog problems

Posted: Sat Jan 07, 2012 11:04 am
by garvinhicking
Hi!

If google can importe the RSS-XML, it depends on the format. You should be able to simply download the ?all=1 mentioned link to your client. If the file is empty or fails, that means you might need your ISP to raise the server's memory limit, because in the full RSS export all entries are containde which takes up a lot of memory.

Regards,
Garvin

Re: Exporting my blog problems

Posted: Mon Jan 09, 2012 4:30 am
by twoblink
Hi, I am on a shared server hosting; and it's got some sort of malware that keeps replacing .htaccess no matter what I do, even if I chmod it to no permissions. So I'm fighting an uphill battle.

so you are saying that rss.php?all=1 "should" yield me the entire blog in xml? I am trying, it first coughs up the first 5 entries; but says:

"This XML file does not appear to have any style information associated with it. The document tree is shown below."

if I do the rss.php?all=1 it gives me the same error message.

This page contains the following errors:

error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.


Help! I'm so frustrated.... Thanks for the help thus far.

Re: Exporting my blog problems

Posted: Mon Jan 09, 2012 3:54 pm
by garvinhicking
Hi!

Save the file locally. Do not view it in a browser. Use a texteditor once you downloaded the file.

The error comes from your browser's interpretation of XML, not from the file itself.

Regards,
Garvin

Re: Exporting my blog problems

Posted: Wed Jan 11, 2012 5:11 am
by twoblink
Save the file locally. Do not view it in a browser. Use a texteditor once you downloaded the file.
OK, how would I do that? Since the RSS export is rss.php, so I'd have to execute the php via the web browser?

Re: Exporting my blog problems

Posted: Wed Jan 11, 2012 9:17 am
by kleinerChemiker
twoblink wrote:
Save the file locally. Do not view it in a browser. Use a texteditor once you downloaded the file.
OK, how would I do that? Since the RSS export is rss.php, so I'd have to execute the php via the web browser?
Yes.

But if you only want the File to import it into Googles Blogger, you can save your effort. Google only accepts export files from Blogger.

Re: Exporting my blog problems

Posted: Wed Jan 11, 2012 1:03 pm
by garvinhicking
Hi!
OK, how would I do that? Since the RSS export is rss.php, so I'd have to execute the php via the web browser?
When you view the file in your browser, you can simply use "File > Save as" and save it as "rss.xml" on your client, for example.

Regards,
Garvin

Re: Exporting my blog problems

Posted: Fri Jan 13, 2012 4:24 am
by twoblink
So I wrote a little link and did a save-as, and

"Allowed memory size of 16777216 bytes exhausted (tried to allocate 5380 bytes)"

Is there anyway I can make it spit out the blog in sections??

The other question is, in the database, is it saved in xml, and I can just do a data-dump?

Thanks.

Re: Exporting my blog problems

Posted: Fri Jan 13, 2012 4:41 am
by twoblink
So I kicked up the memory in php, and that seemed to solve the memory problem..

<b>Warning</b>: Cannot modify header information - headers already sent by (output started at xxxxxxxxxxxxxxxxxxxx.com/public_html/rss.php:1) in <b>xxxxxxxxxxxxxxxxxx.com/public_html/rss.php</b> on line <b>6</b><br />
<br />

It gave me about 5 of these errors with different line numbers and that was it. I blacked out my domain name there..

Re: Exporting my blog problems

Posted: Fri Jan 13, 2012 10:51 am
by garvinhicking
Hi!

Seems you edited the rss.php file and may introducde UTF-8 BOM headers as the first few bytes of the file? No blank lines or other output should be before the first <?php.

HTH,
Garvin

Re: Exporting my blog problems

Posted: Tue Jan 17, 2012 3:22 am
by twoblink
I haven't edited the rss.php file, but the blog is using UTF-8 (Chinese characters) so is that the reason?

Re: Exporting my blog problems

Posted: Tue Jan 17, 2012 12:52 pm
by garvinhicking
twoblink wrote:I haven't edited the rss.php file, but the blog is using UTF-8 (Chinese characters) so is that the reason?
No, not really - there are "invalid" characteres (actually, they are called UTF-8 BOM) which prevent PHP from parsing the file.

Probably, the trojan/virus also modified other s9y files as well which makes it impossible for the code to properly execute. You should best re-upload all original s9y files of the version you are using, to make sure that these files are unmodified. Then no UTF-8 BOM should be contained.

Regards,
Garvin

Re: Exporting my blog problems

Posted: Wed Jan 25, 2012 7:02 am
by twoblink
I managed to export an xml of the blog.. But blogger won't import it; says xml has errors.. any suggestion appreciated...