From 056b8a9b8d4aae308b7061f1b398381707d309cd Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 1 Apr 2015 16:27:55 +0200 Subject: [PATCH] Temporary set 404 to avoid backtrace: MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ------------------------------ Fehlermeldung: No HTTP status set! ------------------------------ Backtrace: 1.:template-functions.php:1311, debug_get_mailable_backtrace(0) 2.:wrapper-functions.php:1242, reportBug(3) 3.:http-functions.php:55, getHttpStatus(0) 4.:template-functions.php:158, sendHttpHeaders(0) 5.:filters.php:711, outputHtml(0) 6.:debug_get_mailable_backtrace:1074, FILTER_FLUSH_OUTPUT(1) 7.:filter-functions.php:332, call_user_func_array(2) 8.:functions.php:1724, runFilterChain(2) 9.:footer.php:60, doShutdown(0) 10.:inc-functions.php:133, include(1) 11.:inc-functions.php:141, loadInclude(1) 12.:api.php:71, loadIncludeOnce(1) ------------------------------ Abfrage-String: /api/statuses/public_timeline.atom ------------------------------ Signed-off-by: Roland Häder --- api.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api.php b/api.php index dedbd9c5f9..0efa75357c 100644 --- a/api.php +++ b/api.php @@ -48,6 +48,9 @@ $GLOBALS['__module'] = 'api'; $GLOBALS['__header_sent'] = 2; $GLOBALS['__footer_sent'] = 2; +// Temporary set HTTP 404 here. This will be removed once this stuff is ready. +setHttpStatus('404 Not Found'); + // Load config file require('inc/config-global.php'); -- 2.39.5