Bug #87570
closed
Path to requirejs-loader.js not correct
Added by Claudia Nölker almost 6 years ago.
Updated over 5 years ago.
Description
Hello,
after updating to 8.7.24, the Frontend-Editing does not work anymore because the path to the requirejs-loader.js is wrong.
HTML extract:
<script src="typo3/sysext/core/Resources/Public/JavaScript/Contrib/require.js?1548170755" type="text/javascript"></script>
<script src="*/usr/www/users/XXXXX*/typo3/sysext/core/Resources/Public/JavaScript/requirejs-loader.js" type="text/javascript"></script>
<script src="typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery/jquery-3.2.1.min.js?1548170755" type="text/javascript"></script>
The XXXXX is only to mask the customers name.
I tried to correct the path in the file PageRenderer.php . Afterwards, the file is included correctly, but I get warnings in the backend:
Core: Error handler (FE): PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'TYPO3\CMS\Core\Controller\RequireJsController' does not have a method 'retrievePath' in /usr/www/users/XXXXX/typo3_src-8.7.24/typo3/sysext/core/Classes/Http/Dispatcher.php line 41
Please fix this.
Claudia
Files
The stars in the URL are only because I wanted to highlight that part. URL is:
<script src="/usr/www/users/XXXXX/typo3/sysext/core/Resources/Public/JavaScript/requirejs-loader.js" type="text/javascript"></script>
Same problem here. Using Typo3 9.5.4 and frontend_editing 1.4.6.
Tested with a fresh installation and only the official Introduction Package installed.
The script-tag gets inserted with an absolute server path of the file.
Correcting it manually makes a call to:
/index.php?eID=requirejs&name=%2Ftypo3%2Fsysext%2Fbackend%2FResources%2FPublic%2FJavaScript%2Fbackend.js
which results in the error attached.
(1/1) ReflectionException
Method TYPO3\CMS\Core\Controller\RequireJsController::retrievePath() does not exist
- Target version set to Candidate for patchlevel
- Is Regression set to Yes
- Status changed from New to Accepted
- Status changed from Accepted to Under Review
Please test referenced change on review.typo3.org and report back whether that solves the problems you mentioned. Thanks in advance!
patch seems not working for 9.5.4 in combination with frontend editing
Martin Weymayer wrote:
patch seems not working for 9.5.4 in combination with frontend editing
Cleared all caches? Which error messages are shown?
yes, cleared all caches. spinning image is shown and does not dissapear. following error in browser console:
ReferenceError: TYPO3 is not defined[Weitere Informationen] Icons.js:13:1794
Error: Load timeout for modules: /typo3/sysext/backend/Resources/Public/JavaScript/backend.js
http://requirejs.org/docs/errors.html#timeout
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF