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: Wp-ratings messes up database in MySQL 3.x  (Read 5884 times)

0 Members and 1 Guest are viewing this topic.

Frans

  • Guest
Wp-ratings messes up database in MySQL 3.x
« on: 30 December 2006, 14:59 »
Hi, great plugin! but,
when i rate my post bad things happen in the database  ;)

For every rating i make it makes three new entries in the wp-postmeta table.
I rated 4 posts and this is what was added to the wp-postmeta:



And the wp-ratings table looked ok i think:



How can i fix this because the wp-postmeta table becomes HUGE and i cannot remove the entries from within your plugin, the plugin only empties the wp-ratings table.

Thanks!

p.s. there is a bug in your postratings.php on line 100:

Code: [Select]
echo "\t".'var ratings_ajax_url = \''.$ratings_ajax_url.'/wp-content/plugins/postratings/postratings/postratings.php\';'."\n";
Notice the double /postratings/postratings/  :o

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Wp-ratings messes up database in MySQL 3.x
« Reply #1 on: 30 December 2006, 18:54 »
Yea I fixed the bug. THANK YOU SO MUCH. But for some weird reasons, it still work. LOL

Actually the wp-postmeta is not a bug, it is meant to be like that. there will be 3 added rows to the postmeta table. Actually it is not that much even if you got 100,000 post, there are only 300,000 rows, still less than what a database can handles.

++ 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,296
    • View Profile
Re: Wp-ratings messes up database in MySQL 3.x
« Reply #2 on: 31 December 2006, 04:06 »
Can it easily get over 100 MB?
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Wp-ratings messes up database in MySQL 3.x
« Reply #3 on: 31 December 2006, 06:42 »
nope not easy. forums DB anytime will use up more space than blogs DB.

++ 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.

Frans

  • Guest
Re: Wp-ratings messes up database in MySQL 3.x
« Reply #4 on: 31 December 2006, 11:25 »
Test if forum works again, yesterday i got a "Internal Server Error" every time i tried to reply.

Just testing...

Frans

  • Guest
Re: Wp-ratings messes up database in MySQL 3.x
« Reply #5 on: 31 December 2006, 11:29 »
Ok, works again  :D

Yea I fixed the bug. THANK YOU SO MUCH. But for some weird reasons, it still work. LOL

Strange, i got a "Page Not Found" when i voted.
I also had to change the "$ratings_ajax_url" because it created yhe wrong url.

The postmeta table is supposed to be like that? Ah ok, so it works fine in MySQL 3.x?
For me its a reason to not use the plugin but that is just personal.. too much work to remove all the data from the database  :P

Thanks for your reply and for the great plugins!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Wp-ratings messes up database in MySQL 3.x
« Reply #6 on: 31 December 2006, 13:11 »
Really? as in now on my http://www.lesterchan.net/wordpress ?

By right it should work with 3.x because I change the sql query, but not 100% sure because I did not test it.

The new version (1.05) you can remove the postmeta information easily. It is under PostRatings Data/Log

++ 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.

Frans

  • Guest
Re: Wp-ratings messes up database in MySQL 3.x
« Reply #7 on: 31 December 2006, 13:50 »
The new version (1.05) you can remove the postmeta information easily. It is under PostRatings Data/Log

Yes, i use 1.05 and tried to remove logs and data but i doesnt remove the entries in wp-postmeta. I get the following error:



Maybe thats because i use MySQL 3.x?


Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Wp-ratings messes up database in MySQL 3.x
« Reply #8 on: 31 December 2006, 16:06 »
do u have any postmeta/log there? Because if there is no log or ratings data, there will be an error. Deleting should work even if it is 3.x

++ 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.