-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
images are not processed #187
Comments
I can confirm this Issue. To me it seems as if this only happens to editors, not to admins. The tag that I can see when switching the RTE to source code mode looks like this: The currently installed version is 11.0.5 with TYPO3 11.5.15 and PHP 8.0 |
Problem occurs in Typo3 Version 11.5.16, too. |
Same on PHP 7.4 |
Ok, did my best for a proposal #194 that doesn't need to re-save each an every "contaminated" RTE field. |
this fixes netresearch#187 The situation is as follows: starting with 11LTS in the backend processed images get not a `/fileaadmin/_processed/` "resulting image" style url but a new `/typo3/image/process?token` "middleware" style url. However that is only available for logged in BE users. Thus this can be saved to RTE and displayed there, however will break the frontend output. Now I tried to fix what is saved in the backend/db, but came to the conclusion that this shouldn't be the aim, as there are probably reasons for the backend using that new URL. Thus my approach here is to accept this new URL, accept the "bug" that this new URL gets converted to an absolute URL and rather tackle the problem while generating frontend output, where the generation is skipped formerly, because it sees "external URL". Now an if just checks for the string `'/typo3/image/process?token'` and starts reprocessing.
I have added the patch to my system and will provide feedback, when tested. |
this fixes #187 The situation is as follows: starting with 11LTS in the backend processed images get not a `/fileaadmin/_processed/` "resulting image" style url but a new `/typo3/image/process?token` "middleware" style url. However that is only available for logged in BE users. Thus this can be saved to RTE and displayed there, however will break the frontend output. Now I tried to fix what is saved in the backend/db, but came to the conclusion that this shouldn't be the aim, as there are probably reasons for the backend using that new URL. Thus my approach here is to accept this new URL, accept the "bug" that this new URL gets converted to an absolute URL and rather tackle the problem while generating frontend output, where the generation is skipped formerly, because it sees "external URL". Now an if just checks for the string `'/typo3/image/process?token'` and starts reprocessing.
I tested the bugfix on my local system - unfortunately it did not solve the problem for me. |
n.b.:
|
sorry for my late reply. As this seems to only affect my editors (I can't reproduce, I can only see the result), I have to wait until they report back to me. So far, none has. |
Today, I had the possibility to check: |
Interesting, I dug deeper into it: This sounds like we need to call the url and get its redirect target instead of using the url as-is. |
I guess there is some debug code in the RTE processing class that prevents resolving the current newly added images. I always get process URLs instead of the fileadmin ones. The process URLs can not be processed outside of the backend context. So if anyone has this problem and wants fileadmin URLs back, just implement the following patch.
|
I have the same issue using TYPO3 11.5.26 and rte_ckeditor_image v11.0.9. I've fixed it by creating an XClass in my website extension:
|
same for TYPO3 11.5.26, |
Hello MichelHolz; |
I am also unable to get it working after updating to TYPO3 11. The images are being output with a URL like 'typo3/image/process?token=324234234'. rte_ckeditor_image in version 11.0.8 is installed ... |
Try including the extension in the template. |
@bigahuna Including the extension in the template? |
@bigahuna The static template is included. That's not the problem ... |
Hi. I found out that adding the template actually makes a difference because it activates "Netresearch\RteCKEditorImage\Controller\ImageRenderingController" which preproess the image link and in case it has a "/typo3/image/process"-like URL. However, as you posted, it will not suffice. You will have to add the following code in your extension package (or an extension that loads the TypoScript after rte_ckeditor_image's TypoScript):
This line will enable the rendering of the image in the Frontend. Cheers. |
If you use fluid_styled_content, include the ckeditor_image static template/setup before FSC. Or copy lib.parseFunc to lib.parseFunc_RTE |
@navaki, @stephangrass is the problem solved for you with the above solutions or are there still problems? Does the problem still exist? |
I think so ... |
Hi All, Do we've any permanent solution for this issue? Sometimes it works and it returns URLS with /fileadmin and sometimes like "typo3/image/process?token=". The "typo3/image/process?token=" code returns broken images in the frontend and backend. I have this issue for both admin and editor users. Any updates would be really appreciated. Thank you. |
Hi All, in Typo3 11.5.36 this issue still exist. Is there a solution? I have included the static Template before the fsc. Some Images in the RTE are still like https://www.domain.com/typo3/image/process?token=2fe79893bacb46f9710caacc82f7fb2c952d985b&id=145439 Does have anybody any ideas? Thank you. |
Hi @muelli1000, Is the problem still there? Unfortunately I can't reproduce it, the images are output correctly for me, with and without adding static templates.
|
A few images inserted via the RTE are not displayed in the frontend, it seems that the path is not resolved correctly, because in the src part a URL like "typo3/image/process?token=1a372fa4f26ec25d0b49ef1317e04233eab325fb&id=28234" is displayed.
Looks like that in the frontend, of course:
However, a few images are displayed correctly - what could be the reason?
Also, in the backend, when uploading, the message "The validation of the security token of this form has failed. Please reload the form and submit it again." - is this possibly related?
Edit:
This occurs with Typo3 Version 11.5.15 and rte_ckeditor_image in Version 11.0.5 (PHP 8.0)
The text was updated successfully, but these errors were encountered: