WYSIWYG Inside Repeaters causes JavaScript error

Permalink Browser Info Environment
On each new WYSIWYG editor being added, I get the following error:

Uncaught TypeError: Cannot read property 'length' of null jquery.js:2

It doesn't appear to be affecting functionality at this point, but I'm not sure. Attached is the entire generated block and block designer config.

1 Attachment

Type: Discussion
Status: Resolved
TimDix
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
I don't get any error messages here (not with the block you sent me and not with generating it again from this config.json file). Can you try with the default theme? And if it's working as expected, it's probably caused by something else in the theme.

Kind regards,

Ramon
TimDix replied on at Permalink Reply
TimDix
Ooops!

The issue was with my theme, PageTheme::getThemeEditorClasses() wasn't returning a valid array for the redactor, so each new instantiated WYSIWYG field gave me the JS Error.
ramonleenders replied on at Permalink Reply
ramonleenders
Would have thought so. At least we got that cleared pretty quickly! :)

Kind regards,

Ramon

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.8
Version Installed - 5.7.5.8
Database Version - 20160412000000

# concrete5 Packages
Add Multiple Pages (0.9.5), Block Designer (2.2.2), Block Designer Pro (2.4.0), CBRS (1.0.0), Content Packager (1.0.0).

# concrete5 Overrides
blocks/content_plus/edit.php, blocks/content_plus/form.php, blocks/content_plus/add.php, blocks/content_plus/config.json, blocks/content_plus/js_form/html.sortable.min.js, blocks/content_plus/js_form/handlebars-v4.0.4.js, blocks/content_plus/js_form/handlebars-helpers.js, blocks/content_plus/js_form, blocks/content_plus/composer.php, blocks/content_plus/icon.png, blocks/content_plus/view.php, blocks/content_plus/db.xml, blocks/content_plus/controller.php, blocks/content_plus/auto.js, blocks/content_plus/template_parts/cta.php, blocks/content_plus/template_parts/images.php, blocks/content_plus/template_parts/two_col.php, blocks/content_plus/template_parts/full_width.php, blocks/content_plus/template_parts/ctas.php, blocks/content_plus/template_parts, blocks/content_plus/css_form/repeatable-ft.form.css, blocks/content_plus/css_form, blocks/content_plus, blocks/feature_extended/edit.php, blocks/feature_extended/form.php, blocks/feature_extended/add.php, blocks/feature_extended/config.json, blocks/feature_extended/composer.php, blocks/feature_extended/icon.png, blocks/feature_extended/view.php, blocks/feature_extended/db.xml, blocks/feature_extended/controller.php, blocks/feature_extended, blocks/quote/edit.php, blocks/quote/form.php, blocks/quote/add.php, blocks/quote/config.json, blocks/quote/composer.php, blocks/quote/icon.png, blocks/quote/view.php, blocks/quote/db.xml, blocks/quote/controller.php, blocks/quote, blocks/test/edit.php, blocks/test/form.php, blocks/test/add.php, blocks/test/config.json, blocks/test/js_form/html.sortable.min.js, blocks/test/js_form/handlebars-v4.0.4.js, blocks/test/js_form/handlebars-helpers.js, blocks/test/js_form, blocks/test/composer.php, blocks/test/icon.png, blocks/test/view.php, blocks/test/db.xml, blocks/test/controller.php, blocks/test/auto.js, blocks/test/css_form/repeatable-ft.form.css, blocks/test/css_form, blocks/test, blocks/book_now/templates/overlay/view.php, blocks/book_now/templates/overlay, blocks/book_now/templates, blocks/book_now/icon.png, blocks/book_now/view.php, blocks/book_now/controller.php, blocks/book_now, blocks/content_plus_three/edit.php, blocks/content_plus_three/form.php, blocks/content_plus_three/add.php, blocks/content_plus_three/config.json, blocks/content_plus_three/js_form/html.sortable.min.js, blocks/content_plus_three/js_form/handlebars-v4.0.4.js, blocks/content_plus_three/js_form/handlebars-helpers.js, blocks/content_plus_three/js_form, blocks/content_plus_three/composer.php, blocks/content_plus_three/icon.png, blocks/content_plus_three/view.php, blocks/content_plus_three/db.xml, blocks/content_plus_three/controller.php, blocks/content_plus_three/auto.js, blocks/content_plus_three/css_form/repeatable-ft.form.css, blocks/content_plus_three/css_form, blocks/content_plus_three, blocks/slider_cta/edit.php, blocks/slider_cta/form.php, blocks/slider_cta/add.php, blocks/slider_cta/templates/plan_your_visit.php, blocks/slider_cta/templates, blocks/slider_cta/config.json, blocks/slider_cta/js_form/html.sortable.min.js, blocks/slider_cta/js_form/handlebars-v4.0.4.js, blocks/slider_cta/js_form/handlebars-helpers.js, blocks/slider_cta/js_form, blocks/slider_cta/composer.php, blocks/slider_cta/icon.png, blocks/slider_cta/view.php, blocks/slider_cta/db.xml, blocks/slider_cta/controller.php, blocks/slider_cta/auto.js, blocks/slider_cta/css_form/repeatable-ft.form.css, blocks/slider_cta/css_form, blocks/slider_cta, blocks/test_two/edit.php, blocks/test_two/form.php, blocks/test_two/add.php, blocks/test_two/config.json, blocks/test_two/js_form/html.sortable.min.js, blocks/test_two/js_form/handlebars-v4.0.4.js, blocks/test_two/js_form/handlebars-helpers.js, blocks/test_two/js_form, blocks/test_two/composer.php, blocks/test_two/icon.png, blocks/test_two/view.php, blocks/test_two/db.xml, blocks/test_two/controller.php, blocks/test_two/auto.js, blocks/test_two/css_form/repeatable-ft.form.css, blocks/test_two/css_form, blocks/test_two, blocks/content_plus_two/edit.php, blocks/content_plus_two/form.php, blocks/content_plus_two/add.php, blocks/content_plus_two/config.json, blocks/content_plus_two/js_form/html.sortable.min.js, blocks/content_plus_two/js_form/handlebars-v4.0.4.js, blocks/content_plus_two/js_form/handlebars-helpers.js, blocks/content_plus_two/js_form, blocks/content_plus_two/composer.php, blocks/content_plus_two/icon.png, blocks/content_plus_two/view.php, blocks/content_plus_two/db.xml, blocks/content_plus_two/controller.php, blocks/content_plus_two/auto.js, blocks/content_plus_two/css_form/repeatable-ft.form.css, blocks/content_plus_two/css_form, blocks/content_plus_two, blocks/instagram_feed/edit.php, blocks/instagram_feed/form.php, blocks/instagram_feed/add.php, blocks/instagram_feed/config.json, blocks/instagram_feed/composer.php, blocks/instagram_feed/icon.png, blocks/instagram_feed/view.php, blocks/instagram_feed/db.xml, blocks/instagram_feed/controller.php, blocks/instagram_feed, blocks/jackpot/view.php, blocks/jackpot/controller.php, blocks/jackpot, blocks/manual_nav/edit.php, blocks/manual_nav/build.scss, blocks/manual_nav/form.php, blocks/manual_nav/add.php, blocks/manual_nav/build.js, blocks/manual_nav/build.css, blocks/manual_nav/config.json, blocks/manual_nav/js_form/html.sortable.min.js, blocks/manual_nav/js_form/handlebars-v4.0.4.js, blocks/manual_nav/js_form/handlebars-helpers.js, blocks/manual_nav/js_form, blocks/manual_nav/composer.php, blocks/manual_nav/icon.png, blocks/manual_nav/view.php, blocks/manual_nav/db.xml, blocks/manual_nav/controller.php, blocks/manual_nav/auto.js, blocks/manual_nav/css_form/repeatable-ft.form.css, blocks/manual_nav/css_form, blocks/manual_nav, blocks/content_plus/edit.php, blocks/content_plus/form.php, blocks/content_plus/add.php, blocks/content_plus/config.json, blocks/content_plus/js_form/html.sortable.min.js, blocks/content_plus/js_form/handlebars-v4.0.4.js, blocks/content_plus/js_form/handlebars-helpers.js, blocks/content_plus/js_form, blocks/content_plus/composer.php, blocks/content_plus/icon.png, blocks/content_plus/view.php, blocks/content_plus/db.xml, blocks/content_plus/controller.php, blocks/content_plus/auto.js, blocks/content_plus/template_parts/cta.php, blocks/content_plus/template_parts/images.php, blocks/content_plus/template_parts/two_col.php, blocks/content_plus/template_parts/full_width.php, blocks/content_plus/template_parts/ctas.php, blocks/content_plus/template_parts, blocks/content_plus/css_form/repeatable-ft.form.css, blocks/content_plus/css_form, blocks/content_plus, blocks/feature_extended/edit.php, blocks/feature_extended/form.php, blocks/feature_extended/add.php, blocks/feature_extended/config.json, blocks/feature_extended/composer.php, blocks/feature_extended/icon.png, blocks/feature_extended/view.php, blocks/feature_extended/db.xml, blocks/feature_extended/controller.php, blocks/feature_extended, blocks/quote/edit.php, blocks/quote/form.php, blocks/quote/add.php, blocks/quote/config.json, blocks/quote/composer.php, blocks/quote/icon.png, blocks/quote/view.php, blocks/quote/db.xml, blocks/quote/controller.php, blocks/quote, blocks/test/edit.php, blocks/test/form.php, blocks/test/add.php, blocks/test/config.json, blocks/test/js_form/html.sortable.min.js, blocks/test/js_form/handlebars-v4.0.4.js, blocks/test/js_form/handlebars-helpers.js, blocks/test/js_form, blocks/test/composer.php, blocks/test/icon.png, blocks/test/view.php, blocks/test/db.xml, blocks/test/controller.php, blocks/test/auto.js, blocks/test/css_form/repeatable-ft.form.css, blocks/test/css_form, blocks/test, blocks/book_now/templates/overlay/view.php, blocks/book_now/templates/overlay, blocks/book_now/templates, blocks/book_now/icon.png, blocks/book_now/view.php, blocks/book_now/controller.php, blocks/book_now, blocks/content_plus_three/edit.php, blocks/content_plus_three/form.php, blocks/content_plus_three/add.php, blocks/content_plus_three/config.json, blocks/content_plus_three/js_form/html.sortable.min.js, blocks/content_plus_three/js_form/handlebars-v4.0.4.js, blocks/content_plus_three/js_form/handlebars-helpers.js, blocks/content_plus_three/js_form, blocks/content_plus_three/composer.php, blocks/content_plus_three/icon.png, blocks/content_plus_three/view.php, blocks/content_plus_three/db.xml, blocks/content_plus_three/controller.php, blocks/content_plus_three/auto.js, blocks/content_plus_three/css_form/repeatable-ft.form.css, blocks/content_plus_three/css_form, blocks/content_plus_three, blocks/slider_cta/edit.php, blocks/slider_cta/form.php, blocks/slider_cta/add.php, blocks/slider_cta/templates/plan_your_visit.php, blocks/slider_cta/templates, blocks/slider_cta/config.json, blocks/slider_cta/js_form/html.sortable.min.js, blocks/slider_cta/js_form/handlebars-v4.0.4.js, blocks/slider_cta/js_form/handlebars-helpers.js, blocks/slider_cta/js_form, blocks/slider_cta/composer.php, blocks/slider_cta/icon.png, blocks/slider_cta/view.php, blocks/slider_cta/db.xml, blocks/slider_cta/controller.php, blocks/slider_cta/auto.js, blocks/slider_cta/css_form/repeatable-ft.form.css, blocks/slider_cta/css_form, blocks/slider_cta, blocks/test_two/edit.php, blocks/test_two/form.php, blocks/test_two/add.php, blocks/test_two/config.json, blocks/test_two/js_form/html.sortable.min.js, blocks/test_two/js_form/handlebars-v4.0.4.js, blocks/test_two/js_form/handlebars-helpers.js, blocks/test_two/js_form, blocks/test_two/composer.php, blocks/test_two/icon.png, blocks/test_two/view.php, blocks/test_two/db.xml, blocks/test_two/controller.php, blocks/test_two/auto.js, blocks/test_two/css_form/repeatable-ft.form.css, blocks/test_two/css_form, blocks/test_two, blocks/content_plus_two/edit.php, blocks/content_plus_two/form.php, blocks/content_plus_two/add.php, blocks/content_plus_two/config.json, blocks/content_plus_two/js_form/html.sortable.min.js, blocks/content_plus_two/js_form/handlebars-v4.0.4.js, blocks/content_plus_two/js_form/handlebars-helpers.js, blocks/content_plus_two/js_form, blocks/content_plus_two/composer.php, blocks/content_plus_two/icon.png, blocks/content_plus_two/view.php, blocks/content_plus_two/db.xml, blocks/content_plus_two/controller.php, blocks/content_plus_two/auto.js, blocks/content_plus_two/css_form/repeatable-ft.form.css, blocks/content_plus_two/css_form, blocks/content_plus_two, blocks/instagram_feed/edit.php, blocks/instagram_feed/form.php, blocks/instagram_feed/add.php, blocks/instagram_feed/config.json, blocks/instagram_feed/composer.php, blocks/instagram_feed/icon.png, blocks/instagram_feed/view.php, blocks/instagram_feed/db.xml, blocks/instagram_feed/controller.php, blocks/instagram_feed, blocks/jackpot/view.php, blocks/jackpot/controller.php, blocks/jackpot, blocks/manual_nav/edit.php, blocks/manual_nav/build.scss, blocks/manual_nav/form.php, blocks/manual_nav/add.php, blocks/manual_nav/build.js, blocks/manual_nav/build.css, blocks/manual_nav/config.json, blocks/manual_nav/js_form/html.sortable.min.js, blocks/manual_nav/js_form/handlebars-v4.0.4.js, blocks/manual_nav/js_form/handlebars-helpers.js, blocks/manual_nav/js_form, blocks/manual_nav/composer.php, blocks/manual_nav/icon.png, blocks/manual_nav/view.php, blocks/manual_nav/db.xml, blocks/manual_nav/controller.php, blocks/manual_nav/auto.js, blocks/manual_nav/css_form/repeatable-ft.form.css, blocks/manual_nav/css_form, blocks/manual_nav

# 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.2.15 (Red Hat)

# Server API
apache2handler

# PHP Version
5.6.22

# PHP Extensions
apache2handler, apc, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, geoip, gettext, gmp, hash, iconv, json, libxml, mbstring, mcrypt, memcache, mhash, mysql, mysqli, oci8, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, 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 - 10000
memory_limit - 128M
post_max_size - 50M
sql.safe_mode - Off
upload_max_filesize - 50M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
oci8.max_persistent - -1
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

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 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 have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.