Hi,
This bug affects version 9.x, but after having a short look at the 10.x source code, that version is probably also affected.
It happened after upgrading from version 3.9 to 9.3.
When accessing my.host or my.host/index.php, tikiwiki should redirect to tiki-index.php but gets stuck in an endless redirection loop by redirecting to my.host.
When accessing my.host/tiki-index.php directly,the following error message is displayed:
"Error
Required features: feature_wiki. If you do not have the privileges to activate these features, ask the site administrator."
Similar errors when accessing other features.
The problem is related to the session. In lib/setup/user_prefs.php, the preferences are expected to be stored in the session as $_SESSION'preferences', but due to some unknown reasons, this becomes null in my setup.
At line 59 of that php file, we have
$prefs = array_merge($prefs, $_SESSION['preferences']);
which becomes null.
Therefore the string 'tiki-index.php' used to construct the redirection location stored in prefs becomes null.
A simple fix would be to change to line 59 into:
if (isset($_SESSION['preferences'])) { $prefs = array_merge($prefs, $_SESSION['preferences']); }
I have not checked why my session does not contain the keys expected by the code, but I could reproduce the problem several times in the past.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |