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

[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 ...



43.9k

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.



1.5k
edited Dec '15

Thanks for reply.. this is error,



43.9k
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.phalcon.io/en/latest/reference/odm.html#creating-models

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



1.5k

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]



43.9k

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");