These are chat archives for eventum/eventum

Jun 2016
Bryan Alsdorf
Jun 03 2016 02:22
@cpinfold I haven't seen that, but I'm running utf-8.
You can edit the PDO adapter to not specify the charset. src/Db/Adapter/PDOAdapterBase.php:42
Elan Ruusamäe
Jun 03 2016 06:35
well. if you upgraded, it should still use the pear-db, pdo is used for new installations
and are you using APP_CHARSET 'ISO-8859-1' then?
i suggest to switch to pear adapter, upgrade to utf8 and then try pdo again
Elan Ruusamäe
Jun 03 2016 06:41
but it would be still interesting how did you get pdo adapter
you did not have classname in your setup.php database section?
Elan Ruusamäe
Jun 03 2016 06:46
also reverted part that all upgrades switch to pdo eventum/eventum@de5e869
it was intended to be for new installations only
i should probably make new release with the change
will let this settle a bit and then release
@cpinfold check the answers, questions and commits
Elan Ruusamäe
Jun 03 2016 08:00 another free translation system
Jun 03 2016 12:39
@balsdorf - I first commented out the charset and that fixed it. Looking into it further (thanks for the pointer) I found where the dashes were stripped from APP_CHARSET and changed my APP_CHARSET and restored the charset. That fixed it without a code change.
@glensc - I've been running Eventum for a very long time, I don't recall ever choosing a charset, just upgrading. Perhaps ISO-8859-1 (latin1) was either an Eventum or Ubuntu default at some point.
@ glensc - checking my setup.php now.
@glensc - setup.php:
  'database' =>
  array (
    'driver' => 'mysql',
    'hostname' => 'localhost',
    'database' => 'support',
    'username' => 'user',
    'password' => 'pw',
    'port' => 3306,
    'table_prefix' => 'eventum_',
Jun 03 2016 12:46
@glensc - An alternative to pulling PDO for old installs would be to have the upgrade script check the DB encoding (using PEAR) and update APP_CHARSET in config.php with a warning.
Scratch that idea.. latin1 is causing other issues with Eventum - Warning: htmlspecialchars(): charset `latin1' not supported, assuming utf-8 in /var/www/eventum/eventum/vendor/smarty-gettext/smarty-gettext/block.t.php on line 142