PDA

View Full Version : Error with xml and rss File



beal2912
04-11-2008, 06:57 AM
Hello,

I just subscribe to Bluehost, and I have a problem with some .xml and rss File. It's probably a server configuration error because I didn't have any problem before with my precedent hoster.

An extern .xml file which doesn't have doctype return an error ...

The other error is with MagpieRSS on a RSS file with .php extension.

Warning: MagpieRSS: Failed to parse RSS file. (unknown encoding at line 1, column 30) in /home2/thomasb2/public_html/all-vp/magpierss/rss_fetch.inc on line 238

How can I resolve my problems in letting the server to be more permissive ?

add mime type ? change php.ini file ? ...

Best Regards

AljosaH
04-23-2008, 12:00 AM
I'm having the exact same problem. When I try to upload and parse XML file, I get error: unknown encoding at line 1

I think it's server side problem as the file uploads successfully on my local PHP server.

I hope some1 will provide an answer to this ASAP as I'm developing a web application for a customer and deadline is approaching very fast.

Early Out
04-23-2008, 05:06 AM
Have you tried contacting support?

IvanAkimov
04-23-2008, 10:42 PM
The problem is because you have a php file that starts like this:

***** top of document

<?php

// bla bla bla

?>
***** bottom of document

Notice the blank line above "<?php". You need to remove that line. Also, any included .php files that you have in that file, should have that blank line removed.

AljosaH
04-26-2008, 05:27 AM
The problem is because you have a php file that starts like this:

***** top of document

<?php

// bla bla bla

?>
***** bottom of document

Notice the blank line above "<?php". You need to remove that line. Also, any included .php files that you have in that file, should have that blank line removed.

Nope. That was not it.
If that was the problem, my application would not work on my server either, but it does.

I guess support is the best option in this case. Thanks for advice.