Project

General

Profile

Actions

Bug #20941

closed

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

Added by Björn Pedersen over 14 years ago. Updated almost 14 years ago.

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

0%

Estimated time:
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)


Files

class.tslib_content.php.patch (886 Bytes) class.tslib_content.php.patch Administrator Admin, 2009-08-27 13:59
irre_feedit.patch (1.95 KB) irre_feedit.patch Administrator Admin, 2009-12-08 09:06
feedit_ajax.patch (3.38 KB) feedit_ajax.patch Administrator Admin, 2010-01-27 09:17
0011805_v3.patch (1.95 KB) 0011805_v3.patch Administrator Admin, 2010-02-27 19:04

Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Björn Pedersen over 14 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]

Actions #2

Updated by Björn Pedersen over 14 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/.

Actions #3

Updated by Björn Pedersen over 14 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.

Actions #4

Updated by Björn Pedersen over 14 years ago

Reminder.

Actions #5

Updated by Björn Pedersen over 14 years ago

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

Actions #6

Updated by Björn Pedersen over 14 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.

Actions #7

Updated by Oliver Hader about 14 years ago

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

Also available in: Atom PDF