?
avatar PhilETaylor
PhilETaylor
8 Jan 2021

Steps to reproduce the issue

install Joomla 4 as normal

At command line run

php index.php

(Thats the /index.php file and not a command file or anything in /cli, do not be confused)

(Believe it or not, People do this. They use it for things like cron jobs in custom extensions etc)

Expected result

Nothing returned from the request (like Joomla 3)

Actual result

Notice: Undefined index: HTTP_HOST in /home/joomla4beta1/public_html/libraries/src/Uri/Uri.php on line 103
<script>document.location.href="https:\/\/..\/index.php";</script>

Screenshot 2021-01-08 at 17 40 25

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 PhilETaylor PhilETaylor - change - 8 Jan 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 8 Jan 2021
avatar wilsonge wilsonge - change - 8 Jan 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-01-08 18:00:06
Closed_By wilsonge
avatar wilsonge wilsonge - close - 8 Jan 2021
avatar wilsonge
wilsonge - comment - 8 Jan 2021

Also the case in J3. I don't consider this a bug

avatar PhilETaylor
PhilETaylor - comment - 8 Jan 2021

Any PHP notices are a bug in Joomla to be resolved.

Add a Comment

Login with GitHub to post a comment