Installation problem
Permalink Browser Info Environment
Hi,
Upon clicking on 'install' in the 'Add Functionality' window, it comes up with an error. Please see attached.
I have used your slider on another website and it was fine. However, I'm installing this one on a newer server which has MySQL 5.6.
Are you able to shed any light on why that error is showing. Hence I can't use it at the moment.
Thanks
Upon clicking on 'install' in the 'Add Functionality' window, it comes up with an error. Please see attached.
I have used your slider on another website and it was fine. However, I'm installing this one on a newer server which has MySQL 5.6.
Are you able to shed any light on why that error is showing. Hence I can't use it at the moment.
Thanks
Type: | Discussion |
---|---|
Status: | In Progress |
Hi Jero,
Thanks for that. I tried installing the manual-nav1 that you suggested and it came up with the same error, so yes perhaps it's not your add-on. I'm happy to try your possible workaround although I understand if it's a c5 core issue it's best to be fixed and not bandaided.
Thanks for that. I tried installing the manual-nav1 that you suggested and it came up with the same error, so yes perhaps it's not your add-on. I'm happy to try your possible workaround although I understand if it's a c5 core issue it's best to be fixed and not bandaided.
HI
Thanks for trying the other addon, it does point to the underlying problem being an issue with the doctrine database layer. I have attached an updated package controller which you would need to upload to packages/jero_cycle/controller.php.
If you could upload that and try installing my addon again and let me know the result.
Thanks for trying the other addon, it does point to the underlying problem being an issue with the doctrine database layer. I have attached an updated package controller which you would need to upload to packages/jero_cycle/controller.php.
If you could upload that and try installing my addon again and let me know the result.
Thanks. Just checking....I need to rename the controller.php.txt to controller.php and overwrite the jero_cycle/controller.php?
Hi Jero,
Ok, I replaced jero_cycle/controller with the new controller.php that you provided. I had uninstalled and then uploaded the package again and installed, but it's now coming up with 'An Unexpected error occured' Cannot redeclare class Concrete\Package\JeroCycle\Controller
Ok, I replaced jero_cycle/controller with the new controller.php that you provided. I had uninstalled and then uploaded the package again and installed, but it's now coming up with 'An Unexpected error occured' Cannot redeclare class Concrete\Package\JeroCycle\Controller
Odd. Replacing one file should not be causing that problem. Generally when there's an error about redeclaring it's because there are two files with the same class. The file should replace packages/jero_cycle/controller.php, NOT packages/jero_cycle/blocks/jero_cycle/controller.php,
If it's still not working, try using the attached zip file which is the 1.0.1 version with the fix in it:
If it's still not working, try using the attached zip file which is the 1.0.1 version with the fix in it:
yes, rename it, and then overrite /packages/jero_cycle/controller.php
Thanks. I've installed the new complete add-on but I'm getting the original message again 'Unknown database type enum requested. Doctrine\DBAL\Platforms\MySqlPlatform may not support it.'
Thanks for trying to help with this. Not sure if it's something that you are able to log with C5 developers if you think it's a core problem? Not sure how all that works.
I might run it past another C5 developer guy that I know.
Thanks for trying to help with this. Not sure if it's something that you are able to log with C5 developers if you think it's a core problem? Not sure how all that works.
I might run it past another C5 developer guy that I know.
Sure - I'm kind of guessing here. I'm attaching another version with the same fix, this one is in the install method, rather than on start. If you could give that a go??
Failing that it I will report the bug.
Failing that it I will report the bug.
That worked! Thanks. I'll leave it up to you if you think it needs to be reported as a bug in the core.
Appreciate you assistance with this. Thanks so much :)
Appreciate you assistance with this. Thanks so much :)
Cool. Always happy to help out another Australasian :)
I'll look into reporting the issue - there is a known problem with doctrine and the fix really needs to be in the core. I'd be careful with the fix - it may come back to haunt you but if it works for now, great.
I'll look into reporting the issue - there is a known problem with doctrine and the fix really needs to be in the core. I'd be careful with the fix - it may come back to haunt you but if it works for now, great.
Mmm, just went to clear the cache and that same error came up! I uninstalled your addon incase it was related but tried clearing cache again and the error still showed, so I guess it might be worth reporting.
Yes, not altogether surprising. My fix only affects the install of the package. You could copy the additional code add to the install() method into the on_start() method, and see if that fixes the cache issue. on_start() is likely to get run in a lot more places.
I don't think it's anything to do with my addon. The database tables it uses are composed of integer, text and string data types, no enum types at all. I would assume therefore that something else in the install process is throwing this error. Have you tried adding any other packages - preferably ones that install blocks? The package installer is two lines, both of which are required so there's nothing I can change.
If you could try another package, maybehttps://www.concrete5.org/marketplace/addons/manual-nav1... and let me know if you get the same error? I have a possible workaround but I don't have access to a MySQL 5.6 server so I cannot test it, other than to confirm it doesn't appear to break anything. My concern here is that it's a concrete5 core issue which an addon really doesn't want to be trying to patch.