Bug #20941

fe-editing broken if IRRE-elements are used with RealURL

Added by Björn Pedersen over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-08-27
Due date:
% Done:

0%

TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If IRRE-Elements are used in fe-editing, the links for the ajax.php script and the wizard-scripts are wrong.
They should point into the typo3/ directory, but point to the web root.

Possible cause: The backend uses t3lib_div::getIndpEnv('REQUEST_URI') to get the URL,
which will not work in FE, as that would be the FE-URL. One partial fix is to add additional RewriteRules to redirect the request.

Additionally their is a missing initialization of the inline part in class.tslib_content.php (editpanel generation). Solution see attached patch.

(issue imported from #M11805)

class.tslib_content.php.patch View (886 Bytes) Administrator Admin, 2009-08-27 13:59

irre_feedit.patch View (1.95 KB) Administrator Admin, 2009-12-08 09:06

feedit_ajax.patch View (3.38 KB) Administrator Admin, 2010-01-27 09:17

0011805_v3.patch View (1.95 KB) Administrator Admin, 2010-02-27 19:04


Related issues

Related to TYPO3 Core - Bug #22205: Clean up class definition of frontendDoc in template.php Closed 2010-02-27

History

#1 Updated by Björn Pedersen about 10 years ago

With 4.3RC2 the behaviour still exists.
These 2 Rewrite-Rules fix part of the problem, but some icons are still not found.

RewriteRule ^ajax.php\?(.*)$ typo3/ajax.php?\1 [L]
RewriteRule ^ajax.php typo3/ajax.php [L]

#2 Updated by Björn Pedersen about 10 years ago

further invstigations:

if using feeditadvanced, the editing form is loaded as an eId-script via index.php.
The IRRE-javacript calls makeAjaxCall: which sets the url to just ajax.php. missing the typo3/ prefix.

If I redirect the request as shown above, the icons in the resulting form are missing (they assume a doucment root with typo3/

So the bug can either be in the IRRE-part( The js needs to be feedit-aware) or in feeditadvanced (the iframe should be generated from a file in typo3/.

#3 Updated by Björn Pedersen about 10 years ago

Now I found a working solution:
In jsfunc.inline.js:
add a var + setter function to store the path to typo3 and prepend it to the ajax call.

In tceforms : call this setter function if TYPO3_MODE =='FE' with TYPO3_maindir

Patch is attached.

#4 Updated by Björn Pedersen almost 10 years ago

Reminder.

#5 Updated by Björn Pedersen almost 10 years ago

It seems that this also effects other js-scripts calling ajax.php, e.g. ttnews_category_tree in fe-editing.

#6 Updated by Björn Pedersen almost 10 years ago

Adding a new patch that fixes (hopefully all) the issuses with ajax-calls in FE-editing. In extensions this needs some changes in ajax-calling javascript. A patch for tt_news-category tree will be provided as well.

#7 Updated by Oliver Hader over 9 years ago

Committed to SVN:
  • TYPO3_4-3 (rev. 7109)
  • Trunk (rev. 7110)

Also available in: Atom PDF