Loading...
 
Architecture / Installation

Architecture / Installation


Missing page variable in links FIXED on windows Xampp Installation! http_build_query

posts: 3

I'd like to avoid others this headick of searching hours for a hard problem to guess...

I had a problem: many links on Tikiwiki 4.1 (and also 4.2) wouldn't show up correctly, the "page" variable wouldn't add up to the link. So i would somehow could not do proper actions on the Tikiwiki pages (the page bar and the admin).

So after searching, it is a issue related to the http_build_query function, during the parsing with SMARTY.

I was trying to install on PHP 5.1.1 on a Windows XAMPP Installation.

The problem was that my version of http_build_query was not working properly. It would accept only 2 parameters of the 3. Strange?

So i fixed it by modifying the file lib/smarty_tiki/function_query.php

Around line 95, change to:

Copy to clipboard
if (eregi("Win32", $_SERVER['SERVER_SIGNATURE'])) $ret = http_build_query($query); else $ret = http_build_query($query, '', $sep);


So make sure http_build_query is working properly!
Please check/update.
More info on:
http://www.php.net/manual/fr/function.http-build-query.php


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting