Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Fatal error  (Read 2858 times)

Offline artist3412

  • Full Member
  • ***
  • Posts: 117
  • Karma: +16/-0
    • View Profile
    • In The Wind Creations
Fatal error
« 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;
To send light into the darkness of men's hearts - such is the duty of the artist.  ~Schumann

Offline artist3412

  • Full Member
  • ***
  • Posts: 117
  • Karma: +16/-0
    • View Profile
    • In The Wind Creations
Re: Fatal error
« Reply #1 on: February 24, 2013, 07:44:35 AM »
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

 

Powered by SMFPacks Social Login Mod