Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gettext adapter constructor error with Phalcon 2.0.10 #11429

Closed
Gamblt opened this issue Feb 18, 2016 · 2 comments
Closed

Gettext adapter constructor error with Phalcon 2.0.10 #11429

Gamblt opened this issue Feb 18, 2016 · 2 comments

Comments

@Gamblt
Copy link

Gamblt commented Feb 18, 2016

After updating on 2.0.10 I've got fatal error in Phalcon gettext adapter constructor.

[error] 7465#7465: *2696 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid callback MyProject\Components\Translate::prepareoptions, cannot access private method MyProject\Components\Translate::prepareOptions() in /var/www/MyProject/app/components/Translate.php on line 39
PHP message: PHP Stack trace:
PHP message: PHP   1. {main}() /var/www/MyProject/public/index.php:0
PHP message: PHP   2. MyProject\Bootstrap->run() /var/www/MyProject/public/index.php:15
PHP message: PHP   3. MyProject\Components\Translate->__construct() /var/www/MyProject/app/Bootstrap.php:162
PHP message: PHP   4. Phalcon\Translate\Adapter\Gettext->__construct() /var/www/MyProject/app/components/Translate.php:39
PHP message: PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'Call to undefined method MyProject\Components\Translate::prepareoptions(), did you mean 'prepareOptions'?' in /var/www/MyProject/app/components/Translate.php:39
Stack trace:
#0 /var/www/MyProject/app/components/Translate.php(39): Phalcon\Translate\Adapter\Gettext->__construct(Array)
#1 /var/www/MyProject/app/Bootstrap.php(162): MyProject\Components\Translate->__construct(Object(Phalcon\Config))
#2 /var/www/MyProject/public/index.php(15): MyProject\Bootstrap->run()
#3 {main}
  thrown in /var/www/MyProject/app/components/Translate.php on line 39" while reading response header from upstream, client: 127.0.0.1

2.0.9 works good.

@sergeyklay
Copy link
Contributor

Thanks for reporting. Will be fixed quickly

@sergeyklay
Copy link
Contributor

Fixed in 2.0.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants