Loading...
 
Architecture / Installation

Architecture / Installation


windows, tikiwiki 1.8, no login

posts: 7

hellos

i am currently looking around for a wiki engine so here we go rolleyes

after installing tikiwiki (no errors all fine!) i try to login but no matter what webserver or browser i use i get:

You have to enable cookies to be able to login to this site
(http://localhost/cms/tikiwiki-1.8/tiki-error.php?error=You+have+to+enable+cookies+to+be+able+to+login+to+this+site)

but cookies are enabled. 100%. other scripts and stuff work all fine.

config:
sambar web server (6.0.1) or apache 2.0.48
php 4.3.4
mysql 4.0.17

the created session during login looks like:
votes|a:0:{}appname|s:4:"tiki";last_forum_visit|s:10:"1078948806";antisurf|s:5:"error";

php-memory-limit is set to 16MB
register_globals is off

all browsers produce the same error (firefox 0.8, ie6, opera 6.x) so i dont think its really cookie related confused

i tried different installation profiles but i end up with the same cookie-enable message. but well as other scripts (same config above) work... so there must be some gremlin somewhere?! sad

any hints welcome! :-)
thanks a lot!

posts: 2881 United Kingdom

Hi

I'm not a Windows web server user, however I do remember reading something about the Apache 2 and latest php compatibility problem and they recommended Apache 1 family.

I dont know if thats related. Maybe more info on php.net website?

Damian

posts: 7

>
> I'm not a Windows web server user, however I do remember
> reading something about the Apache 2 and latest php
> compatibility problem and they recommended Apache 1 family.


hello :-)

well its not as if i am addicted to apache-2 rolleyes
so: apache 1.3.29 -> same thing, enable cookies (which still is the case).
there are 3 cookies created all with the same name: 'SID' (set in my php.ini) and one with 'rz_timeoffset'. so there is some cookie-work. so there is still hope :-)

it does not seem to make any difference whether php runs as a module or cgi. only certain env. vars. seem to differ (depending on the webserver, not fact php runs as module or cgi)

isapi debug log shows nothing very unusual? (see attachment)

sooooo - no ideas any more from here sad


posts: 7

>
> I'm not a Windows web server user, however I do remember
> reading something about the Apache 2 and latest php
> compatibility problem and they recommended Apache 1 family.


hello :-)

well its not as if i am addicted to apache-2 rolleyes
so: apache 1.3.29 -> same thing, enable cookies (which still is the case).
there are 3 cookies created all with the same name: 'SID' (set in my php.ini) and one with 'rz_timeoffset'. so there is some cookie-work. so there is still hope :-)

it does not seem to make any difference whether php runs as a module or cgi. only certain env. vars. seem to differ (depending on the webserver, not fact php runs as module or cgi)

isapi debug log shows nothing very unusual? (see attachment)

sooooo - no ideas any more from here sad


posts: 2881 United Kingdom

Very very strange :-(

Something I'm going to have to sleep on and probably something will come to me then.

Damian (Still thinking)


posts: 1001 Canada

Yes, very strangeconfused
I want to know what happens to you!
Your tests seems very good. I think the only thing that could be problematic is PHP (specific settings?).
Feel like trying the EasyPHP install?

posts: 7

> Chealer9:
> Yes, very strangeconfused
> I want to know what happens to you!
> Your tests seems very good. I think the only thing that
> could be problematic is PHP (specific settings?).
> Feel like trying the EasyPHP install?

no mrgreen - but well...
with easy-php it works eek so hopefully i can restore my old config cool

the settings in php.ini that differ (beside error-reporting stuff and paths):
magic_quotes_gpc = Off (mine was On)
doc_root = (mine points to c:/wwwroot)
;open_basedir = (mine was open_basedir = (note the ;))

and the php-version is 4.3.3 (mine is 4.3.4)

so lets put it on the magic_quotes stuff (i changed that one for some board software as far as i remember)

so: cool! easy-php works. lets see what this mean to my own funny configs *hehehe*

thanks a lot!

posts: 7

hello (again) rolleyes

so i changed the php.ini settings:
magic_quotes_gpc = Off
doc_root =
;open_basedir =
session.name = PHPSESSID

now it works!
when changing the admin password there is an error at the bottom:
Warning: fopen(/tmp/tikidebug): failed to open stream: No such file or directory in C:\wwwroot\cms\tikiwiki-1.8\lib\search\refresh.php on line 44

there is some hardcoded path in there that needs some twaeking (dont know if browser-dependant, easyPHP and IE did not show that warning; my famous installation and firefox show it).

the forum mentioned (invisionboard) still works (the setting was used during the conversion from another forum). anyway it sets its properties by calling:

error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);

and stuff so there is no new trouble cool (except the missing /tmp folder in windows, but i am gonna claim for one at microsoft mrgreen)

thanks for your help! :-)


edit:
session.name = PHPSESSID might cause th problem!

in tiki-login.php:

// Alert user if cookies are switched off
if (ini_get('session.use_cookies') == 1) {
if(!isset($_COOKIE'PHPSESSID')) {
$url = 'tiki-error.php?error=' . urlencode'You have to enable cookies to be able to login to this site';
header("location: $url");
die;
}
}

so you assume the cookie-name (which i changed) to be 'PHPSESSID'. not the biggest bug ever. i agree wink


posts: 7

> Chealer9:
> Yes, very strangeconfused
> I want to know what happens to you!
> Your tests seems very good. I think the only thing that
> could be problematic is PHP (specific settings?).
> Feel like trying the EasyPHP install?

no mrgreen - but well...
with easy-php it works eek so hopefully i can restore my old config cool

the settings in php.ini that differ (beside error-reporting stuff and paths):
magic_quotes_gpc = Off (mine was On)
doc_root = (mine points to c:/wwwroot)
;open_basedir = (mine was open_basedir = (note the ;))

and the php-version is 4.3.3 (mine is 4.3.4)

so lets put it on the magic_quotes stuff (i changed that one for some board software as far as i remember)

so: cool! easy-php works. lets see what this mean to my own funny configs *hehehe*

thanks a lot!

posts: 7

hello (again) rolleyes

so i changed the php.ini settings:
magic_quotes_gpc = Off
doc_root =
;open_basedir =
session.name = PHPSESSID

now it works!
when changing the admin password there is an error at the bottom:
Warning: fopen(/tmp/tikidebug): failed to open stream: No such file or directory in C:\wwwroot\cms\tikiwiki-1.8\lib\search\refresh.php on line 44

there is some hardcoded path in there that needs some twaeking (dont know if browser-dependant, easyPHP and IE did not show that warning; my famous installation and firefox show it).

the forum mentioned (invisionboard) still works (the setting was used during the conversion from another forum). anyway it sets its properties by calling:

error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);

and stuff so there is no new trouble cool (except the missing /tmp folder in windows, but i am gonna claim for one at microsoft mrgreen)

thanks for your help! :-)


edit:
session.name = PHPSESSID might cause th problem!

in tiki-login.php:

// Alert user if cookies are switched off
if (ini_get('session.use_cookies') == 1) {
if(!isset($_COOKIE'PHPSESSID')) {
$url = 'tiki-error.php?error=' . urlencode'You have to enable cookies to be able to login to this site';
header("location: $url");
die;
}
}

so you assume the cookie-name (which i changed) to be 'PHPSESSID'. not the biggest bug ever. i agree wink


posts: 1001 Canada

Hehe, they gave me one :-)
As I said on the other thread you participated to, this silly problem is fixed in CVS since long ago, so enjoy Tiki with a free mind!
Feel free to search for what our documentation says about magic_quotes if you have time.


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