Frontend Issues 

Solutions for problems with image display and rendering in the frontend.

Image Display Problems 

Issue: Images Not Appearing in Frontend 

Symptoms:

  • Images visible in backend RTE
  • Images missing in frontend output

Causes:

  1. Static template not included
  2. TypoScript rendering hooks missing
  3. Cached content

Solution:

  1. Include Static Template:

    • Go to TemplateInfo/Modify
    • Edit whole template record
    • Include CKEditor Image Support before Fluid Styled Content
  2. Verify TypoScript:
lib.parseFunc_RTE {
    tags.img = TEXT
    tags.img {
        current = 1
        preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
    }
}
Copied!
  1. Clear Caches:
./vendor/bin/typo3 cache:flush
Copied!

Issue: Processed Images Not Generated 

Symptoms:

  • Original large images displayed
  • No _processed_/ directory created
  • Slow page load due to large images

Causes:

  1. Image processing disabled
  2. ImageMagick/GraphicsMagick not configured
  3. File permissions issue

Solution:

  1. Verify Image Processing Configuration:
// LocalConfiguration.php
$GLOBALS['TYPO3_CONF_VARS']['GFX'] = [
    'processor' => 'ImageMagick',  // or 'GraphicsMagick'
    'processor_path' => '/usr/bin/',
    'processor_enabled' => true,
];
Copied!
  1. Test Image Processing:
# TYPO3 CLI
./vendor/bin/typo3 backend:test:imageprocessing
Copied!
  1. Check Directory Permissions:
# Ensure _processed_/ is writable
chmod 775 fileadmin/_processed_/
Copied!
  1. Check Processed Files:
ls -la fileadmin/_processed_/
Copied!

Dimension Problems 

Issue: Images Display at Wrong Size 

Symptoms:

  • Images too large or too small
  • Dimensions not respected
  • Responsive behavior broken

Causes:

  1. CSS conflicts
  2. Missing width/height attributes
  3. Responsive image configuration issues

Solution:

  1. Check Generated HTML:
<!-- Should include width and height -->
<img src="..." width="800" height="600" />
Copied!
  1. Verify CSS:
/* Ensure images are responsive */
.rte img {
    max-width: 100%;
    height: auto;
}
Copied!
  1. Check TypoScript Configuration:
lib.parseFunc_RTE.tags.img {
    current = 1
    preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
}
Copied!

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>
    }
}
Copied!

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
    }
}
Copied!

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
}
Copied!

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;
}
Copied!

For advanced responsive images with srcset, configure image processing:

lib.parseFunc_RTE.tags.img {
    current = 1
    preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
}
Copied!

Caching Issues 

Issue: Old Images Still Displayed 

Symptoms:

  • Updated images not showing
  • Old version cached
  • Changes visible in backend but not frontend

Solution:

  1. Clear TYPO3 Caches:
./vendor/bin/typo3 cache:flush
Copied!
  1. Clear Browser Cache:

    • Hard reload: Ctrl+Shift+R (Windows/Linux)
    • Hard reload: Cmd+Shift+R (Mac)
  2. Clear Processed Images:
# Remove all processed images
rm -rf fileadmin/_processed_/*
Copied!
  1. Verify Cache Configuration:
config {
    sendCacheHeaders = 1
    cache_period = 86400
}
Copied!

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" />
Copied!

Verify TypoScript Processing 

# Enable TypoScript debugging
config {
    debug = 1
    admPanel = 1
}
Copied!

Check Browser Network Tab 

  1. Open DevTools (F12)
  2. Go to Network tab
  3. Filter by images
  4. Check for:

    • 404 errors
    • Slow loading
    • Wrong paths

Inspect CSS 

/* Check for conflicts */
.rte img {
    /* Ensure no display:none or visibility:hidden */
}
Copied!

Monitor Console Errors 

Look for JavaScript errors that might affect image rendering:

// Common issues
- Failed to load resource
- CORS errors
- JavaScript blocking rendering
Copied!

Getting Help 

If issues persist after troubleshooting:

  1. Check GitHub Issues: https://github.com/netresearch/t3x-rte_ckeditor_image/issues
  2. Review Changelog: Look for breaking changes in CHANGELOG.md
  3. TYPO3 Slack: Join #typo3-cms
  4. Stack Overflow: Tag questions with typo3 and ckeditor