[FLOW3-general] Notice: Undefined index: identifier
Georg Ortner
go at simplaweb.at
Thu Jan 28 16:03:36 CET 2010
Am 28.01.2010 10:45, schrieb Karsten Dambekalns:
> On 27.01.10 17:13, Georg Ortner wrote:
>> 1) First off all with the configuration above you will get an
>> "SQLSTATE[HY000] [2002] Invalid argument" Exception from PdoBackend. We
>> need to specify also a host. E.g.:
>
> That depends on your PHP setup. The lines I posted work for me, probably
> because I have configured pdo_mysql.default_socket to
> /opt/local/var/run/mysql5/mysqld.sock.
Oh I see. But would it be so bad if PdoBackend sets localhost to default
anyway? Would that lead to any disadvantage? I guess I'm not the only
one with that PHP setup.
>> 2) Now before this can work you need to create the tables. Therefor you
>> can use
>> Packages/Framework/FLOW3/Resources/Private/Persistance/SQL/DDL.sql. But
>> if you want to feed mysql directly (without PDO in between) you need to
>> change a little bit of the syntax.
>
> The easier way is to issue this command before creating the tables:
> SET SESSION sql_mode='ANSI';
> That makes MySQL understand the correct syntax we use :) You can also
> make that the default for your server.
Oh that's indeed much easier, thx! I'm such a user ;) So I guess in
future the install script will do that job of creating the tables?
>> 3) Now you need to define an encryptionKey for the security package. But
>> be warned if you change that in your global configuration it won't work
>> because in Framework/FLOW3/Configuration/Settings.yaml it is set to an
>> empty string and your global setting will be owned. (Shall I open an
>> issue for that?)
>
> Yes, please. That shouldn't be the case. Include your relevant
> configuration parts with the report, thanks.
done.
More information about the FLOW3-general
mailing list