[HELP] Mongodb in phalcon error 500

When connect to mongodb below localhost then oke...

But when I use VPS centos 7, php version 5.6 and phalcon 2.0, then get error "500 Internal Server Error"

File Account Controller

File services.php

Please help me, thanks ...



30.0k

Hi,

with "error 500", the best place to look at first is your webserver error log file, it will tells you where the error come from.

edited Dec '15

Thanks for reply.. this is error,



30.0k
edited Dec '15

Hi,

Soory, I was busy.

It looks like your model class(es) are not loaded.

Do they already exists ? See here: https://docs.phalconphp.com/en/latest/reference/odm.html#creating-models

If yes, are they loaded using the autoloader: https://docs.phalconphp.com/en/latest/reference/tutorial.html#autoloaders

No problem, i have realy do it why not change... you can give me skype or chat etc.. I really need your help this little problem my skype is : [email protected]



30.0k

Hi,

error message says that phalcon can't access to Account model class.

in your services.php, looks like you have a typo error (you are using return $mongo->selectDd("api_v1");).

from doc : return $mongo->selectDB("store");