Originally Posted by
david53
tDB_CHARSET and CHARSET ARE utf8
IN THE phpMyAdmin database the collation is either utf8mb4_general_ci or latin1_swedish_ci [mostly the latter]
zen_products_description is set to latin1_swedish_ci
The only logs generated close to the time are in cache have a " PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set"
That's the source of your issue; you need to convert your database to use all utf8mb4_general_ci collations. You can do this using the Convert db2utf8 plugin, modifying the convert_db2utf8.php module's $desiredCollation value to utf8mb4_general_ci:
Code:
/**
* convert_db2utf8
*
* @package eCommerce-Service
* @copyright Copyright 2004-2007, Andrew Berezin eCommerce-Service.com
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: convert_db2utf8.php, v 2.0.1 16.10.2007 14:47 Andrew Berezin $
*
* Updated 2014-06-28 to change mysql_ functions to mysqli_ functions, for compatibility with PHP >= 5.4
* Updated 2015-01-11 (lat9). Check for, and convert, overall database collation, too!
* Updated 2018-01-01 (mc12345678). Support both quoted and unquoted databases when converting the overall database collation.
*
*/
error_reporting(E_ALL & ~E_NOTICE);
$desiredCollation = 'utf8mb4_general_ci'; // could optionally use utf8_unicode_ci
Put your site into maintenance mode prior to the conversion and make sure that you have a backup of the database, made just prior to the conversion.
For that logged error, you need to edit your store's /includes/extra_configures/set_time_zone.php to reflect your store's time-zone:
Code:
<?php
/**
* @package initSystem
* @copyright Copyright 2003-2018 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Drbyte Tue Sep 11 15:54:43 2018 -0400 Modified in v1.5.6 $
*/
/*
* Set time zone
*/
// put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
$TZ = ''; // eg: 'Europe/Oslo'
/**
* MAKE NO CHANGES BELOW THIS LINE
*
* The following will take the timezone you specified above and apply it in your store.
* If you didn't specify one, it will try to use the setting from your server's PHP configuration
*/
if ($TZ == '') {
$TZ = date_default_timezone_get();
}
if ($TZ != '') {
putenv('TZ=' . $TZ);
@date_default_timezone_set($TZ);
}
Bookmarks