Simple Accordion Elements can only expand but not collapse

Permalink Browser Info Environment
Dear Xanweb Support team,

I have a strange behavior with the "Simple Accordion" block.

When a user would come to a page of my website, he would be able to expand an accordion element but not close it.

The behavior happens with your Block Type "Simple Accordion" and the standard "Accordion."

I just updated to your latest version 2.5.6 (coming from 2.5.4), but the behavior was still the same.

I see that it is working on your demo page (https://replica-pro-v9.xanium.io/index.php/blocks/custom-blocks/simple-accordion) as it should.

I searched a bit through the ConcreteCMS reported issues on Github. This one looks related:https://github.com/concretecms/concretecms/issues/10741...

What do you think about the issue?

Kind regards,
Christian

Type: Ticket
Status: Resolved
Christian_Ka
View Replies:
Xanweb replied on at Permalink Reply
Xanweb
Hi,

Can you send us a link please so we can investigate the problem?

Thanks,
Hamed
Xanweb Support Team
Christian_Ka replied on at Permalink Reply
Christian_Ka
Hi Hamed,

Sure - I created a test page - at the top based on "Accordion," followed by "Simple Accordion." Content is in twice blocks the same.

URL

You can find additional pages with accordion blocks under "MENU-ITEM" in the menu. They are currently based on "Accordion." Once the issue is fixed, I would rebuild them based on "Simple Accordion."

Let me know if you need further information. I appreciate your help!

Kind regards,
Christian
Xanweb replied on at Permalink Reply
Xanweb
Hi Christian,

Yeah i can confirm, this is a core bug. the "Accordion" block is loading the Bootstrap Collapse library which is already loaded by the core.

So loading the Collapse library twice will prevent the Accordion from working correctly.

We can prevent the issue by using the proposed solution herehttps://github.com/concretecms/concretecms/issues/10741#issuecomment...
We will fix that in the next release and let you know when it gets ready.

For now just remove the "Accordion" block from the page and just use "Simple Accordion".

Hope that helps,

Kind regards,
Hamed
Christian_Ka replied on at Permalink Reply
Christian_Ka
Hi Hamed,

Many thanks for your investigation and proposed approach.

I have not tried the "Simple Accordion" alone on one page, as I have not thought about this. So this is an excellent hint for me to have a workaround in the meantime.

Kind regards,
Christian
Xanweb replied on at Permalink Reply
Xanweb
Dear Christian,

A new version (v2.5.7) which contains a fix for the accordion issue is now available.

Kind regards,
Xanweb Support Team
Christian_Ka replied on at Permalink Reply
Christian_Ka
Dear Xanweb Support team,

many thanks! I just tried version 2.5.7 and it was working accordingly.

Many thanks & kind regards,
Christian

concrete5 Environment Information

# Concrete Version
Core Version - 9.1.1
Version Installed - 9.1.1
Database Version - 20220516191423

# Database Information
Version: 10.5.16-MariaDB-1:10.5.16+maria~focal-log
SQL Mode: NO_ENGINE_SUBSTITUTION

# Concrete Packages
Active Cookie Consent (2.1), Afixia: Automatic WebP Image Conversion (2.0.1), Empty Anchor (1.0.0), Honest Websites Back To Top (1.1.0), Light Slider (2.0), Pages Carousel (2.0.2), Replica Pro Theme (2.5.6), Timeline (2.0)

# Concrete Overrides
None

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

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
8.1.7

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mongodb, mysqli, mysqlnd, OAuth, odbc, openssl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, raphf, Reflection, session, shmop, SimpleXML, soap, sodium, SourceGuardian, SPL, sqlite3, standard, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 3000
memory_limit - 512M
post_max_size - 200M
upload_max_filesize - 200M
zend.exception_string_param_max_len - 15
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
raphf.persistent_handle.limit - -1
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096
opcache.jit_bisect_limit - 0
opcache.jit_max_exit_counters - 8192
opcache.jit_max_loop_unrolls - 8
opcache.jit_max_polymorphic_calls - 2
opcache.jit_max_recursive_calls - 2
opcache.jit_max_recursive_returns - 2
opcache.jit_max_root_traces - 1024
opcache.jit_max_side_traces - 128
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 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.