FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Hiding Errors messages View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.This topic is locked: you cannot edit posts or make replies.
Author Message
Rapodo



Joined: 12 Jan 2012
Posts: 7
Location: uk

PostPosted: Thu Feb 02, 2012 12:02 pm Reply with quoteBack to top

Hello i am seeking help in getting the hide error function to work.

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;


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

Code:

$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
Code:

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.
View user's profile
Rapodo



Joined: 12 Jan 2012
Posts: 7
Location: uk

PostPosted: Thu Feb 02, 2012 5:04 pm Reply with quoteBack to top

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?
View user's profile
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.This topic is locked: you cannot edit posts or make replies.


 Jump to:   



View next topic
View previous topic


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