php - CakePHP 1.3 Shell can't find AppModel class -


i'm migrating cakephp 1.3 app old server new one, website works fine shells fail following error:

php fatal error:  class 'appmodel' not found 

and error points declaration of model extends appmodel class. strangely prints contents of appmodel class stdout. full stack trace below.

php fatal error:  class 'appmodel' not found in /home/andyburchill/src/site/app/models/account.php on line 3 php stack trace: php   1. {main}() /home/andyburchill/src/site/cake/console/cake.php:0 php   2. shelldispatcher->shelldispatcher() /home/andyburchill/src/site/cake/console/cake.php:665 php   3. shelldispatcher->dispatch() /home/andyburchill/src/site/cake/console/cake.php:139 php   4. shell->initialize() /home/andyburchill/src/site/cake/console/cake.php:337 php   5. shell->_loadmodels() /home/andyburchill/src/site/cake/console/libs/shell.php:180 php   6. classregistry->init() /home/andyburchill/src/site/cake/console/libs/shell.php:257 php   7. app->import() /home/andyburchill/src/site/cake/libs/class_registry.php:143 php   8. app->__find() /home/andyburchill/src/site/cake/libs/configure.php:962 php   9. app->__load() /home/andyburchill/src/site/cake/libs/configure.php:1043 php  10. require() /home/andyburchill/src/site/cake/libs/configure.php:1067 

i'm running shell root directory following command:

./cake/console/cake queue 

the notable difference between servers php version, shells working on php 5.4.9 , not working on php 5.5.9.

i have been googling couple of days, people seem error after upgrading cakephp 2.x , fixes don't work cakephp 1.3.

i'm beginning think solution going upgrading 2.x, not trivial task.

is there can in mean time working?, can suggest troubleshooting tips?.

ok feel bit silly now.

i had tried raphael's suggestion of requiring class file decided try again , noticed appmodel class file started short open tag instead of <?php.

after changing shells work.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -