Exporting my blog problems

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
twoblink
Regular
Posts: 22
Joined: Wed Sep 15, 2010 6:10 am

Exporting my blog problems

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Exporting my blog problems

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
twoblink
Regular
Posts: 22
Joined: Wed Sep 15, 2010 6:10 am

Re: Exporting my blog problems

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Exporting my blog problems

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
twoblink
Regular
Posts: 22
Joined: Wed Sep 15, 2010 6:10 am

Re: Exporting my blog problems

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Exporting my blog problems

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
twoblink
Regular
Posts: 22
Joined: Wed Sep 15, 2010 6:10 am

Re: Exporting my blog problems

Post 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?
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Exporting my blog problems

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Exporting my blog problems

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
twoblink
Regular
Posts: 22
Joined: Wed Sep 15, 2010 6:10 am

Re: Exporting my blog problems

Post 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.
twoblink
Regular
Posts: 22
Joined: Wed Sep 15, 2010 6:10 am

Re: Exporting my blog problems

Post 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..
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Exporting my blog problems

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
twoblink
Regular
Posts: 22
Joined: Wed Sep 15, 2010 6:10 am

Re: Exporting my blog problems

Post by twoblink »

I haven't edited the rss.php file, but the blog is using UTF-8 (Chinese characters) so is that the reason?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Exporting my blog problems

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
twoblink
Regular
Posts: 22
Joined: Wed Sep 15, 2010 6:10 am

Re: Exporting my blog problems

Post by twoblink »

I managed to export an xml of the blog.. But blogger won't import it; says xml has errors.. any suggestion appreciated...
Post Reply