Archive

Archive for the ‘WordPress’ Category

WPMU 2.6 to 2.8 upgrade errors

August 11th, 2009 1 comment

I am the Webmaster of Gujarati Sahitya Sarita Website. From past so many days I wanted to update this site but couldn’t get enough time to get it done. Finally I dared to upgrade this site. This site was using old codebase wpmu 2.6. Upgrade from 2.6 to 2.7 was easy. I had to do it manually. It worked fine but then I auto upgraded to 2.8.

Now when I tried to login, it gave me weird error “You do not have sufficient permissions to access this page” even though I tried to use “admin” username.  I searched a lot but not found enough information. I also tried to debug the code but all in vein. Finally I directly looked into table “wp_usermeta” for userid = 1, meta_key=”wp_1_capabilities”. I found that it contains value “Administrator” instead of “administrator”. I changed it to lowercase and I was able to login.

Once I logged in, I cannot view “Site Admin” menu which is a must for managing overall functionality of the blog. I tried to search it but could not find anything. I looked into table “wp_sitemeta” for Site_id = 1 and meta_key = “site_admins”. I found extra “\” (backslash) into the value. I removed it and it worked fine.

Also I lost all my sitewide settings so make sure you apply those settings again.

Categories: WordPress Tags:

WordPress Comment Spam Even with Comments Disabled for Blog

April 27th, 2007 1 comment

I have my wordpress blog at http://diary.vishalon.net. Every day I am getting hundreds of comment spam. I had installed comment spam fight plugin and it seems like worked for few days but again I was getting spam comments. I changed the settings of blog so that only logged in user can put a comment. I even disabled comments completely but all efforts were in vein. I tried to find some information on google but couldn’t get it So I thought let me debug the application and check it out why I am getting hunderds of comments everyday. For this, in wp-comments-post.php file I wrote a code to write all parameters in a text file so I can check out what’s wrong with application. I can post my comment and see the log file but for spam, there was no log trail. It seemed to me that comments are coming from other  files. so I moved that code into config file and I found that those comments are actually trackbacks. If you want to check if the comment is trackback or not, check the Email value of comment. If you see it empty, it means it is a trackback. I disabled trackback by loggin in site > Options > Discussion and disabling trackback and pingback.

Now I am relieved of spam comments(actually trackbacks).

Categories: WordPress Tags:

WordPress Yearly/Monthly/Weekly Post Repeater Plugin

April 8th, 2007 13 comments

Post Repeater plugin is a boon when you need to repeat a single post every year/month/week of the day. You may achieve this functionality by editing timestamp manually, but using this plugin you can automate this task. This plugin is very useful when you are blogging about weekly/monthly/yearly/historical events, famous persons etc. All the posts which needs to be repeated are listed on the top of your blog posts for that day.

Features

  • Uses custom field
  • No change required in theme
  • No cron job
  • No change in original timestamp of post

Version Supported

WordPress 2.1 and greater
WordPress Mu 1.1 and greater

Installtion Procedure:

  1. Download the plugin and unzip it
  2. Put the PostRepeater.php file into your wp-content/plugins/ directory
  3. Go to the Plugins page in your WordPress Administration area and click “Activate” for Post Repeater Plugin

So easy hmmm…….

How to repeat your post?

It is even simpler than installing your plugin. Choose the post you need to repeat and open it in edit mode. This plugin uses custom field to tag the repeater post.
Here is the custom field settings
Key = REPEATON, Value = MM/DD for yearly repeat
Key = REPEATON, Value = DD for monthly repeat
Key = REPEATON, Value = Sun/Mon/Tue/Wed/Thu/Fri/Sat for weekly repeat

Custom Field Settings Example

Key = REPEATON, Value = 04/24 will repeat the post on 24th April every year.
Key = REPEATON, Value = 09 will repeat the post on 9th of every month.
Key = REPEATON, Value = Fri will repeat the post on every friday.

Dont forget that you must have to put two digits for date and month number.

Known Issue

If your repeating post is very latest and comes on the front page of your blog, it will be repeated. (This post will be shown as a repeating post and as a regular post)

FAQ’s

