.. include:: /Includes.rst.txt
.. _troubleshooting-frontend-issues:
=================
Frontend Issues
=================
Solutions for problems with image display and rendering in the frontend.
.. contents:: Table of Contents
:local:
:depth: 2
.. _troubleshooting-frontend-rendering:
Image Display Problems
======================
Issue: Images Not Appearing in Frontend
----------------------------------------
**Symptoms:**
* Images visible in backend RTE
* Images missing in frontend output
**Causes:**
1. TypoScript rendering hooks missing (rare with v13.0.0+)
2. Cached content
3. Custom TypoScript overriding automatic configuration
**Solution:**
1. **Verify TypoScript is loaded (v13.0.0+ automatic):**
The extension automatically loads TypoScript. Verify it's present:
.. code-block:: typoscript
lib.parseFunc_RTE {
tags.img = TEXT
tags.img {
current = 1
preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
}
}
2. **Clear Caches:**
.. code-block:: bash
./vendor/bin/typo3 cache:flush
3. **Check for TypoScript conflicts:**
If you have custom ``lib.parseFunc_RTE`` configuration, ensure it doesn't override the image rendering hooks.
.. note::
Since v13.0.0, TypoScript is automatically loaded. Manual static template inclusion is optional.
----
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:**
.. code-block:: php
// LocalConfiguration.php
$GLOBALS['TYPO3_CONF_VARS']['GFX'] = [
'processor' => 'ImageMagick', // or 'GraphicsMagick'
'processor_path' => '/usr/bin/',
'processor_enabled' => true,
];
2. **Test Image Processing:**
.. code-block:: bash
# TYPO3 CLI
./vendor/bin/typo3 backend:test:imageprocessing
3. **Check Directory Permissions:**
.. code-block:: bash
# Ensure _processed_/ is writable
chmod 775 fileadmin/_processed_/
4. **Check Processed Files:**
.. code-block:: bash
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:**
1. File moved or deleted
2. Invalid file reference
3. Storage configuration changed
**Solution:**
1. **Verify File Exists:**
.. code-block:: bash
# Check if file exists in fileadmin
ls -la fileadmin/path/to/image.jpg
2. **Check File References:**
.. code-block:: sql
-- Find images in RTE content
SELECT uid, pid, bodytext
FROM tt_content
WHERE bodytext LIKE '%data-htmlarea-file-uid%';
3. **Rebuild Reference Index:**
.. code-block:: bash
./vendor/bin/typo3 referenceindex:update
4. **Clear File Caches:**
.. code-block:: bash
./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:**
.. code-block:: typoscript
# 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:**
1. CSS conflicts
2. Missing width/height attributes
3. Responsive image configuration issues
**Solution:**
1. **Check Generated HTML:**
.. code-block:: html
2. **Verify CSS:**
.. code-block:: css
/* Ensure images are responsive */
.rte img {
max-width: 100%;
height: auto;
}
3. **Check TypoScript Configuration:**
.. code-block:: typoscript
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:
.. code-block:: typoscript
lib.parseFunc_RTE.tags.img {
current = 1
preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes
stdWrap {
wrap =
Verify TypoScript Processing
-----------------------------
.. code-block:: typoscript
# Enable TypoScript debugging
config {
debug = 1
admPanel = 1
}
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
-----------
.. code-block:: 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:
.. code-block:: javascript
// Common issues
- Failed to load resource
- CORS errors
- JavaScript blocking rendering
----
Related Documentation
=====================
**Other Troubleshooting Topics:**
* :ref:`troubleshooting-installation-issues` - Installation and setup problems
* :ref:`troubleshooting-editor-issues` - Editor and backend problems
* :ref:`troubleshooting-performance-issues` - Performance optimization
**Additional Resources:**
* :ref:`integration-configuration-frontend-rendering` - TypoScript configuration
* :ref:`architecture-system-components` - Rendering pipeline details
* :ref:`integration-configuration-frontend-rendering` - Frontend features
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