mruz / base-app

The base application in PhalconPHP
63 stars 19 forks source link

Error when user signup #37

Closed cengizcoskun closed 8 years ago

cengizcoskun commented 8 years ago

Error when user signup:

Fatal error: Declaration of Baseapp\Extension\Uniqueness::validate() must be compatible with Phalcon\Validation\Validator::validate(Phalcon\Validation $validation, $attribute) in ......\app\common\extension\Uniqueness.php on line 12

error-baseapp

amsharma9 commented 8 years ago

I think there is still some issue. It gives this error in php errorlog: PHP Fatal error: Cannot use Phalcon\Validation as Validation because the name is already in use in C:\Wamp\www\base-app\app\common\extension\Uniqueness.php on line 5

amsharma9 commented 8 years ago

I still got an error. I carefully copied all your changed files to my app but I still get this error. [25-Apr-2016 10:10:29 Asia/Calcutta] PHP Warning: Invalid argument supplied for foreach() in C:\Wamp\www\base-app\app\Bootstrap.php on line 468

mruz commented 8 years ago

Could you debg messages variable? Add in the line 468

echo $dump->one($messages); exit();
amsharma9 commented 8 years ago

This error is not occurring now. It was probably because of some other reason. I even placed your debug statement above but it never got executed. I think it was going to that statement because of some error and now its not occuring. I will try to recreate the issue, give me some time. Thanks for your patience.