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

invo application register not work.

hi,

i git clone invo to learn phalcon.

i follow invo's Get Started create db and tables

my apache vhosts:

<VirtualHost *:8080>
    ServerName invo.dev
    DocumentRoot "/Users/xujiajun/myPlayground/phalcon-demo/invo"
    <Directory "/Users/xujiajun/myPlayground/phalcon-demo/invo">
        DirectoryIndex index.php
        Options All
        AllowOverride All
        allow from all
    </Directory>
    ErrorLog "/private/var/log/apache2/invo-phalcon.dev.error_log"
    CustomLog "/private/var/log/apache2/invo-phalcon.dev.access_log" common
</VirtualHost>

change config.ini

[database]
adapter  = Mysql
host     = 127.0.0.1
username = root
password = 123
name     = invo

[application]
controllersDir = app/controllers/
modelsDir      = app/models/
viewsDir       = app/views/
pluginsDir     = app/plugins/
formsDir       = app/forms/
libraryDir     = app/library/
baseUri        = /

then visit it https://invo.dev:8080 its works!

but when i visit https://invo.dev:8080/register and submit infomation。it not work.

show message:

Internal Error Something went wrong, if the error continue please contact us

i try to see the error.log for help.but no error loged about this.

i try to debug registerController indexAction ,debug this step error has happen

public function indexAction()
    {
        $form = new RegisterForm;

        if ($this->request->isPost()) {

            $name = $this->request->getPost('name', array('string', 'striptags'));
            var_dump($name);exit(); //debug this step  error has happen 

who can give me some help, Thanks :)



85.5k

This seems wrong to me, but i am not sure what is the end results $form = new RegisterForm;


$form = new RegisterForm();

Your error is 500 ( internal server error ), i think you have to enable display_errors and error_reportings in your php.ini in order to get proper feedback of what went wrong.

Sorry if i am wrong, i havent used this invo project

Thanks your answer.

actually i have enabled error reporting in php.ini: error_reporting = E_ALL display_errors = on

but it no error message show me on the page. so troubled.

This seems wrong to me, but i am not sure what is the end results $form = new RegisterForm;


$form = new RegisterForm();

Your error is 500 ( internal server error ), i think you have to enable display_errors and error_reportings in your php.ini in order to get proper feedback of what went wrong.

Sorry if i am wrong, i havent used this invo project