Error after update |
Hi,
I recently upgraded to CI4 and also updated my WAMP to the latest version. But my project hasn't worked since. There is MY_Controller class that is inherited from CI_Controller placed in application/core/ It gives me this error: Code: An uncaught Exception was encountered Anybody knows what this means or how can I get it fixed?
Version 3.x to 4 is less an upgrade than a migration - you'll have to rewrite the code for the site. See https://codeigniter4.github.io/userguide...e_4xx.html for details.
(03-04-2020, 05:14 AM)maxxd Wrote: Version 3.x to 4 is less an upgrade than a migration - you'll have to rewrite the code for the site. See https://codeigniter4.github.io/userguide...e_4xx.html for details. Hi, thanks for the reply. It turns out there's a built in class called 'Generator', and I have a custom library with the same name. So that created the conflict. I changed my library's name to 'My_generator' and changed the code accordingly and it works now, or at least shows a homepage. However, you're right about the migration, I might get more errors like this as I test my code.
@saror88 You should read up on namespaces. They'll help you to not have conflicts like this, and you'll get a whole lot more use out of CI4 once you get used to it.
|
Welcome Guest, Not a member yet? Register Sign In |