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

1 Attachment

Type: Discussion
Status: In Progress
anete
View Replies:
jero replied on at Permalink Reply
jero
Hi

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.
anete replied on at Permalink Reply
anete
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.
jero replied on at Permalink Reply 1 Attachment
jero
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.
anete replied on at Permalink Reply
anete
Thanks. Just checking....I need to rename the controller.php.txt to controller.php and overwrite the jero_cycle/controller.php?
anete replied on at Permalink Reply
anete
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
jero replied on at Permalink Reply 1 Attachment
jero
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:
jero replied on at Permalink Reply
jero
yes, rename it, and then overrite /packages/jero_cycle/controller.php
anete replied on at Permalink Reply
anete
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.
jero replied on at Permalink Reply 1 Attachment
jero
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.
anete replied on at Permalink Reply
anete
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 :)
jero replied on at Permalink Reply
jero
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.
anete replied on at Permalink Reply
anete
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.
jero replied on at Permalink Reply
jero
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.

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.9
Version Installed - 5.7.5.9
Database Version - 20160615000000

# concrete5 Packages
Cycle2 Slide Show (1.0.1), Webli Menu Maker (1.1.1).

# concrete5 Overrides
languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, themes/padaley/New folder, themes/padaley/default.php, themes/padaley/home.php, themes/padaley/css/skeleton.css, themes/padaley/css/bootstrap-modified.css, themes/padaley/css/main.less, themes/padaley/css, themes/padaley/grids/skeleton_grid.php, themes/padaley/grids, themes/padaley/sass/_normalize.scss, themes/padaley/sass/skeleton.scss, themes/padaley/sass, themes/padaley/js/animatefunctions.js, themes/padaley/js/jquery.pagepiling.js, themes/padaley/js/wow.min.js, themes/padaley/js/html5.js, themes/padaley/js/selectivizr-min.js, themes/padaley/js/custom.js, themes/padaley/js, themes/padaley/README.md, themes/padaley/description.txt, themes/padaley/main.css, themes/padaley/thumbnail.png, themes/padaley/elements/footer.php, themes/padaley/elements/header.php, themes/padaley/elements, themes/padaley/view.php, themes/padaley/animate.css, themes/padaley/page_theme.php, themes/padaley/full.php, themes/padaley, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, themes/padaley/New folder, themes/padaley/default.php, themes/padaley/home.php, themes/padaley/css/skeleton.css, themes/padaley/css/bootstrap-modified.css, themes/padaley/css/main.less, themes/padaley/css, themes/padaley/grids/skeleton_grid.php, themes/padaley/grids, themes/padaley/sass/_normalize.scss, themes/padaley/sass/skeleton.scss, themes/padaley/sass, themes/padaley/js/animatefunctions.js, themes/padaley/js/jquery.pagepiling.js, themes/padaley/js/wow.min.js, themes/padaley/js/html5.js, themes/padaley/js/selectivizr-min.js, themes/padaley/js/custom.js, themes/padaley/js, themes/padaley/README.md, themes/padaley/description.txt, themes/padaley/main.css, themes/padaley/thumbnail.png, themes/padaley/elements/footer.php, themes/padaley/elements/header.php, themes/padaley/elements, themes/padaley/view.php, themes/padaley/animate.css, themes/padaley/page_theme.php, themes/padaley/full.php, themes/padaley

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.7

# Server API
cgi-fcgi

# PHP Version
5.6.23-2+deb.sury.org~trusty+1

# PHP Extensions
calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 50
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 12M
sql.safe_mode - Off
upload_max_filesize - 24M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.