Replies: 4 comments
-
Hello, check this upgrade guide, might help |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I used https://github.com/diplopito/Phalcon-Upgrade-Adviser and check all that the report log told me, thank you. My problem persist anyway, i remove all view cache related, but my problem persist, this is my services and cache files:
|
Beta Was this translation helpful? Give feedback.
-
Comment out all of |
Beta Was this translation helpful? Give feedback.
-
Hello,
So, i'm in the process of migration my personal website from Phalcon 2 with php 5 to Phalcon4 and php7.2, my site was working perfectly but.... well, i think i delayed this to many times....
So, leaving apart that upgrading a huge site like mine is a really annoying process, at this moment i have 2 days full time trying to and doing my best, im stuck with this error:
Fatal error: Uncaught RuntimeException: Call to undefined method Phalcon\Cache::hasattribute() in /home/simpleweb/public_html/app/controllers/IndexController.php:31 Stack trace: #0 [internal function]: Phalcon\Mvc\Model\Query->_getQualified(Array) #1 [internal function]: Phalcon\Mvc\Model\Query->_getExpression(Array) #2 [internal function]: Phalcon\Mvc\Model\Query->_getOrderClause(Array) #3 [internal function]: Phalcon\Mvc\Model\Query->_prepareSelect() #4 [internal function]: Phalcon\Mvc\Model\Query->parse() #5 [internal function]: Phalcon\Mvc\Model\Query->execute() #6 /home/simpleweb/public_html/app/controllers/IndexController.php(31): Phalcon\Mvc\Model::find(Array) #7 [internal function]: IndexController->indexAction() #8 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(IndexController), 'indexAction', Array) #9 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch() #10 /home/simpleweb/public_html/public/index.php(17): Phalcon\M in /home/simpleweb/public_html/app/controllers/IndexController.php on line 31
IndexController.php:31
I found weird this call Phalcon\Cache::hasattribute(), since i check the docs and hasattribute method is from Phalcon\Mvc\Model\ModelInterface.
Thank you very much for the time of anyone who will try to give me some idea on how to fix this.
Beta Was this translation helpful? Give feedback.
All reactions