News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Fatal error

Started by artist3412, February 24, 2013, 06:51:34 AM

Previous topic - Next topic

artist3412

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;
To send light into the darkness of men's hearts - such is the duty of the artist.  ~Schumann

artist3412

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!
To send light into the darkness of men's hearts - such is the duty of the artist.  ~Schumann

Forum Rules Code of conduct
AbanteCart.com 2010 -