AbanteCart Community
eCommerce construction => General Discussion => Topic started by: artist3412 on February 24, 2013, 06:51:34 AM
-
I am brand new to AbanteCart cart. everything seems towork except when I try to add a new product it comes up with Fatal error saying there issomething wrong with my utils.php file online 302.
Here is what my utils.php file shows around that line. Line 302 is the one that reads:
$iso_date = DateTime::createFromFormat($date_format, $string_date, $timezone);
Here is the whole section:
function dateFromFormat($string_date, $date_format, $timezone = null) {
$date = new DateTime();
$timezone = is_null($timezone) ? $date->getTimezone() : $timezone;
if (empty($date_format)) return null;
$string_date = empty($string_date) ? date($date_format) : $string_date;
$iso_date = DateTime::createFromFormat($date_format, $string_date, $timezone);
$result = $iso_date ? $iso_date->getTimestamp() : null;
return $result;
-
I found the solution to this finally on another post: I followed their advice and deleted the old text then copied and pasted the text from http://forum.abantecart.com/index.php/topic,599.0.html
into my utils.php file
It worked perfect.
I do recommend of course if anyone tries this, be sure to copy the old text into a seperate file in case it doesnt work for you, that way you can still revert back to the old file.
I have to say, overall, I am very impressed with AbanteCart cart!