FeedForAll Forum Index ?
?Home?????FAQ????? Search ?????Register ?????Profile? ????Log in
?RSS eclaration not at start of external entity Error help View next topic
View previous topic
Post new topicReply to topic
Author Message
Rapodo



Joined: 12 Jan 2012
Posts: 7
Location: uk

PostPosted: Thu Jan 12, 2012 6:24 pm Reply with quoteBack to top

One on my RSS feeds had an error on their server not mine! there server went down. Now i have this question Their error appeared on my screen as $errorCode = 17
xml_error_string() = xml declaration not at start of external entity
xml_get_current_line_number() = 2
xml_get_current_column_number() = 0
xml_get_current_byte_index() = 62

IS THERE A WAY TO STOP THIS ERROR APPEARING ON MY WEBSITE WHEN A SERVER GOES DOWN AND GETS A PROBLEM WHICH IS NOT MY END?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2553

PostPosted: Fri Jan 13, 2012 12:12 am Reply with quoteBack to top

Which PHP script are you using?

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Rapodo



Joined: 12 Jan 2012
Posts: 7
Location: uk

PostPosted: Fri Jan 13, 2012 2:22 am Reply with quoteBack to top

I am using rss2html pro I have report error message set to 1 but still I got the error on my page, is it possible to have a redirect to a custom error page or turning the error report off fully? It looked very unprofessional to display an error on the page in that way especially as the error was not caused on my server, any help would be much appreciated.
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2553

PostPosted: Fri Jan 13, 2012 10:12 am Reply with quoteBack to top

You can add the following on the second line of your rss2html.php file:

ini_set('display_errors', 'Off');

That should stop all errors (not just the rss2html ones) from being displayed in the browser.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Rapodo



Joined: 12 Jan 2012
Posts: 7
Location: uk

PostPosted: Fri Jan 13, 2012 11:58 am Reply with quoteBack to top

Ok thank you so much so just to confirm i change this

Code:
//
// rss2html.php RSS feed to HTML webpage script
//
// Copyright 2004-2007 NotePage, Inc.
// http://www.feedforall.com
//
// This script may be used and modified freely for business or personal use
// This script may not be resold in any form
// This script may only be redistributed in its original form
//
//
// $Id: rss2html.php,v 3.15 2010/03/16 22:31:38 housley Exp $
//

//
// ==========================================================================
// Configuration options
// ==========================================================================
//
// Set the following variable useFopenURL to one if you want/need to use
// fopen() instead of CURL or FeedForAll_fopen()
$useFopenURL = 0;

//
// If XLMFILE is passed as part of the URL, XMLFILE=, then it will be used
// otherwise the the file below is used.
//$XMLfilename = "http://examlple.com/sample.xml";
$XMLfilename = "http://rss.cnn.com/rss/edition_world.rss";



TO THIS

Code:
ini_set('display_errors', 'Off');
//
// rss2html.php RSS feed to HTML webpage script
//
// Copyright 2004-2007 NotePage, Inc.
// http://www.feedforall.com
//
// This script may be used and modified freely for business or personal use
// This script may not be resold in any form
// This script may only be redistributed in its original form
//
//
// $Id: rss2html.php,v 3.15 2010/03/16 22:31:38 housley Exp $
//

//
// ==========================================================================
// Configuration options
// ==========================================================================
//
// Set the following variable useFopenURL to one if you want/need to use
// fopen() instead of CURL or FeedForAll_fopen()
$useFopenURL = 0;

//
// If XLMFILE is passed as part of the URL, XMLFILE=, then it will be used
// otherwise the the file below is used.
//$XMLfilename = "http://examlple.com/sample.xml";
$XMLfilename = "http://rss.cnn.com/rss/edition_world.rss";




Also do i need to keep


Code:
//
// $hideErrors: This will prevent all error messages from being displayed.
// CAUTION enabling this will cause rss2html.php to fail silently with
// no indication to why there was no output
// $hideErrors = 1;


Do i Need to keep this set to 1?
View user's profile
Display posts from previous:?? ? ?
Post new topicReply to topic


?Jump to:? ?



View next topic
View previous topic


Powered by phpBB ? 2001, 2002 phpBB Group :: FI Theme