Gazley Posted August 12, 2012 Posted August 12, 2012 HI there, I added my first module (thanks to Soma) but have noticed something. I made a change (added a new method and deleted a method) to the module and PW just threw an error in both the browser and Admin panel. There is obviously something you have to do around changes but I can't seem to find anything about this. I also had to uninstall and reinstall my module and the ID assigned by PW now seems to have skipped a few values. Is this a problem? Do I need to clean this up in someway? Thanks!
Pete Posted August 12, 2012 Posted August 12, 2012 I suppose it's possible it cached some information, but if you uninstalled it and reinstalled it and the error went away then that's the solution. Doesn't matter if it skips a few number in the module ID when you do this - it'll just be the auto-increment value in the modules table in the database I suspect.
Gazley Posted August 12, 2012 Author Posted August 12, 2012 Thanks Pete. Are there any rules around changing the module that you're aware of? It just error when I changed the contents of the module and the errors only cleared up when I put the module back to its original form.
Gazley Posted August 12, 2012 Author Posted August 12, 2012 No worries on my last point. There was a problem in my function that PHP was choking on - nothing to do with the module.
Soma Posted August 12, 2012 Posted August 12, 2012 If you install it and change the class name you'll have a problem. And I noticed if you change autoload option wehn already installed I sometimes had to reinstall so it really gets saved in DB. Other than that you can just make changes without doing something, add new methods etc. If you would provide the error it throws and some more details what your code looks like it would be easier to help.
Gazley Posted August 12, 2012 Author Posted August 12, 2012 Soma, it was a PHP error with my code. Nothing to do with the Module system. Just me being stupid
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now