Originally Posted by
dennio6
PHP Fatal error: Cannot redeclare zen_date_raw() (previously declared in /home/content/52/8775952/html/dennio/store/includes/languages/custom/english.php:30) in /home/content/52/8775952/html/dennio/store/includes/languages/english.php on line 39
includes/languages/custom/english.php
includes/languages/english.php
BOTH the above files should be composed as below. Find the relevant section (almost at the top of the file) and make sure it reads:-
PHP Code:
@setlocale(LC_TIME, 'en_US');
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}
}
Not sure WHY it is referencing BOTH in your error message. You may have fouled up some edit, or you have bought a cheap and nasty template...
Bookmarks