Hi !
I install the new phpwg version
install works fine but when i log myself, i redirect to index of the gallery but i'm not logged !
i can't see admin, ...
thanks for your help !
Last edited by Guims (2005-01-15 10:26:57)
Offline
just after the redirection to category.php, you should have an "id" in your URL. Do you have it ?
After the first redirect, are you sure you're not recognized ?
Can you turn on show_queries parameter in include/config.inc.php and tell us what is shown ?
Offline
z0rglub wrote:
just after the redirection to category.php, you should have an "id" in your URL. Do you have it ?
yes I have one
z0rglub wrote:
Can you turn on show_queries parameter in include/config.inc.php and tell us what is shown ?
Here is it :
[1]
SELECT param,value
FROM phpwebgallery_config
;
(this query time : 0.000 s)
(total SQL time : 0.000 s)
[2]
SELECT user_id,expiration,NOW() AS now
FROM phpwebgallery_sessions
WHERE id = '5qoP05okN4'
;
(this query time : 0.000 s)
(total SQL time : 0.001 s)
[3]
SELECT u.*, uf.*
FROM phpwebgallery_users AS u LEFT JOIN phpwebgallery_user_forbidden AS uf
ON id = user_id
WHERE u.id = 2
;
(this query time : 0.000 s)
(total SQL time : 0.001 s)
[4]
SELECT SUM(nb_images) AS total FROM phpwebgallery_categories;
(this query time : 0.000 s)
(total SQL time : 0.001 s)
[5]
SELECT name,id,date_last,nb_images,global_rank
FROM phpwebgallery_categories
WHERE 1 = 1
AND (id_uppercat is NULL)
;
(this query time : 0.000 s)
(total SQL time : 0.001 s)
[6]
SELECT id, name, date_last
FROM phpwebgallery_categories
WHERE id_uppercat is NULL
ORDER BY rank
;
(this query time : 0.000 s)
(total SQL time : 0.001 s)Offline
I tried several times to see the sql_queries and before the message I told you before,
there's this one during a few seconds :
Warning: Cannot modify header information - headers already sent by (output started at /home/www/guims.freeownhost.com/Galerie/include/functions.inc.php:516) in /home/www/guims.freeownhost.com/Galerie/include/functions_session.inc.php on line 99
Last edited by Guims (2005-01-15 11:17:08)
Offline
Guims wrote:
z0rglub wrote:
just after the redirection to category.php, you should have an "id" in your URL. Do you have it ?
yes I have one
Can you check you have a cookie created with this id ? (with Firefox, tools > Options > Privacy > Stored Cookies)
Guims wrote:
Code:
[2] SELECT user_id,expiration,NOW() AS now FROM phpwebgallery_sessions WHERE id = '5qoP05okN4' ; (this query time : 0.000 s) (total SQL time : 0.001 s) [3] SELECT u.*, uf.* FROM phpwebgallery_users AS u LEFT JOIN phpwebgallery_user_forbidden AS uf ON id = user_id WHERE u.id = 2 ; (this query time : 0.000 s) (total SQL time : 0.001 s)
(user_id = 2 means guest user)
This makes me think session 5qoP05okN4 has not been created... Can you find it in table sessions ? What is the user associated to it ?
Offline
Guims wrote:
I tried several times to see the sql_queries and before the message I told you before,
there's this one during a few seconds :Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/www/guims.freeownhost.com/Galerie/include/functions.inc.php:516) in /home/www/guims.freeownhost.com/Galerie/include/functions_session.inc.php on line 99
normal behaviour, turn off show_queries :-)
Offline
z0rglub wrote:
This makes me think session 5qoP05okN4 has not been created... Can you find it in table sessions ? What is the user associated to it ?
I saw others (10!) but not this one...
I don't see cookies...
Last edited by Guims (2005-01-15 11:28:57)
Offline
AAAAAAHHHHHHHHHH !!!!!!!!!!!
It works with IE !!!!!!!!!
What do you think?
Offline
Even if you can't create cookies, you should be connected, but using your session ID in the URL.
It works with IE !!!!!!!!!
with IE, the session exists in the database ??? there should be no link between browser and database :-/
1. turn on show_query
2. in include/functions.inc.php, in function redirect, set $refresh to 20
3. on the redirection page after connection, copy/paste queries shown (and potential errors)
Offline
[1]
SELECT param,value
FROM phpwebgallery_config
;
(this query time : 0.000 s)
(total SQL time : 0.000 s)
[2]
SELECT user_id,expiration,NOW() AS now
FROM phpwebgallery_sessions
WHERE id = '5qoP05okN4'
;
(this query time : 0.000 s)
(total SQL time : 0.001 s)
[3]
SELECT u.*, uf.*
FROM phpwebgallery_users AS u LEFT JOIN phpwebgallery_user_forbidden AS uf
ON id = user_id
WHERE u.id = 2
;
(this query time : 0.000 s)
(total SQL time : 0.001 s)
[4]
SELECT id, password
FROM phpwebgallery_users
WHERE username = 'Guillaume'
;
(this query time : 0.000 s)
(total SQL time : 0.001 s)
[5]
SELECT id
FROM phpwebgallery_sessions
WHERE id = 'mJ678vkfII'
;
(this query time : 0.000 s)
(total SQL time : 0.001 s)
[6]
INSERT INTO phpwebgallery_sessions
(id,user_id,expiration)
VALUES
('mJ678vkfII',1,
ADDDATE(NOW(), INTERVAL 3600 SECOND))
;
(this query time : 0.001 s)
(total SQL time : 0.002 s)
Warning: Cannot modify header information - headers already sent by
(output started at /home/www/guims.freeownhost.com/Galerie/include/functions.inc.php:516)
in /home/www/guims.freeownhost.com/Galerie/include/functions_session.inc.php on line 99Offline
and does session mJ678vkfII exist now in your database ? What is the expiration datetime ?
Offline
z0rglub wrote:
and does session mJ678vkfII exist now in your database ? What is the expiration datetime ?
yes and it's 2005-01-15 05:57:09 ...........
not normal isn's it ???
Offline
indeed, there is a bug somewhere in MySQL. What is your MySQL version ?
select version();
Offline
before thinking it can be a bug from MySQL :
SELECT NOW(), ADDDATE(NOW(), INTERVAL 3600 SECOND) AS 1_hour_future;
Byt the way, which distribution are you using ? Sarge ? Ubuntu warty ? SID ?
Offline