Aiki completely broken when not running on port 80

Reported by James Booker on 2011-09-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aikiframework
Medium
rg1024

Bug Description

When not running on port 80 (i.e. being served by Apache on a different port) Aiki is completely broken. The installer works, but that's about it - the default page created works but any links (such as the admin panel link) is broken because the config in the aiki_sites table of the database which is generated by the installer incorrectly lists the site as 'http://hostname/' instead of 'http://hostname:port/'

If I change this in the database, aiki doesn't work at all:
 - "Fatal error: Wrong site name provided"

This error can be fixed by defining an extra line in the /config.php file:
 - $config["site"] = "default"

Which then makes URL generation work properly, but every page (including /login and /admin) is blank.

James Booker (3zg-james-2qi) wrote :

Got it working for now, even without mod to config.php - in the database in the aiki_sites table, i had to modify the s:X:'http://hostname:port' to make the X match the length of the setting (I understand how it works now!)

The installer needs fixing to cope with not being on port 80.

rg1024 (rg1024) on 2011-11-24
Changed in aikiframework:
assignee: nobody → rg1024 (rg1024)
rejon (rejon) on 2011-12-14
Changed in aikiframework:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 0.9.1
rg1024 (rg1024) wrote :

Corrected in revision 1017.

Changed in aikiframework:
status: Confirmed → Fix Released
rejon (rejon) on 2012-02-04
Changed in aikiframework:
milestone: 0.9.1 → 0.9.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers