Tom Posted August 23, 2011 Report Posted August 23, 2011 I'm receiving a 'Fatal error: Cannot redeclare class Aircraft ' error when creating a module called 'Aircraft', however I do not seem to have a module or data class called Aircraft. Where is this? Tom Quote
Guest lorathon Posted August 23, 2011 Report Posted August 23, 2011 If you don't have another called Aircraft, maybe it is being declared twice inside of the module? Quote
Tom Posted August 23, 2011 Author Report Posted August 23, 2011 Nope it's only in there once. It says the error is with line 58 which is the closing } for the Aircraft class. Quote
Moderators mark1million Posted August 23, 2011 Moderators Report Posted August 23, 2011 This may be a silly answer but have you tried renaming to Aircraft1 ? Maybe that will work. Quote
Tom Posted August 23, 2011 Author Report Posted August 23, 2011 This may be a silly answer but have you tried renaming to Aircraft1 ? Maybe that will work. I've called it Aircrafts for now and the page loads, however is it not normal practice for the file name and class name to be the same? I have to have it called Aircraft for the sake of the URL. (I also don't want random code running if it doesn't have to be) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.