We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

vokuro demo

in page https://vokuro.phalcon.io/session/signup i see only this:

SQLSTATE[HY000] [2002] Connection refused

0 [internal function]: PDO->__construct('mysql:host=127....', 'root', '', Array)

1 [internal function]: Phalcon\Db\Adapter\Pdo->connect(Array)

2 /data/nikos/phalcon.io/vokuro/app/config/services.php(71): Phalcon\Db\Adapter\Pdo->__construct(Array)

3 [internal function]: {closure}()

4 [internal function]: Phalcon\Di\Service->resolve(NULL, Object(Phalcon\Di\FactoryDefault))

5 [internal function]: Phalcon\Di->get('db', NULL)

6 [internal function]: Phalcon\Di->getShared('db')

7 [internal function]: Phalcon\Mvc\Model\Manager->_getConnection(Object(Vokuro\Models\Users), NULL)

8 [internal function]: Phalcon\Mvc\Model\Manager->getReadConnection(Object(Vokuro\Models\Users))

9 [internal function]: Phalcon\Mvc\Model->getReadConnection()

10 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(Vokuro\Models\Users), Object(Phalcon\Di\FactoryDefault))

11 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(Vokuro\Models\Users), 'vokuro\models\u...', 'users', '')

12 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaDataIndex(Object(Vokuro\Models\Users), 0)

13 [internal function]: Phalcon\Mvc\Model\MetaData->getAttributes(Object(Vokuro\Models\Users))

14 /data/nikos/phalcon.io/vokuro/app/controllers/SessionController.php(48): Phalcon\Mvc\Model->assign(Array)

15 [internal function]: Vokuro\Controllers\SessionController->signupAction()

16 [internal function]: Phalcon\Dispatcher->dispatch()

17 /data/nikos/phalcon.io/vokuro/public/index.php(33): Phalcon\Mvc\Application->handle()

18 {main}

I guess you did not set your DB connection in the config here: https://github.com/phalcon/vokuro/blob/master/app/config/config.php



17.6k
edited Mar '16

It's not me, it's official example from phalcon.io

edited Mar '16

It's not me, it's official example from phalcon.io

Well i guess it was a temporary server problem and it was fixed :)