Fatal Errors Not Shown

Asked by:
jaklove / 21 Points
Time:
2013-06-02 10:50 am EST
Category:
Website Troubleshooting
Hits:
688
When my PHP scripts have fatal errors they just seem to die and no errors are shown. I've got error_reporting(-1) and dsiplay_errors on. I can print out the fatal errors if I do set_error_handler but I just want to default implementation not make my own.

Also, if I go into my .htaccess file and turn on errors it will forward all my pages to my wordpress site when I'm not in a wordpress folder.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
17,314 Points
2013-06-02 11:45 pm EST
Hello Jaklove,

Sorry to hear about the errors you're having with PHP. First, your description is very general and you do have a Wordpress site in your primary domain. IF you were trying to run your scripts form a different domain than the primary one (as in - not the WordPress site), then you should first start by creating a .htaccess file specific to that domain. The one in the primary domain is applying to everything below, since there is no definition in your add-on site. Check out this article if you need more information on creating a PHP Error Log.

If you continue to have problems, please let us know. Please provide more specific information on the error you're seeing and the file name of the PHP file you're trying to run.

Regards,

Arnel C.

To submit a comment on this answer, please first login.

I just want to know how to turn on all errors. I can get rid of the .htaccess stuff that WordPress put in my root folder. When I do that I get this page:

----------------------------------------------------------------------------------------------
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@lovelynandjohnny.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
----------------------------------------------------------------------------------------------

I don't want this, I just want to display the error. Also, I get this page whenever I try to create my own .htaccess rules. I put this in the .htaccess file

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_value error_log /home/lovely25/public_html/j/database/php.errors
php_value error_reporting 30719
jaklove
21 Points

2013-06-03 11:00 pm EST
Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}