Creating block in general

Permalink Browser Info Environment
I am able to make the blocks. Unable to install the blocks.
When I try to install the generated block I get the following message:
Unknown database type enum requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it.

1 Attachment

Type: Ticket
Status: Archived
tappancommunicatie
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

Are you able to drop the config.json file (zipped) in a reply? You can find this under application/blocks/your_block_handle/config.json.

Kind regards,

Ramon
tappancommunicatie replied on at Permalink Reply 1 Attachment
tappancommunicatie
Here it is. I have tried simple block as wel with only a field input but that wouldn't work as well
ramonleenders replied on at Permalink Reply
ramonleenders
Already figured this wasn't a Block Designer issue, but more of a concrete5 issue.

I've come across this post on Google:

http://www.johnkramlich.com/blog/2013/10/29/doctrine-2-unknown-data...

But that is for 5.6 and below. This one though is for 5.7:

https://www.concrete5.org/community/forums/customizing_c5/unknown-da...

It says the fix in the original post and someone confirmed it worked.

Let me know if that did the trick for you too!

Kind regards,

Ramon
tappancommunicatie replied on at Permalink Reply
tappancommunicatie
that post indeed helped me.

i've added
Database::getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');


to the file
application/bootstrap/app.php
and it worked like a charm!
Thank you for the quick support!
ramonleenders replied on at Permalink Reply
ramonleenders
No problemo. Here to help! :)
simonchilton replied on at Permalink Reply
simonchilton
Worked perfectly for me, thanks!

(version 8.2)
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.6
Version Installed - 5.7.5.6
Database Version - 20151221000000

# concrete5 Packages
Block Designer (1.3.13), Breadcrumb Trail Page Links (1.1), Growthcurve Vimeo Video (0.9.1), Kenteken Check (0.8.0), Manual Nav (2.0.0), Salix (0.9.5), Template Carousel (0.9.0), Tweet Feed Block Components (0.9.13).

# concrete5 Overrides
blocks/pjotr/edit.php, blocks/pjotr/form.php, blocks/pjotr/db.xml, blocks/pjotr/composer.php, blocks/pjotr/icon.png, blocks/pjotr/view.php, blocks/pjotr/config.json, blocks/pjotr/add.php, blocks/pjotr/controller.php, blocks/pjotr, blocks/image_slider/view.php, blocks/image_slider, attributes/select/type_form.php, attributes/select, js/app.js, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, blocks/pjotr/edit.php, blocks/pjotr/form.php, blocks/pjotr/db.xml, blocks/pjotr/composer.php, blocks/pjotr/icon.png, blocks/pjotr/view.php, blocks/pjotr/config.json, blocks/pjotr/add.php, blocks/pjotr/controller.php, blocks/pjotr, blocks/image_slider/view.php, blocks/image_slider, attributes/select/type_form.php, attributes/select, js/app.js, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT

# 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

# Server API
apache2handler

# PHP Version
5.4.31

# PHP Extensions
apache2handler, bcmath, calendar, Core, ctype, curl, date, dom, ereg, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 64M
sql.safe_mode - Off
upload_max_filesize - 32M
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
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36

Hide Post Content

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

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.