TPL-COMPONENT-PHP-001
templates/protostar/component.php
component.php error chrome
Error and print views use a reduced document. Old component.php often still loads MooTools/Bootstrap 2.
templates/protostar/component.php → Cassiopeia/Atum component.php (clean document)
Symptoms people search
print page unstyled · error.php broken · component.php
Replace this code
Swap templates/protostar/component.php for Cassiopeia/Atum component.php (clean document).
Joomla 3
Remove or stop calling this
Joomla 3 component.php loading the whole template chrome for errors/printJoomla 4 / 6
Use this instead
Use the J4+ component.php. Error documents are cleaner — do not assume Protostar head assets.How to fix it
- 1Replace component.php from Cassiopeia.
- 2Load assets via WAM only.
Also known as
component.php · error.php
Related issues
- Joomla 3 → 4JavaScript
Chosen.js (formbehavior.chosen)
JHtml::_('formbehavior.chosen') → Core styled <select>, Choices.js, or Tom Select
- Joomla 3 → 4Templates
Protostar site template
Protostar → Cassiopeia (or a Joomla 4+ template), preferably a child template
- Joomla 3 → 4Templates
ISIS / Hathor admin templates
ISIS → Atum
- Joomla 3 → 4Templates
Beez / Beez3 templates
Beez3 → Cassiopeia
- Joomla 4 → 5Templates
Template without joomla.asset.json
templateDetails.xml only → joomla.asset.json + WebAssetManager in index.php
- Joomla 3 → 4Templates
Magic pagination_item_active functions
function pagination_item_active($item) → Layout joomla.pagination.link