Project

General

Profile

Actions

Bug #22809

closed

Add debug feature to Ext Direct

Added by Fabien Udriot over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-06-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Problem: ========
I have messed around with Ext Direct and have experimented a lack of debug output when things go wrong.

Consider the URL bellow which is the API Generator and is called for configuring Ext Direct on the client side. When Ext Direct is missconfigured somewhere, the URL bellow returns nothing. This is not optimal as it is quite tough to spot the flaw in this condition.

http://domain.tld/typo3/ajax.php?ajaxID=ExtDirect::getAPI&namespace=TYPO3.MyExtension

More info: http://wiki.typo3.org/index.php/ExtDirect#The_API_Generator

Solution: =========

I suggest to add:
- some debug output to give the developer clues about what can be wrong. Message is displayed on the javascript console or in prompt message when console is disabled
- add a "clear_cache" parameter for development context. The result of typo3/ajax.php is put into cache_hash for performance. But while coding, it is a bit annoying to clear the cache manually each time something change in your router server side.

Steps to reproduce: ===================

- Install extension "extdirecttest" http://bugs.typo3.org/file_download.php?file_id=10024&type=bug
- Make sure the extension is working properly.
- In ext_localconf.php search and replace every occurrence "TYPO3.Demo" by "TYPO3.WRONG"
- Clear the cache
- Reload the FE.

You should see an error message displayed on the javascript console or as prompt message if console is disabled.
(issue imported from #M14618)


Files

bug_14618.diff (2.35 KB) bug_14618.diff Administrator Admin, 2010-06-04 12:40
14618_v2.diff (4.97 KB) 14618_v2.diff Administrator Admin, 2010-06-08 15:48
14618_v4.diff (5.68 KB) 14618_v4.diff Administrator Admin, 2010-06-09 16:11
Actions

Also available in: Atom PDF