Page 1 of 1

Error and web form page no longer works

Posted: Tue Jan 22, 2019 8:40 pm
by nexgraphics
Error message on form that I cannot figure out

Hi,

I have a webform on a bunch of clients sites that was working fine, and all of a sudden, clients are getting this message when even going to that page - there is no longer a page anymore, or a form its been replaced by:


Warning: file_get_contents(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/checking/public_html/webform/ValidateWebFormEligibility.php on line 9

Warning: file_get_contents(http://...@msn.com): failed to open stream: Connection timed out in /home/checking/public_html/webform/ValidateWebFormEligibility.php on line 9

Warning: header(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/checking/public_html/webform/ValidateWebFormEligibility.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at /home/checking/public_html/webform/ValidateWebFormEligibility.php:9) in /home/checking/public_html/webform/ValidateWebFormEligibility.php on line 39

Here is one link https://echeckdirect.com/webform/ipexins.php


Help?

Thanks

Lee

Re: Error and web form page no longer works

Posted: Tue Jan 22, 2019 9:38 pm
by Pablo
This is most likely caused by a change on the server side.

You can add the following code to the start of the page to define a timezone:

Code: Select all

<?php
date_default_timezone_set('America/New_York');
?>
More info:
http://php.net/manual/en/function.date- ... ne-set.php