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

PHP Fatal error: Call to undefined method I18n::insertArgs() #6072

Closed
niekutis opened this issue Mar 14, 2015 · 4 comments
Closed

PHP Fatal error: Call to undefined method I18n::insertArgs() #6072

niekutis opened this issue Mar 14, 2015 · 4 comments

Comments

@niekutis
Copy link

Updating cakephp version from 2.5.6 to 2.6.1 i got error:
PHP Fatal error: Call to undefined method I18n::insertArgs() in cakephp-2.6.1/lib/Cake/basics.php on line 638

script is executed from shell:
php /var/www/cakephp-2.6.1/lib/Cake/Console/cake.php -app path/to/app nameapp

@markstory markstory added this to the 2.6.3 milestone Mar 14, 2015
@markstory
Copy link
Member

How can someone reproduce this issue?

@niekutis
Copy link
Author

Found where was problem.
I uses for apps CAKE_CORE_INCLUDE_PATH to point cakephp version
In my app Config/core.php Configure::write('debug', 0);
In my app Config/bootstrap.php Configure::write('debug', 1);
When i changed in core.php debug to 1 when problem fixed.
Maybe it is not issue, but in previews cakephp version upgrades i did not had such situations.

@adduc
Copy link
Contributor

adduc commented Aug 10, 2016

We experienced this updating an app from Cake 2.5 to 2.8. Turns out we had a cron running using the Console from Cake 2.5 (causing cache files with paths pointing to the older Cake version). Switching the cron to the newer version and clearing cache fixed the issue.

@didagu
Copy link

didagu commented Jul 19, 2017

i am trying to run this command "/var/www/tender.ng/public_html/app/Console/cakeshell bgproc processEmailQueue -cli /usr/bin -console /usr/local/src/cake_2_5/Cake/Console -app /var/www/tender.ng/public_html/app/'" on an ubuntu VPS but this is the error i get .

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

No branches or pull requests

4 participants