FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
Search found 7 matches
Author Message
Topic: hide error function to redirect to another page
Rapodo

Replies: 2
Views: 9538

PostForum: General RSS Discussions   Posted: Thu Feb 02, 2012 5:25 pm   Subject: hide error function to redirect to another page
is there any developer that could help me write to write a function hook of your own to display errors. Then you can choose if you want to create some content, display the error, or redirect to a page.
Topic: hide error function to redirect to another page
Rapodo

Replies: 2
Views: 9538

PostForum: General RSS Discussions   Posted: Thu Feb 02, 2012 5:11 pm   Subject: hide error function to redirect to another page
Hello all. I would like to know if its posable to make the error redirect to any page i wanted rather than show just a blank page? Is there a way i can make the error goto http://example.com? Rathar than none of the page loading at all?

Topic: Hiding Errors messages
Rapodo

Replies: 1
Views: 17652

PostForum: General RSS Discussions   Posted: Thu Feb 02, 2012 5:04 pm   Subject: Hiding Errors messages
Ah ha fixed it i didnt have // $hideErrors = 1;
set to $hideErrors = 1;

Now is there any way i cam make this redirect to any custom made error page so instead of loading a white page it would redirect to any page i wanted?
Topic: Hiding Errors messages
Rapodo

Replies: 1
Views: 17652

PostForum: General RSS Discussions   Posted: Thu Feb 02, 2012 12:02 pm   Subject: Hiding Errors messages
Hello i am seeking help in getting the hide error function to work.


// $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;

As you can see i have got this set to 1 and it doesnt seem to work.
I am using rss2html pro

I am using feeds from locations around the internet like thhe usgs and met office rss feeds.

Whenever their feed or server goes down my whole page displays the error as like below


$errorCode = 7
xml_error_string() = mismatched tag
xml_get_current_line_number() = 57
xml_get_current_column_number() = 2
xml_get_current_byte_index() = 2665

This obviously becomes very untidy on my website. I have tryed adding

ini_set('display_errors', 'Off'); to the second line but that doesnt work either.

Is there a way of fixing this problem and stop any error messages from appearing on my whole page or is there a way any error can be redirected to a custom error page i could make?

Any help would be most welcome! Thankyou in advance.
Topic: RSS eclaration not at start of external entity Error help
Rapodo

Replies: 4
Views: 226831

PostForum: General RSS Discussions   Posted: Fri Jan 13, 2012 11:58 am   Subject: RSS eclaration not at start of external entity Error help
Ok thank you so much so just to confirm i change this

<?PHP
//
// 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

<?PHP
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 ...
Topic: RSS eclaration not at start of external entity Error help
Rapodo

Replies: 4
Views: 226831

PostForum: General RSS Discussions   Posted: Fri Jan 13, 2012 2:22 am   Subject: RSS eclaration not at start of external entity Error help
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.
Topic: RSS eclaration not at start of external entity Error help
Rapodo

Replies: 4
Views: 226831

PostForum: General RSS Discussions   Posted: Thu Jan 12, 2012 6:24 pm   Subject: RSS eclaration not at start of external entity Error help
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?
 

 Jump to:   


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