1) I activated plugin but cannot see repeating post.
Check your wordpress version. It must be WP 2.1 or > or WPMU 1.1 or >. Check the custom field name and make sure that you spelled it correct. Check the custom field value is set to proper format MM/DD (with leading zero)

2) I would like to activate Sticky Post Plugin as well
Dont do that mistake. It is going to throw mysql error.

3) I got wierd mysql error
This plugin changes query for showing posts. It is possible that you have another plugin which also modifies the query and hence the resultant query is a junk query which MySQL is not recognizing. so now you have to deactivate any one of the plugin.

Categories: WordPress Tags:

WordPress Yearly Repeater Plugin

April 5th, 2007 4 comments

Update: This plugin is modified and created new Post Repeater Plugin which is capable of repeating the post yearly/monthly/weekly bases.

Yearly Repeater plugin is a boon when you need to repeat a single post every year on a particular day. You can achieve this by editing timestamp manually every year, but using this plugin you can automate this task. This plugin is very useful when you are blogging about historical events, famous persons etc. All the posts which needs to be repeated are listed on the top of your blog posts for that day.

 

Download WordPress Repeater Plugin

 

Version Supported

WordPress 2.1 and greater
WordPress Mu 1.1 and greater

 

Installtion Procedure

1) Download the plugin and unzip it
2) Put the Repeater.php file into your wp-content/plugins/ directory
3) Go to the Plugins page in your WordPress Administration area and click “Activate” for Yearly Repeater
So easy hmmm…….

 

How to repeat your post?

It is even simpler than installing your plugin. Choose the post you need to repeat every year and add custom field Key = REPEATON and Value=MM/DD, press Add Custom Field button, save the post and you are done!!!. For example, if you need to repeat the post on 24th April, set the custom field Key = REPEATON and Value = 04/24. Dont forget that you must have to put two digits for date and month.

 

Known Issue

If your yearly post is very latest and comes on the front page of your blog, it will be repeated. (This post will be shown as a repeating post and as a regular post)

 

FAQ’s

1) I activated plugin but cannot see repeating post.
Check your wordpress version. It must be WP 2.1 or greater or WPMU 1.1 or greater. Check the custom field name and make sure that you spelled it correct. Check the custom field value is set to proper format MM/DD (with leading zero)

2) I would like to activate Sticky Post plugin as well
Dont do that mistake. It is going to throw mysql error.

3) I got wierd mysql error
This plugin changes query for showing posts. It is possible that you have another plugin which also modifies the query and hence the resultant query is a junk query which MySQL is not recognizing. so now you have to deactivate any one of the plugins.

Categories: WordPress Tags:

WordPress Sticky Post Plugin

April 5th, 2007 67 comments

Sticky Post Plugin is a must have plugin in your WordPress arsenal. This plugin shows the designated post on the top of every post. There is no need to modify your current theme.

 

Download WordPress Sticky Post Plugin

 

Version Supported

WordPress 2.1 and greater
WordPress Mu 1.1 and greater

 

Installtion Procedure:

1) Download the plugin and unzip it
2) Put the StickyPost.php file into your wp-content/plugins/ directory
3) Go to the Plugins page in your WordPress Administration area and click “Activate” for Sticky Post
So easy hmmm…….

 

How to stick your post?

It is even simpler than installing your plugin. Choose the victim post to stick on the top and add custom field Key=STICKY and Value=1, press Add Custom Field button, save the post and you are done!!!.

 

Known Issue

If your sticky post is very latest and comes on the front page of your blog, it will be repeated. (This post will be shown as a sticky post and as a regular post)

 

FAQ’s

1) I activated plugin but cannot see sticky post.
Check your wordpress version. It must be WP 2.1 or greater or WPMU 1.1 or greater. Second you check the custom field name and make sure that you spelled it correct.

2) I would like to activate Yearly/Monthly/Weekly Repeater Plugin as well
Dont do that mistake. It is going to throw mysql error.

3) I got wierd mysql error
This plugin changes query for showing posts. It is possible that you have another plugin which also modifies the query and hence the resultant query is a junk query which MySQL is not recognizing. so now you have to deactivate any one of the plugins.

Categories: WordPress Tags: