Tabbed form not working

Permalink Browser Info Environment
I'm using a config.php with tabs. See attached file.
The form displays with the tab list, but all the fields are displayed instead of being filtered by selected tabs (see screenshot).

Looking at the generated HTML, the tabs are there, but clicking on the tabs does nothing (no display: none compared to another site where I use this feature). Comparing the generated HTML between the two sites, it seems that there is a script missing between the ul.nav-tabs and the div.ccm-tab-content - the script that contained something like $(function() { ccm_activateTabBar($('#ccm-tabs-766531386'));});.

I don't get any Javascript error in the console. It's just as if nothing gets executed when I click on a tab.

Do you have any idea where the problem is coming from ?

<div id="ccm-block-fields">
<script type="text/javascript">
    $(function () {
        $.each($("[data-attr-color-picker]"), function(){
            var colorPickerConfig = $.parseJSON($(this).attr("data-attr-color-picker"));
            if ($.isPlainObject(colorPickerConfig)) {
               $(this).spectrum(colorPickerConfig); 
            }
            $(this).removeAttr("data-attr-color-picker");
        });
        $.each($("[data-attr-datetime]"), function(){
          var dateTimeConfig = $.parseJSON($(this).attr("data-attr-datetime"));
           if ($.isPlainObject(dateTimeConfig)) {
               console.log(dateTimeConfig);
              $(this).datetimepicker(dateTimeConfig);

2 Attachments

Type: Ticket
Status: Resolved
dangrth
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

I assume this is in the latest version 9 of ConcreteCMS? Then it's probably a new bug, which I have yet to fix. There may be more bugs here and there, which haven't been discovered yet. These will have to go on my TODO list to be fixed! Not using version 9 extensively, because it's pretty new and don't want to have any of the undiscovered bugs in live/production sites - therefore not yet had the time to get around checking everything.

Sorry for the inconvenience.

Kind regards
Ramon
dangrth replied on at Permalink Reply
dangrth
Yes, that's on 9.0.2. I moved back to PHP 7.4.x however, too many issues. I would rather use Concrete5 9 since the site will have a long life and I hope to be able to move to PHP 8 eventualy.

Do you have any idea if you will be able to fix that bug soon since it's quite blocking ? Otherwise I guess I would use a repeater, except it's less natural since I need exactly three items.
ramonleenders replied on at Permalink Reply
ramonleenders
Working on a fix for you right now then, probably not the last thing you will discover as a bug - but I hope it will at least keep you going for a bit! I will let you know when the release is made.

Kind regards
Ramon
dangrth replied on at Permalink Reply
dangrth
Thanks, that's great! So far it has not been too bad, I'm around 75% done on the project, I still have to do a few more blocks with your addon, but as far as feature go, I just expect to have to use a repeater and that's all.
ramonleenders replied on at Permalink Reply
ramonleenders
I'm expecting stuff to go wrong in the "Repeatable" too, so you can make a new issue whenever you're in need of anything for that!

I will close this issue, since this one is fixed :)
ramonleenders replied on at Permalink Reply
ramonleenders
Just released version 1.2.5!

Could you check and let me know if tabbed content is working as expected once again for you?

Kind regards
Ramon
dangrth replied on at Permalink Reply
dangrth
Yes, if works fine now. Thanks again for your very effective support !

concrete5 Environment Information

# Concrete Version
Core Version - 9.0.2
Version Installed - 9.0.2
Database Version - 20220114215506

# Database Information
Version: 5.7.34
SQL Mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# Concrete Packages
Block Developer (1.2.4), Crest Brand 2022 (1.0.27), Debug Kit (0.9.5), Migration Tool (9.0.0)

# Concrete Overrides
authentication/concrete/password_changed.php, authentication/concrete/forgot_password.php, authentication/concrete/change_password.php, authentication/concrete/password_sent.php, authentication/concrete/form.php, authentication/concrete

# Concrete 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.46 (Unix) OpenSSL/1.0.2u mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_wsgi/3.5 Python/2.7.13 mod_perl/2.0.11 Perl/v5.30.1

# Server API
cgi-fcgi

# PHP Version
7.4.26

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, memcached, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, Reflection, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, 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 - 256M
upload_max_filesize - 256M
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
memcached.sess_lock_max_wait - not set
memcached.sess_lock_wait_max - 150
memcached.sess_server_failure_limit - 0
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 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.