Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




get_categories -> Database Error

UserPost

12:22 am
December 19, 2008


metal450

Member

posts 178

1

When Role Scoper is turned on, and I make a call to get_categories("child_of=1″) while accessing the site anonymously (not logged in), it generates the following database error:


WordPress database error: [Unknown column 'wp_posts.post_type' in 'where clause']
      SELECT DISTINCT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE 1=1 AND ( ( ( ( wp_posts.post_type = 'post' ) ) ) ) AND tt.taxonomy IN ('category') ORDER BY t.name ASC


If I access the site as any logged-in user (or disable Role Scoper), the error goes away and it functions as expected.

12:50 am
December 19, 2008


metal450

Member

posts 178

2

Deactivating and re-activating the plugin seemed to make this go away…


About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin