?
avatar PhilETaylor
PhilETaylor
8 Jan 2021

Steps to reproduce the issue

Joomla 4
php api/index.php

Expected result

No errors. Maybe a "you should use http and not cli for this endpoint" message

Actual result

Notice: Undefined index: HTTP_HOST in /home/joomla4beta1/public_html/libraries/src/Uri/Uri.php on line 103
 is not a valid HTTP method.#

Screenshot 2021-01-08 at 17 46 49

System information (as much as possible)

PHP 7.4.13 (cli) (built: Dec 23 2020 11:21:05) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies

Additional comments

avatar PhilETaylor PhilETaylor - open - 8 Jan 2021
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Jan 2021
avatar wilsonge wilsonge - change - 8 Jan 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-01-08 17:59:44
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 8 Jan 2021

This is no different to either the admin or main index.php in any Joomla version. I don't consider this a bug.

avatar wilsonge wilsonge - close - 8 Jan 2021
avatar PhilETaylor
PhilETaylor - comment - 8 Jan 2021

Well you are simply wrong.

look at line 2 of the output.

is not a valid HTTP method.

This is an invalid response and should be corrected.

Add a Comment

Login with GitHub to post a comment