Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




1.0.0-rc9.9227.b bugs

UserPost

9:28 pm
March 1, 2009


metal450

Member

posts 159

1

As of 1.0.0-rc9.9227.b:


-get_comments("number=20&status=approve") does not show comments on publicly visible attachments to anonymous users (it does show them to me as the administrator.  If I disable RS, it properly shows them to everyone).

-next_post_link() does not show the next post if it's private, even if the currently logged-in user should be able to see it.  This worked properly in 1.0.0-rc9.9216.

11:06 am
March 2, 2009


Kevin

Admin

posts 2402

2

metal450 said:

As of 1.0.0-rc9.9227.b:

-next_post_link() does not show the next post if it's private, even if the currently logged-in user should be able to see it.  This worked properly in 1.0.0-rc9.9216.


I'm having trouble reproducing this one for a logged user. Tried both without teaser and with teaser, no hiding private.

Does this have something to do with attachments?

11:10 am
March 2, 2009


metal450

Member

posts 159

3

The next/previous  links bug is for regular posts, when logged in as myself (administrator, who should see all posts).  After upgrading from 9216 to 9227.b, when viewing a public post next to a private one, the next/previous links do not reflect the private post - they "skip over it," showing only the next/previous public ones.  I rolled back to the previous RS version just to make sure, and yep, it works properly.

11:21 am
March 2, 2009


Kevin

Admin

posts 2402

4

metal450 said:

The next/previous  links bug is for regular posts, when logged in as myself (administrator, who should see all posts).


Ahh… there's the important condition. For my debugging purposes, "for the currently logged-in user" is entirely different from "for the administrator".

This was a casualty of recent performance enhancements to reduce memory usage when logged in as administrator. Fix coming soon.

3:09 pm
March 2, 2009


Kevin

Admin

posts 2402

5

metal450 said:

As of 1.0.0-rc9.9227.b:

-get_comments("number=20&status=approve") does not show comments on publicly visible attachments to anonymous users (it does show them to me as the administrator.  If I disable RS, it properly shows them to everyone).

-next_post_link() does not show the next post if it's private, even if the currently logged-in user should be able to see it.  This worked properly in 1.0.0-rc9.9216.


These are fixed in the new Role Scoper development snapshot (rc9.9229).

3:55 pm
March 2, 2009


metal450

Member

posts 159

6

Now I get this when not logged in:


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 '( ( ( ( ( ( 1=1 AND wp_posts.ID NOT IN ('18', '30', '33', '36', '41', '43'' at line 1]
SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts LEFT JOIN wp_term_relationships AS tr ON wp_posts.ID = tr.object_id WHERE 1=1 AND wp_posts.post_date > 0 AND post_type = 'post' AND wp_posts.( ( ( ( ( ( 1=1 AND wp_posts.ID NOT IN ('18', '30', '33', '36', '41', '43', '47', '50', '56', '61', '66', '76', '101', '102', '117', '124', '127', '128', '148', '149', '217', '226', '228', '229', '232', '234', '249', '253', '259', '263', '266', '267', '270', '277', '279', '286', '299', '302', '305', '308', '310', '311', '320', '329', '333', '335', '338', '349', '356', '359', '362', '364', '371', '373', '377', '381', '390', '397', '408', '409', '410', '414', '424', '452', '456', '484', '951', '1018', '1240', '1285', '1384', '1427', '1445', '1479', '1545', '1581', '1607', '1678', '1684', '1697', '1699', '1732', '1788', '1832', '1884', '1899', '1932', '2171', '2181', '2239', '2442', '2567', '2716', '2844', '2910', '2958', '2982', '3045', '3082', '3398') ) ) ) ) ) ) AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC

11:14 pm
March 2, 2009


Kevin

Admin

posts 2402

7

Yes, sorry, I was short on time and rushed that last dev snapshot out without enough testing (didn't have my Archives widget enabled after botching part of a code change needed to support attachment comment filtering).

It's now fixed in rc9.9302 (just pretend February 29th didn't exist).

Thanks for the report.

10:26 am
March 3, 2009


metal450

Member

posts 159

8

Looks good! :)


About the Agapetry forum

Currently Online:

12 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