lottery mod error

Support for IntegraMOD 141

Moderator: Integra Moderator

lottery mod error

PostAuthor: ayasha » Mon Jan 29, 2007 11:24 am

Your phpBB Version: 2.0.22
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://www.graphicsplayhouse.com/forum

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

when the lottery link is clicked on i get this error

Error getting information from users table!

DEBUG MODE

SQL Error : 1054 Unknown column 'user_items' in 'field list'

SELECT `username`, `user_items` FROM phpbb_users WHERE user_id='2'

Line : 174
File : lottery.php


now, i don't have the item pool enabled for the lottery, and i am assuming this error has to do with that feature, any suggestions?
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: lottery mod error

PostAuthor: Teelk » Mon Jan 29, 2007 6:52 pm

The problem is that the MOD seems to be missing user_items from the db install .script. The problem being that I don't know offhand what kind of column it needs to be.

I'm assuming from the code that it should be a long string and we'll need to use varchar.

You can try this, if it does't work you can easily delete the column from your users table through phpmyadmin, and it shouldn't effect anything else anyway.

Code: Select all
ALTER TABLE `phpbb_users` ADD `user_item` VARCHAR( 100 ) NULL ;
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: ayasha » Mon Jan 29, 2007 7:13 pm

thanks Teelk, i ran that query, and will let you know if i have any problems with it.
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: ayasha » Tue Jan 30, 2007 11:57 am

that did not help Teelk, i am still getting the same error <img>
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: lottery mod error

PostAuthor: Teelk » Tue Jan 30, 2007 6:41 pm

That's because I'm an idiot and gave you sql code with user_item instead of user_items...

Go into phpmyadmin and rename user_item to user_items in the users table.
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: ayasha » Tue Jan 30, 2007 7:18 pm

well, i must be an idiot too then Teelk, because i kept reading over the error and reading over the sql code, and i did not notice it either <img>

thanks guy
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: lottery mod error

PostAuthor: DjPorkchop » Tue Jan 30, 2007 7:34 pm

I had that very same error when i installed it on 1.4.0 and there was a fix for it BUT i cant for the life of me remember where I found it. If you have the shop mod installed you will not get that error. Or shouldnt atleast. Let me do some digging too Cleo and if Teelks sql works great. If not Ill keep looking for that fix. i have it somewhere.
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1593
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,575.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: lottery mod error

PostAuthor: Teelk » Tue Jan 30, 2007 10:55 pm

Ah, ok then it should be the same as the ShopMOD's sql entry. Cleo, delete that column from the users table and run this query...
Code: Select all
ALTER TABLE phpbb_users add `user_items` TEXT;
Change the phpbb_ to your table prefix of coarse.
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: ayasha » Tue Jan 30, 2007 11:05 pm

ok, wait, i DO NOT have the shop mod installed....so which one should i use?
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: lottery mod error

PostAuthor: Teelk » Tue Jan 30, 2007 11:09 pm

The one from my last post.
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: ayasha » Thu Feb 01, 2007 7:47 am

wanted to let you know Teelk, it is working good right now, thanks for your help <img>
Last edited by ayasha on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: lottery mod error

PostAuthor: DjPorkchop » Thu Feb 01, 2007 8:02 am

Oh Ok.....Just forget about me Ms. Cleo ROFL!!!!!! J/K ya glad its working for you. <img>
Last edited by DjPorkchop on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
DjPorkchop
Administrator
Administrator
 
Posts: 1593
Likes: 136 posts
Liked in: 26 posts
Images: 12
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,575.25
Location: Illinois
IntegraMOD version: phpBB2x


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]