homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

Hiding Fatal Errors on Wordpress

5+ Year Member

Msg#: 4352002 posted 1:49 pm on Aug 16, 2011 (gmt 0)


I was wondering if there's a way to display a blank page on Wordpress when a certain script is called out of context.

For example, if I enter
in the browser bar and hit enter, it will say:

Fatal error: Call to undefined function get_header() in /home/myusername/public_html/whatever/wp-content/themes/mytheme/single.php on line X

This is obviously a great way for the offender to sniff out my CP username.

Do I just turn the errors off or what?




WebmasterWorld Administrator ergophobe us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4352002 posted 4:34 pm on Aug 17, 2011 (gmt 0)

You have to set PHP (in php.ini) to *log* errors but not to *display* them. This will result in a blank white page to the user, but you still have the error data for debugging.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved