Search
Other Content Templater questions
Forum

"Loading Template…" and spinning blue ball

Dan Phillips's Avatar Dan Phillips
J!5.2.2
PHP 8.3.1
CT 12.1.2.Pro
JCE 2.9.82 Pro

Hi Peter,

When I try to use CT in an RSForm Pro form textarea with JCE, clicking the CT button opens the white overlay and a "Loading template…" message along with a spinning blue ball. That just keeps spinning, without ever inserting the template.

All of the other Regular Labs editor-xtd buttons work,as do the core Joomla buttons.

This looks to me like a javascript conflict, but what are the likely culprits- Engage Box, JCE, WidgetKit? Or maybe a file or directory access I need to allow in my AdminTools htaccess file?

Thanks!
Peter van Westen's Avatar Peter van Westen ADMIN
Do you see any javascript errors in the browser's console?
Please post a rating at the Joomla! Extensions Directory
Dan Phillips's Avatar Dan Phillips
D'oh! Don't know why I didn't check that. Yes, when clicking the editor button, this pops up:

template.min.js?a92535:4 Uncaught TypeError: Cannot read properties of null (reading 'children')
at template.min.js?a92535:4:1080
(anonymous) @ template.min.js?a92535:4

The line in question is:

headerExpandedItems = [].slice.call(headerItemsArea.children).filter(e => e.classList.contains("header-item"))

…and when clicking one of the templates, this pops up:

Uncaught TypeError: Cannot read properties of undefined (reading 'values')
at Object.insertData (button.min.js?a92535:7:1518)
at eval (eval at <anonymous> (script.min.js?a92535:8:126), <anonymous>:1:54)
at script.min.js?a92535:8:126
at request.onreadystatechange (script.min.js?a92535:10:18)
insertData @ button.min.js?a92535:7
eval @ VM193:1
(anonymous) @ script.min.js?a92535:8
request.onreadystatechange @ script.min.js?a92535:10
XMLHttpRequest.send
(anonymous) @ script.min.js?a92535:10
loadUrl @ script.min.js?a92535:8
loadAjax @ script.min.js?a92535:8
insert @ button.min.js?a92535:7
onclick @ index.php?rl_qp=1&class=Plugin.EditorButton.ContentTemplater.Popup&editor=comments&id=cat-Skip&article_id=0&tmpl=component&request=eyJ2aWV3IjoiYXJ0aWNsZSIsImlkIjoiNDQ4OToyMDI0LWZhbGwtNDgiLCJjYXRpZCI6IjEwOmJyYXNzLWFyZWEtcmVwZXJ0b2lyZS1yZWNvcmQiLCJmb3JtIjp7InJlcXVlc3QiOiI1NzcifSwib3B0aW9uIjoiY29tX2NvbnRlbnQiLCJJdGVtaWQiOjEwMX0=&4143161915f39d2e6b688669fcee65c2=1&filter[category]=Skip:248Understand this errorAI

…and that's when the action stops.
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Dan Phillips's Avatar Dan Phillips
I will send that on Thursday the 12th. The site is in heavy use until then.
Peter van Westen's Avatar Peter van Westen ADMIN
Or see if you can reproduce this on a clean setup.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription