# |
Jan 13th 2020, 18:14 |
MrEm |
This started happening when I started trying to implement Authentication |
# |
Jan 13th 2020, 18:12 |
MrEm |
I keep getting an error message every time I post a form:Illegal offset type in isset or empty [ROOT/vendor/cakephp/authentication/src/Authenticator/FormAuthenticator.php, line 63] |
# |
Jan 13th 2020, 16:43 |
Human_G33k |
find i guess |
# |
Jan 13th 2020, 16:41 |
Human_G33k |
the book/doc for the 4th is just a mess |
# |
Jan 13th 2020, 16:41 |
Human_G33k |
by default there is a conventionnal name for a debug_lan_config.php file or it fust load all file in the directory |
# |
Jan 13th 2020, 16:40 |
neon1024 |
Good find! |
# |
Jan 13th 2020, 16:37 |
Human_G33k |
it was about the test connection |
# |
Jan 13th 2020, 16:37 |
Human_G33k |
ok find |
# |
Jan 13th 2020, 16:35 |
neon1024 |
As I mentioned above for MySQL. Although I can’t help with Postgres, and I haven’t used it, sorry |
# |
Jan 13th 2020, 16:35 |
neon1024 |
I would imagine that Postgres is configured to only allow localhost |
# |
Jan 13th 2020, 16:35 |
Human_G33k |
but not from the lan |
# |
Jan 13th 2020, 16:35 |
Human_G33k |
it s working fine in/from/to localhost |
# |
Jan 13th 2020, 16:35 |
neon1024 |
Could simply be a missing `use` statement |
# |
Jan 13th 2020, 16:34 |
Human_G33k |
*app_local |
# |
Jan 13th 2020, 16:34 |
neon1024 |
I mean, is Postgres installed? |
# |
Jan 13th 2020, 16:34 |
Human_G33k |
and in the same in app.php |
# |
Jan 13th 2020, 16:34 |
neon1024 |
Might be Composer autoloader? |
# |
Jan 13th 2020, 16:34 |
neon1024 |
You don’t need it, but your application is looking for it. That’s your bug |
# |
Jan 13th 2020, 16:34 |
Human_G33k |
'driver' => Postgres::class, in app.php |
# |
Jan 13th 2020, 16:34 |
neon1024 |
Because the app.default.php has been copied |
# |
Jan 13th 2020, 16:34 |
Human_G33k |
why i need the mysql if i will not use it ? |
# |
Jan 13th 2020, 16:33 |
neon1024 |
Probably because your app.php is using MySQL |
# |
Jan 13th 2020, 16:33 |
neon1024 |
Is why that message is being displayed |
# |
Jan 13th 2020, 16:33 |
neon1024 |
missing PHP extension |
# |
Jan 13th 2020, 16:33 |
Human_G33k |
so why the error message ? |
# |
Jan 13th 2020, 16:33 |
Human_G33k |
il my all config file |
# |
Jan 13th 2020, 16:33 |
Human_G33k |
'driver' => Postgres::class, |
# |
Jan 13th 2020, 16:33 |
neon1024 |
So read the error out loud now to yourself |
# |
Jan 13th 2020, 16:32 |
neon1024 |
Right, so nothing to do with Postgres then. |
# |
Jan 13th 2020, 16:32 |
Human_G33k |
is the error |
# |
Jan 13th 2020, 16:32 |
Human_G33k |
Database driver Cake\Database\Driver\Mysql cannot be used due to a missing PHP extension or unmet dependency |
# |
Jan 13th 2020, 16:32 |
neon1024 |
That doesn’t sound right, MySQL wouldn’t have a Postgres config file, they’re different databases |
# |
Jan 13th 2020, 16:31 |
neon1024 |
You said “but not from the lan” |
# |
Jan 13th 2020, 16:31 |
Human_G33k |
and it talk about mysql but all conf file contain postgres |
# |
Jan 13th 2020, 16:31 |
neon1024 |
Oh sure, 127.0.0.1 will work, that’s localhost |
# |
Jan 13th 2020, 16:31 |
neon1024 |
192.168.1.12 or whatever it is |
# |
Jan 13th 2020, 16:31 |
Human_G33k |
but it s work in local |
# |
Jan 13th 2020, 16:31 |
neon1024 |
..and then access is using the machines lan ip |
# |
Jan 13th 2020, 16:30 |
Human_G33k |
it says database driver is wrong |
# |
Jan 13th 2020, 16:30 |
neon1024 |
You would need to expose the database to the network |
# |
Jan 13th 2020, 16:30 |
Human_G33k |
but not from the lan |