$this->Auth->login() creates correct query that returns 1 row, but fails IF check (server specific issue)

前端 未结 1 1741
我在风中等你
我在风中等你 2020-12-12 00:48

We have a site that we\'re moving to a new server. Everything worked fine on the old server. It\'s just the start of a site, so it\'s pretty bare-bones.

When movin

1条回答
  •  抹茶落季
    2020-12-12 01:33

    Answer by Original Poster (me):

    According to our server guy, "There are two ways to load PDO. The first is by using easyapache to install the PDO php extension. The second is by installing the PDO via PECL. It appears that the modules in question are different."

    Apparently, this server had PECL on it instead of the normal easyapache PDO. When he removed that, and restarted/reset it with the easyapache PDO, everything worked great.

    So - sounds like CakePHP requires the "normal" PDO.

    Mystery solved.


    If you have PECL instead, you can use this workaround:

    1. Create a file "HpMysql.php" in your Datasource folder and add this code/class: https://github.com/lorenzo/HipHop/blob/master/Model/Datasource/Database/HpMysql.php

    2. Change your database.php 'datasource' to 'HpMysql'

    0 讨论(0)
提交回复
热议问题