Getting new js error in calendar events
Recently started seeing the following type of error in Chrome Dev Tools on calendar event registration pages:
Ticketing?view=Tickets&id=104521:8059 Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')
at block7201 (Ticketing?view=Tickets&id=104521:8059:21)
When I view the code, I'm seeing that the error is happening in some code that looks like this:
…
for (let i = table.length; i < input; i++) {
const id = `ticketQuestionTable_7201${i}`
container.insertAdjacentHTML('beforeend', `<table name="ticketQuestionTable_7201" id=${id} border="0" cellspacing="4" cellpadding="0" summary="Additional information necessary to complete as part of ticket purchase"></table>`);
const table = document.getElementById(id);
const input1 = table.getElementsByTagName('input');
const input2 = table.getElementsByTagName('select');
[...input1].forEach(item => item.setAttribute("name", item.getAttribute("name")+'_'+`${i}`));
[...input2].forEach(item => item.setAttribute("name", item.getAttribute("name")+'_'+`${i}`));
}
}
if (table.length === 0) {
container.innerHTML = ''; // ERROR IS HERE – “container” value is null
}
}
</script>
Anyone know where to find this code? Is this something that only BB has access to?
Comments
-
Hi @Kyle Booth, sorry this is happening. I think it's best if you open up a support ticket for them to take a look. Thank you!
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 941 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 796 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

