Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




WordPress database error

UserPost

8:37 am
July 17, 2009


david-bann

New Member

david-bann

posts 1

1

I have WP 2.8 - I just installed the ROle Scoper plugin. It all works well, except for one thing. I have not chnaged any settings after activating the plugin.

The only problem that I have found is the when a contributor logs in and views the dashboard page, right at the bottom of the page, it displays the following error:

WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN wp_term_relationships AS tr ON wp_posts.ID = tr.object for query SELECT DISTINCT wp_comments.* FROM wp_comments INNER JOIN wp_posts ON wp_posts.ID = wp_comments.comment_post_ID ORDER BY comment_date_gmt DESC LIMIT 0, LEFT JOIN wp_term_relationships AS tr ON wp_posts.ID = tr.object_id LEFT JOIN wp_user2role2object_rs AS uro ON uro.obj_or_term_id = wp_posts.ID AND uro.src_or_tx_name = 'post' AND uro.scope = 'object' AND uro.assign_for IN ('entity', 'both') AND uro.group_id IN ('4') WHERE 1=1 AND ( ( post_status IN ('private', 'draft', 'future', 'pending', 'publish') AND ( ( ( wp_posts.post_type = 'post' AND ( ( ( 1=2 ) ) ) ) ) OR ( ( wp_posts.post_type = 'page' AND ( ( ( 1=2 ) ) ) ) ) ) ) ) 50 made by wp_dashboard, do_meta_boxes, call_user_func, wp_dashboard_recent_comments, apply_filters, call_user_func_array, scoperadminhardway_ltd->flt_last_resort_query, scoper_get_results, scoper_db_method, call_user_func WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN wp_term_relationships AS tr ON wp_posts.ID = tr.object for query SELECT DISTINCT wp_comments.* FROM wp_comments INNER JOIN wp_posts ON wp_posts.ID = wp_comments.comment_post_ID ORDER BY comment_date_gmt DESC LIMIT 0, LEFT JOIN wp_term_relationships AS tr ON wp_posts.ID = tr.object_id LEFT JOIN wp_user2role2object_rs AS uro ON uro.obj_or_term_id = wp_posts.ID AND uro.src_or_tx_name = 'post' AND uro.scope = 'object' AND uro.assign_for IN ('entity', 'both') AND uro.group_id IN ('4') WHERE 1=1 AND ( ( post_status IN ('private', 'draft', 'future', 'pending', 'publish') AND ( ( ( wp_posts.post_type = 'post' AND ( ( ( 1=2 ) ) ) ) ) OR ( ( wp_posts.post_type = 'page' AND ( ( ( 1=2 ) ) ) ) ) ) ) ) 50 made by wp_dashboard, do_meta_boxes, call_user_func, wp_dashboard_recent_comments

This error does not show up in the admin dashboard.

Even though there is this error, everything still seems to work fine.

10:05 pm
July 21, 2009


Kevin

Admin

posts 2402

2

david-bann said:

The only problem that I have found is the when a contributor logs in and views the dashboard page, right at the bottom of the page, it displays the following error:

WordPress database error …


For some reason, Role Scoper is not filtering your recent comments query correctly. My guess is the affected users are not seeing any Recent Comments listing in the dashboard.

Do you have any other comment-related plugins active?


About the Agapetry forum

Currently Online:

14 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1186

Posts: 5409

Members:

There are 1176 members

There are 1 guests


Kevin has made 2402 posts

Top Posters:

metal450 - 159

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin