Jump to content

Recommended Posts

Posted

They seem to be missing, and they're very much needed to debug PHP scripts that some of us may be building. Are you guys keeping them off for any particular reason? Is there a way to turn them on in cPanel that I have not found?

 

Thanks.

Posted

There are other threads in this forum on what happened and why but to sum up, the upgrade to the latest version of PHP involved a lot of chages in the working of the php code. (see php.net for more details)

 

The changes caused some poorly written scripts to spew out error messages even though the errors weren't fatal (stopping the code in its tracks). So TCH chose to turn off the error reporting so that they wouldn't spend the next ten years answering "Why am I getting this error message on my page?" when in reality the page worked well enough.

 

Is it harder to debug... yes.

 

But you can turn on error reporting using .htaccess or in the code itself

 

See http://us4.php.net/manual/en/ref.errorfunc.php

 

I have found that most of the fixes light off an avalanche of information that is tough to wade through... so before you try to turn error reporting back on, you might want to try old fashioned debugging techniques.

 

CPanel has no feature related to turning error reporting on or off.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...