Frontend Issues
Solutions for problems with image display and rendering in the frontend.
Table of Contents
Image Display Problems
Issue: Images Not Appearing in Frontend
Symptoms:
- Images visible in backend RTE
- Images missing in frontend output
Causes:
- Static template not included
- TypoScript rendering hooks missing
- Cached content
Solution:
-
Include Static Template:
- Go to Template → Info/Modify
- Edit whole template record
- Include
CKEditor Image Support
before Fluid Styled Content
- Verify TypoScript:
lib.parseFunc_RTE {
tags.img = TEXT
tags.img {
current = 1
preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
}
}
- Clear Caches:
./vendor/bin/typo3 cache:flush
Warning
Always include the static template BEFORE Fluid Styled Content for proper rendering.
Issue: Processed Images Not Generated
Symptoms:
- Original large images displayed
- No
_processed_/
directory created - Slow page load due to large images
Causes:
- Image processing disabled
- ImageMagick/GraphicsMagick not configured
- File permissions issue
Solution:
- Verify Image Processing Configuration:
// LocalConfiguration.php
$GLOBALS['TYPO3_CONF_VARS']['GFX'] = [
'processor' => 'ImageMagick', // or 'GraphicsMagick'
'processor_path' => '/usr/bin/',
'processor_enabled' => true,
];
- Test Image Processing:
# TYPO3 CLI
./vendor/bin/typo3 backend:test:imageprocessing
- Check Directory Permissions:
# Ensure _processed_/ is writable
chmod 775 fileadmin/_processed_/
- Check Processed Files:
ls -la fileadmin/_processed_/
Broken Links and References
Issue: Broken Image Links
Symptoms:
- Broken image icon displayed
- 404 errors in browser console
- Missing image files
Causes:
- File moved or deleted
- Invalid file reference
- Storage configuration changed
Solution:
- Verify File Exists:
# Check if file exists in fileadmin
ls -la fileadmin/path/to/image.jpg
- Check File References:
-- Find images in RTE content
SELECT uid, pid, bodytext
FROM tt_content
WHERE bodytext LIKE '%data-htmlarea-file-uid%';
- Rebuild Reference Index:
./vendor/bin/typo3 referenceindex:update
- Clear File Caches:
./vendor/bin/typo3 cache:flush --group=system
Issue: Wrong Image Path in Output
Symptoms:
- Image src points to wrong location
- Absolute paths instead of relative
- Missing domain in URLs
Cause: Incorrect TypoScript configuration
Solution:
# Ensure proper path generation
config.absRefPrefix = /
config.baseURL = https://your-domain.com/
Dimension Problems
Issue: Images Display at Wrong Size
Symptoms:
- Images too large or too small
- Dimensions not respected
- Responsive behavior broken
Causes:
- CSS conflicts
- Missing width/height attributes
- Responsive image configuration issues
Solution:
- Check Generated HTML:
<!-- Should include width and height -->
<img src="..." width="800" height="600" />
- Verify CSS:
/* Ensure images are responsive */
.rte img {
max-width: 100%;
height: auto;
}
- Check TypoScript Configuration:
lib.parseFunc_RTE.tags.img {
current = 1
preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
}
Issue: Image Dimensions Not Preserved
Symptoms:
- Aspect ratio distorted
- Images stretched or squashed
Cause: Missing or incorrect dimension attributes
Solution:
Ensure both width and height are rendered:
lib.parseFunc_RTE.tags.img {
current = 1
preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
stdWrap {
wrap = <div class="rte-image">|</div>
}
}
Style and Class Problems
Issue: CSS Classes Not Applied
Symptoms:
- Custom classes missing from output
- Styles not visible in frontend
- Classes work in backend but not frontend
Cause: HTMLparser configuration stripping classes
Solution:
lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser {
keepNonMatchedTags = 1
tags.img {
allowedAttribs = class,src,alt,title,width,height
fixAttrib.class.list = your-allowed-classes
}
}
Issue: Data Attributes Visible in Frontend
Symptoms:
data-htmlarea-file-uid
visible in HTML- Internal attributes exposed
Cause: HTMLparser configuration missing
Solution:
lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags.img.fixAttrib {
data-htmlarea-file-uid.unset = 1
data-htmlarea-file-table.unset = 1
data-htmlarea-zoom.unset = 1
data-title-override.unset = 1
data-alt-override.unset = 1
}
Note
Internal data attributes should always be removed in frontend rendering.
Link Rendering Problems
Issue: Image Links Not Working
Symptoms:
- Clickable images don't work
- Links stripped from output
- JavaScript conflicts
Cause: Link processing configuration
Solution:
lib.parseFunc_RTE {
tags.a = TEXT
tags.a {
current = 1
typolink {
parameter.data = parameters:href
title.data = parameters:title
ATagParams.data = parameters:allParams
}
}
}
Issue: Lightbox/Zoom Not Working
Symptoms:
- data-htmlarea-zoom attribute present but zoom doesn't work
- Lightbox not triggering
Cause: Missing JavaScript or CSS for lightbox
Solution:
- Ensure Zoom Attribute Rendered:
lib.parseFunc_RTE.tags.img {
current = 1
preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
}
- Include Lightbox Library:
Add your preferred lightbox library (e.g., Fancybox, Lightbox2, PhotoSwipe)
- Initialize Lightbox:
// Example with Fancybox
document.querySelectorAll('img[data-htmlarea-zoom]').forEach(img => {
const link = document.createElement('a');
link.href = img.src.replace(/\/_processed_\/.*/, '/' + img.dataset.htmlareaZoom);
link.setAttribute('data-fancybox', 'gallery');
img.parentNode.insertBefore(link, img);
link.appendChild(img);
});
Responsive Image Issues
Issue: Images Not Responsive
Symptoms:
- Images overflow container on mobile
- Fixed width prevents scaling
- No srcset generated
Cause: Missing responsive configuration
Solution:
/* Basic responsive images */
.rte img {
max-width: 100%;
height: auto;
display: block;
}
For advanced responsive images with srcset, configure image processing:
lib.parseFunc_RTE.tags.img {
current = 1
preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
}
Caching Issues
Issue: Old Images Still Displayed
Symptoms:
- Updated images not showing
- Old version cached
- Changes visible in backend but not frontend
Solution:
- Clear TYPO3 Caches:
./vendor/bin/typo3 cache:flush
-
Clear Browser Cache:
- Hard reload: Ctrl+Shift+R (Windows/Linux)
- Hard reload: Cmd+Shift+R (Mac)
- Clear Processed Images:
# Remove all processed images
rm -rf fileadmin/_processed_/*
- Verify Cache Configuration:
config {
sendCacheHeaders = 1
cache_period = 86400
}
Debugging Frontend Issues
Check Generated HTML
View page source and inspect image markup:
<!-- Expected output -->
<img src="fileadmin/_processed_/.../image.jpg"
alt="Description"
width="800"
height="600"
class="your-class" />
Verify TypoScript Processing
# Enable TypoScript debugging
config {
debug = 1
admPanel = 1
}
Check Browser Network Tab
- Open DevTools (F12)
- Go to Network tab
- Filter by images
-
Check for:
- 404 errors
- Slow loading
- Wrong paths
Inspect CSS
/* Check for conflicts */
.rte img {
/* Ensure no display:none or visibility:hidden */
}
Monitor Console Errors
Look for JavaScript errors that might affect image rendering:
// Common issues
- Failed to load resource
- CORS errors
- JavaScript blocking rendering
Getting Help
If issues persist after troubleshooting:
- Check GitHub Issues: https://github.com/netresearch/t3x-rte_ckeditor_image/issues
- Review Changelog: Look for breaking changes in CHANGELOG.md
- TYPO3 Slack: Join #typo3-cms
- Stack Overflow: Tag questions with
typo3
andckeditor
Important
When reporting issues, include:
- TYPO3 version
- Extension version
- Browser and version
- Generated HTML (view source)
- TypoScript configuration
- Browser console errors
- Network tab screenshots