<h4>Services Modules — Carousel Crash Fix</h4><ul><li><strong>Fixed:</strong> Uncaught TypeError: Cannot read properties of undefined (reading 'offsetWidth') at bootstrap.min.js carousel.slide(). The module view modal built a carousel with 3 hardcoded indicator <code>&lt;li&gt;</code> elements regardless of how many images existed. When a module had 0 or fewer than 3 images, Bootstrap tried to slide to nonexistent items and crashed on <code>offsetWidth</code>.</li><li><strong>Root cause:</strong> (1) Carousel indicators were hardcoded to 3 instead of matching actual image count. (2) Empty carousel (no images) was still initialized with <code>$('.carousel').carousel()</code>. (3) <code>$('.carousel')</code> selector targeted ALL carousels on the page, not just the module view one.</li><li><strong>Fix:</strong> Build indicators dynamically from <code>imgpath.length</code>. When no images, show a 'No images available' placeholder instead of an empty carousel. Only initialize carousel when 2+ images exist. Use <code>$('#modcarousel')</code> selector instead of <code>$('.carousel')</code>. Added onerror on carousel images.</li></ul><p><strong>File:</strong> platform/services/websites/modules/modules_tabs.php</p>