No Code Attached Yet bug
avatar bernhardu
bernhardu
12 Mar 2023

Steps to reproduce the issue

Try to install a joomla instance inside a container that is just reachable from the internet via reverse-proxy.

Expected result

Installation succeeds after entering administrative credentials and database configuration.

Actual result

A message "A Database error occurred." is shown on top of the installation site.

System information (as much as possible)

Container: Debian Bookworm, Apache, Joomla 4.2.8 from zip download.
Browser: Firefox 110.0.1

Additional comments

I found Firefox showed the javascript installation.dbcheck blocked because of "mixed content".
As far as I see this is because the URL in Joomla.installationBaseUrl was just prefixed
with http:// while I tried to install via https://.

And I could workaround this issue for my installation by replacing in index.php the
data-base-url="<?php echo Uri::root(); ?>" by
data-base-url="<?php echo str_replace('http://','https://',Uri::root()); ?>"

I found following locations where this http originates from.

<div id="container-installation" class="container-installation flex no-js hidden" data-base-url="<?php echo Uri::root(); ?>">

Joomla.installationBaseUrl = container.getAttribute('data-base-url');

url : Joomla.installationBaseUrl + '?task=installation.dbcheck&format=json',

avatar bernhardu bernhardu - open - 12 Mar 2023
avatar joomla-cms-bot joomla-cms-bot - change - 12 Mar 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Mar 2023
avatar Hackwar Hackwar - change - 13 Mar 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 13 Mar 2023

Add a Comment

Login with GitHub to post a comment