Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
I am getting an error message whe trying to update my user profile
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 6:13 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:19 AM
Location: Birmingham, UK.
greatbrE.gif
only just noticed this problem when trying to update my usercp

Quote:
Could not update users table

DEBUG MODE

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

UPDATE phpbb_users SET user_email = 'admin@djpassions.com', user_icq = '', user_website = 'http://www.djpassions.com', user_occ = '', user_from = 'Birmingham, UK.', user_interests = '', user_sig = 'www.djpassions.com www.djpassion.co.uk www.thetrancearena.com www.christopher-powell.co.uk www.myspace.com/chris_s_powell', user_sig_bbcode_uid = '69e481217a', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = 'christopher-powell@hotmail.com', user_attachsig = 1, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, games_block_pm = 0, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y h:i a', user_lang = 'english', user_style = 1, user_active = 1, user_actkey = '' WHERE user_id = 2

Line : 531
File : usercp_register.php


Now I could try and remove this but something in the games mod depends on it so I suppose it's wise not to remove it but to just fix the problem instead or ill run into problems later on (I think)
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 7:31 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:19 AM
Location: Birmingham, UK.
greatbrE.gif
anyone...
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 8:19 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:19 AM
Location: St Pete, FL
peace.gif
Ok, it appears that the Arcade author failed to include the addition of a field in the phpbb_users table.  So I updated the table and the SQL query now works correctly in your Profile.  You can use this to update your Live board database:

Code:
ALTER TABLE phpbb_users ADD games_block_pm TINYINT(1) DEFAULT '0' NOT NULL;

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 8:27 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:19 AM
Location: Birmingham, UK.
greatbrE.gif
Cool, cheers!

where/how do I add the above query ?
Code:
ALTER TABLE phpbb_users ADD games_block_pm TINYINT(1) DEFAULT '0' NOT NULL;
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 8:48 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:19 AM
Location: St Pete, FL
peace.gif
MySQL to PHP Converter

You can create a DB Update file that you can run in your browser by using the following utility.  All you need to do is paste the SQL Code in the window, then press the Generate PHP Code button.  It will ask where to save the file.  You can then upload the file to your phpBB root folder and run it in your browser:

MySQL to PHP Converter



headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 9:13 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:19 AM
Location: Birmingham, UK.
greatbrE.gif
Your good man... was easy  Applause

Cheers  headbang
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 9:19 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:19 AM
Location: St Pete, FL
peace.gif
Yep, that's a good site to have bookmarked for future use.  I use it a lot...

banana  banana  banana  banana  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 10:03 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:19 AM
Location: Birmingham, UK.
greatbrE.gif
Bookmarked! I couldn't have figured out that  this was the query I needed to run though. I'm not sure how you got this info
Code:
ALTER TABLE phpbb_users ADD games_block_pm TINYINT(1) DEFAULT '0' NOT NULL;
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 11:23 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:19 AM
Location: St Pete, FL
peace.gif
The error message told us that the missing field was games_block_pm and it belonged to the phpbb_users table.  I guessed that it might be a boolean field, meaning that it would be assigned either 0 or 1, then I created the SQL query to add the field...

I have often used this utility to create db update files to run complex queries that EM couldn't handle.  So in those cases, there is no need to create the query like I did above.  You just have to copy and paste what was provided in the MOD into the utility then create the update file and run it from your browser.  This utility has come in handy for me a lot of times...

I also use it to create DB Update files for people who are just learning and don't know their way around phpMyAdmin.  It's easier to give them a file to run from their browser than to explain how to apply the queries in phpMyAdmin...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: I am getting an error message whe trying to update my user profile
PostPosted: 04/04/2007 11:30 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:19 AM
Location: Birmingham, UK.
greatbrE.gif
Ok, wicked! Well I have all my posts here to come back to if I ever need to backtrack on the things I've gone through etc.

I just hope this site doesn't go down like phpbb  violent1

Thanks again Nightrider
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0846s (PHP: 55% - SQL: 45%) - SQL queries: 58 - GZIP disabled - Debug on