Jump to content
Larry Ullman's Book Forums

Unable To Complete Checkout Process- Errors In Second Example-Ecommerce


Recommended Posts

I am gettting following two errors during checkout process - after compliting "Shipping" step :

 

This errors occured in "Billing" step -

 

1)

An error occurred in script 'D:\xampp\htdocs\includes\form_functions.inc.php' on line 64:

date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '5.5/no DST' instead

Array

 

(

 

[0] => Array

 

(

 

[function] => my_error_handler

 

[args] => Array

 

(

 

[0] => 2048

 

[1] => date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '5.5/no DST' instead

 

[2] => D:\xampp\htdocs\includes\form_functions.inc.php

 

[3] => 64

 

[4] => Array

 

(

 

[name] => cc_exp_year

 

[type] => select

 

[errors] => Array

 

(

 

)

 

 

 

[values] => POST

 

[extras] =>

 

[value] =>

 

[data] => Array

 

(

 

)

 

 

 

)

 

 

 

)

 

 

 

)

 

 

 

[1] => Array

 

(

 

[file] => D:\xampp\htdocs\includes\form_functions.inc.php

 

[line] => 64

 

[function] => date

 

[args] => Array

 

(

 

[0] => Y

 

)

 

 

 

)

 

 

 

[2] => Array

 

(

 

[file] => D:\xampp\htdocs\views\billing.html

 

[line] => 28

 

[function] => create_form_input

 

[args] => Array

 

(

 

[0] => cc_exp_year

 

[1] => select

 

[2] => Array

 

(

 

)

 

 

 

)

 

 

 

)

 

 

 

[3] => Array

 

(

 

[file] => D:\xampp\htdocs\billing.php

 

[line] => 211

 

[args] => Array

 

(

 

[0] => D:\xampp\htdocs\views\billing.html

 

)

 

 

 

[function] => include

 

)

 

 

 

)

 

 

 

2)

By clicking this button, your order will be completed and your credit card will be charged.

 

but it doesn't show any button.

 

I have tried to solve the problem without success.

 

You help will be apreciated.

Link to comment
Share on other sites

You need to set the default timezone, the error message explains what you need to do:

 

An error occurred in script 'D:\xampp\htdocs\includes\form_functions.inc.php' on line 64:

date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '5.5/no DST' instead

  • Upvote 1
Link to comment
Share on other sites

An error occurred in script 'D:\xampp\htdocs\includes\form_functions.inc.php' on line 64:

date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '5.5/no DST' instead

The error message is telling you what the problem is and how to resolve it. The timezone is probably not set on your server so you need to set it using
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.
  • Upvote 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...