This line fails
php cli/joomla.php scheduler:run -i 1 --live-site 'http://localhost:43000'
number 1 is the rotate Logs task, but it happens with any other as well
This line succeeds
php cli/joomla.php scheduler:run -i 1 --live-site 'http://localhost:43000/'
successful run
If you start debugging and stop on every exception, it stops with
RuntimeException: Could not parse the requested URI http://localhost:43000cli/joomla.php
in libraries/vendor/joomla/uri/src/AbstractUri.php line 367 parse($uri)
Tested with J5.0
I only found the symptoms yet, but not the root cause
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-23 19:03:12 |
Closed_By | ⇒ | svanschu |
Found the spot.
In
libraries/vendor/joomla/application/src/AbstractWebApplication.php
line 820$uri .= $this->input->server->getString('SCRIPT_NAME');
the SCRIPT_NAME gets added without checking if there is a/
in between or not.