All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: WordPress database error  (Read 9318 times)

0 Members and 1 Guest are viewing this topic.

Åse

  • Guest
WordPress database error
« on: 01 January 2007, 12:21 »
Hello!

I'm trying to install the 2.05 version of WP-UserOnline (have the 2.04) but get errors:

WordPress database error: [Unknown column 'userid' in 'where clause']
DELETE FROM wp_useronline WHERE userid = '1' OR (timestamp < 1167659745)

WordPress database error: [Column count doesn't match value count at row 1]
INSERT INTO wp_useronline VALUES ('1167660045', '1', 'admin', 'Åse', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1', '83.249.xxx.xx', 'V i k t i g . o r g', '%2Fwp-admin%2Fplugins.php', 'member')


  I use WP 2.0.5, have a modified mx4 theme.

Any help is appreciated!
Thank You
http://www.viktig.org/

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WordPress database error
« Reply #1 on: 01 January 2007, 16:49 »
Deactivate wp-useronline and try activate it again

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: WordPress database error
« Reply #2 on: 01 January 2007, 21:19 »
What's your MySQL version? :)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Åse

  • Guest
Re: WordPress database error
« Reply #3 on: 02 January 2007, 08:39 »
Deactivate wp-useronline and try activate it again

Done so hundreed of times. Version 2.04 works like a charm but not 2.05 or now 2.06

Åse

  • Guest
Re: WordPress database error
« Reply #4 on: 02 January 2007, 08:39 »
What's your MySQL version? :)

4.0.27-standard 

Thanks!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WordPress database error
« Reply #5 on: 02 January 2007, 09:59 »
Try This.
1. Activate the plugin (ignore the error)
2. Go to phpmyadmin, drop the wp_useronline table.
3. Run this query in phpmyadmin
Code: [Select]
CREATE TABLE `wp_useronline` (
  `timestamp` int(15) NOT NULL default '0',
  `userid` int(10) NOT NULL default '0',
  `username` varchar(150) NOT NULL default '',
  `displayname` varchar(255) NOT NULL default '',
  `useragent` varchar(255) NOT NULL default '',
  `ip` varchar(40) NOT NULL default '',
  `location` varchar(255) NOT NULL default '',
  `url` varchar(255) NOT NULL default '',
  `type` enum('member','guest','bot') NOT NULL default 'guest',
  UNIQUE KEY `useronline_id` (`timestamp`,`username`,`ip`,`useragent`)
);

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Åse

  • Guest
Re: WordPress database error
« Reply #6 on: 02 January 2007, 10:52 »
That did it! Thank you!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WordPress database error
« Reply #7 on: 02 January 2007, 15:50 »
no problem

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: WordPress database error
« Reply #8 on: 02 January 2007, 17:37 »
Glad it works.. :)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

antgoto

  • Guest
Re: WordPress database error
« Reply #9 on: 22 January 2007, 16:36 »
i have same problem with 2.05 or 2.06
mysql version:5.0.22
try to run
Code: [Select]
CREATE TABLE `wp_useronline` (
  `timestamp` int(15) NOT NULL default '0',
  `userid` int(10) NOT NULL default '0',
  `username` varchar(150) NOT NULL default '',
  `displayname` varchar(255) NOT NULL default '',
  `useragent` varchar(255) NOT NULL default '',
  `ip` varchar(40) NOT NULL default '',
  `location` varchar(255) NOT NULL default '',
  `url` varchar(255) NOT NULL default '',
  `type` enum('member','guest','bot') NOT NULL default 'guest',
  UNIQUE KEY `useronline_id` (`timestamp`,`username`,`ip`,`useragent`)
);
then show err msg as attach file


[attachment deleted by admin]

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WordPress database error
« Reply #10 on: 22 January 2007, 19:02 »
Try This:
Code: [Select]
CREATE TABLE `wp_useronline` (
  `timestamp` int(15) NOT NULL default '0',
  `userid` int(10) NOT NULL default '0',
  `username` varchar(20) NOT NULL default '',
  `displayname` varchar(255) NOT NULL default '',
  `useragent` varchar(255) NOT NULL default '',
  `ip` varchar(40) NOT NULL default '',
  `location` varchar(255) NOT NULL default '',
  `url` varchar(255) NOT NULL default '',
  `type` enum('member','guest','bot') NOT NULL default 'guest',
  UNIQUE KEY `useronline_id` (`timestamp`,`username`,`ip`,`useragent`)
);

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

antgoto

  • Guest
Re: WordPress database error
« Reply #11 on: 23 January 2007, 11:53 »
it's work thinks~ :D

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WordPress database error
« Reply #12 on: 23 January 2007, 12:54 »
yea if u can create it, it will work

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: WordPress database error
« Reply #13 on: 23 January 2007, 23:46 »
What?
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline RoarinRow

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: WordPress database error
« Reply #14 on: 18 June 2007, 22:31 »
Got it to work thanks.  I just had to insert a 'referral' row in the user's online table and walla!  Thanks!

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,294
    • View Profile
Re: WordPress database error
« Reply #15 on: 30 June 2007, 19:10 »
Glad it works... :)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers