Re: PHP5.3 -> PHP7.0 Forms targeting a handler in the php dir work but not if using an include file in current dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 15/09/2021 11:50, Bo Berglund wrote:
On Wed, 15 Sep 2021 10:41:09 +0100, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx>
wrote:

What do your error logs say? When you run into problems like this, 
always go to the error logs as the first thing, as the logs will almost 
always be giving useful information about what the exact issue is.
Where can I find the error logs?
Note that I have no control over the server so /var/log is not accessible.
This is a webhosted server run by Network Solutions...

I expected that errors would be displayed ion screen since I have the setting:

ini_set('display_errors', '1');

in the php files.

But the screen just gets totally blank.

A blank screen is a sure indication of an error, and as you've seen, ini_set('display_errors', '1') alone isn't enough to force errors to show on the screen. You can add the following to also set the level of errors to show, as that might be set to something different on the server in the php.ini, which is why you're not seeing what you expect on screen, although it's not advised to have them shown on a production server for security reasons:

error_reporting(E_ALL);
You should have access to the error logs on your hosting though. The exact location can be determined from a phpinfo() call, but if you're struggling accessing them, you should ask the hosting company, as logs are something you need always.

-- 
Ashley Sheridan
https://www.ashleysheridan.co.uk

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux