Missing SQL statement

Makes it possible for admin to specify maximum connections for the board / IP

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Missing SQL statement

Postby Cyberian75 on Wed 27. Nov, 2002 02:14

I just took a look at the file db_update.php for this MOD and my database. It seems SQL statements ALTER TABLE are missing, and there are only INSERT statements, which fails because there are no fields to insert.

Please correct this. Thanks! :)


Michael
Cyberian75
Poster
Poster
 
Posts: 9
Joined: Sat 23. Nov, 2002 20:26

Postby Niels on Wed 27. Nov, 2002 18:42

the included db_update.php file, should be alrigth
there is no need to alter any tables in order to have this mod work...

only the extra into in the config table need to be INSERTed
if you do this by hand, you MUST remember to add any DB prefix yoiu may use (default is phpbb_)

if indoubt about how to do this, simply use the included db_update.php file, it will add any needed prefix, by it self
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Cyberian75 on Wed 27. Nov, 2002 19:55

Niels,

The problem is that there are no such fields as "max_sessions", so the INSERT statements fail.

I uninstalled this MOD, and ever since then, I often get a "session table is full" error message. I then deleted all the entries in that table, which solved the problem; but then, users aren't able to login. For this, I did an UPDATE statement in the users table to change "user_session_page" to value 1, which enables them to login.

Do you have any ideas why this is happening?


Michael
Cyberian75
Poster
Poster
 
Posts: 9
Joined: Sat 23. Nov, 2002 20:26

Postby Niels on Wed 27. Nov, 2002 22:52

I DO REPEAT the SQL are fine, nothing wrong with them, the VALUES are storred into the table named CONFIG, and does not need any ALTER or like
the "max_sessions" are a VALUE not a field, this is how the config table works....for greater flexibility - you will just have to accept that.

sorry for talking in capital letters, but the SQL are just like the should be
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 26. Dec, 2002 00:17

Cyberian75 wrote:I often get a "session table is full" error message. I then deleted all the entries in that table, which solved the problem; but then, users aren't able to login. For this, I did an UPDATE statement in the users table to change "user_session_page" to value 1, which enables them to login.

Do you have any ideas why this is happening?


Michael

I did forgot to answer this, this offen happen on larger boards if you have installed last visit mod - did you ?
you could try change the table type for the session table from heap into myISAM see the last visit mod for further info, where I have described this isue
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46


Return to Max sessions [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron