{"id":7219360,"date":"2016-03-29T18:04:46","date_gmt":"2016-03-29T18:04:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/condition-steps-problem\/"},"modified":"2016-08-31T15:13:36","modified_gmt":"2016-08-31T15:13:36","slug":"condition-steps-problem","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/condition-steps-problem\/","title":{"rendered":"Condition Steps Problem"},"content":{"rendered":"<p>I wanted to let you know of a strange behavior in the Admin side of Conditions. Steps to recreate:<\/p>\n<p>Create a new condition. Have one \u201cstep\u201d already defined and saved. Note: this step will work on the front-end, with points assigned after completing this one \u201cstep\u201d.<\/p>\n<p>Add a \u201cstep\u201d and then refresh or have to sign in again before filling it in and saving the changes to the condition.<\/p>\n<p>The \u201cStep\u201d areas now cannot be edited (note: \u201cIncomplete\u201d appears next to the condition title). And I do mean all the \u201cstep\u201d area. Even the previously saved and editable step cannot be edited or altered.<\/p>\n<p>Deleting the new incomplete step and trying to edit the previously-working \u201cstep\u201d does not work. The fields are frozen.<\/p>\n<p>Deleting all the \u201csteps\u201d and then adding a new one does not fix the problem. It\u2019s as if the \u201cStep\u201d area has become corrupted or I no longer have the permissions to edit that entire area.<\/p>\n<p>The left-side of the condition area remains fully editable. It is only the \u201cstep\u201d area that is affected. <\/p>\n<p>The only solution is to completely delete the condition and start a brand new condition. The new condition will work as expected&#8230; unless the above steps occur.<\/p>\n<p>I\u2019ve been able to reproduce this behavior.<\/p>\n<p>If the one working (first) step remains (even while the fields are frozen), then on the front-end when a condition is met a pop-up box announcing points earned does appear and the points appear in the MySQL database. However, the points are not reflected in the member profile. I checked the MySQL database, and under \u201cbroo_user_assignment\u201d the points are registering. This might be a separate issue, as I haven\u2019t been able to get any points and badges to appear under a member profile at all, but thought I would mention it here as it was noticed while testing the above issue. \u201c No badges.\tNo points.\u201d does appear under the member profile, so at least that part is working.<\/p>\n<p>Question: Does the pop-up box on the front-end ever announce that a badge has been earned? So far it has not, even though the conditions are set so that a badge is supposed to have been issued. It only announces that points have been earned. The \u201cAssignments\u201d panel in the Admin area does not show that a badge has been issued or is waiting for approval. At the moment I have the system set to \u201cAuto Approve Assignments\u201d.<\/p>\n<p>Another issue I thought I would mention, but I could make happen only once: the very first time I tested Badgearoo with a simple comment to a WP post. When submitting a comment, which then should have triggered points and a badge, this error message appeared: <\/p>\n<blockquote>\n<p>Warning: Missing argument 3 for broo_bp_activity_post_type_published() in \/home\/REDACTED\/REDACTED\/writinggroove.com\/wp-content\/plugins\/badgearoo\/includes\/integrations\/buddypress.php on line 294<\/p>\n<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at \/home\/REDACTED\/REDACTED\/writinggroove.com\/wp-content\/plugins\/badgearoo\/includes\/integrations\/buddypress.php:294) in \/home\/REDACTED\/REDACTED\/writinggroove.com\/wp-includes\/pluggable.php on line 1228<\/p>\n<\/blockquote>\n<p>Comment still posted. No points appeared under the member profile, and as far as I can tell, did not appear in the MySQL database.<\/p>\n<p>I am using the latest versions of WordPress, Buddypress, bbPress, and Badgearoo.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/badgearoo\/<\/p>\n","protected":false},"template":"","class_list":["post-7219360","topic","type-topic","status-publish","hentry","topic-tag-conditions"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7219360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7219360\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7219360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}