Plugin: BuddyPress ScholarPress Courseware

Join this plugin group to follow comments, support topics and reviews.

Update Course with strange behaviour (15 posts)

Started 9 months, 3 weeks ago by: Fée

  • Profile picture of Fée Fée said 9 months, 3 weeks ago:

    Hello Stas,
    thanks for your very good LMS plugin!
    I’m testing your newest version 0.1.6-87-g5c7d518 (the downloaded zip file is called) with the newest buddypress trunk 1.5-beta-1 revision #4917, Wordpress 3.2.1 and multisite / multi network install. I’m sorry, it’s no clean install at the moment as I’m testing other plugins, too. (I know I will have to do this step if the problem persists).

    issues:
    - Though I have group admins, teachers and students, it shows on the group homepage:
    “course class started by and managed by 0 teacher(s) for this group”
    - the page is getting very slow when courseware is activated (using wp super cache)
    - clicking “Update Course” shows an empty form (textfield for title and tinymce form), on the top the notice: “New course was added.”
    - typing something into the fields and saving with “Update course” shows the notice again, but nothing happens, the changes do not appear
    - in backend “courses” lists the same group/course multiple times – I guess every click on “update course” produces a new line…, always three times at the same timestamp (three times 21 minutes ago, three times 38 minutes ago and so on)

  • Profile picture of Fée Fée said 9 months, 3 weeks ago:

    … (BP #4918 now)

    to say it exactly:
    - Clicking on “Update Course” the first time produces one line in the courses list in backend, one notice above the navigation in frontend
    - Submitting the form with “Update course” produces two lines in the courses list in backend, one notice above the navigation and one below the navigation in frontend. From the two lines in backend the first line contains the new data, the last line the old data again. The old data seem to overwrite the new ones…

  • Profile picture of Stas Sușcov Stas Suscov said 9 months, 3 weeks ago:

    Thank you, I will check it again.
    It’s kinda hard to keep in sync with BP trunk changes.

  • Profile picture of Fée Fée said 9 months, 3 weeks ago:

    ok, it works on another sub network. I don’t know why yet, I’m trying around: same plugins activated, same options, same theme…

  • Profile picture of Andrea_r Andrea_r said 9 months, 3 weeks ago:

    “ok, it works on another sub network.”

    Do you mean sub site? Because if you’re running multiple networks, that may be more the issue

  • Profile picture of Fée Fée said 9 months, 3 weeks ago:

    hello Andrea, no, I mean multiple networks, I used your network+ plugin.
    I read that Stas added multiple network functionality to the next release.

  • Profile picture of Fée Fée said 9 months, 3 weeks ago:

    I got it: There’s something incompatible with the BP Group Docs plugin.
    If Buddypress Docs are enabled in a group, the described issue happens, but only if I enable it in the group creating process. If I create a group without docs enabled and enable them later everything works correctly.

  • Profile picture of Fée Fée said 9 months, 3 weeks ago:

    Buddypress Docs is the correct name, by Boone B Georges … I use the actual version 1.1.10

  • Profile picture of Stas Sușcov Stas Suscov said 9 months, 3 weeks ago:

    Hmm, there might be some issues with group creating process. I will check my code and also ask @boone about that.

    Thanks.

  • Profile picture of Fée Fée said 8 months, 2 weeks ago:

    Did you find out somthing about it, any answer from boone?
    The problem is not only in the group creating process, it is just before editing the course for the first time:
    When I create a new group, I only may activate bp docs after I have activated courseware AND edited the course. If activating bp docs before this last step, it is no more possible to edit courseware in this group or to place content (lectures) into this group.
    So there must happen something at editing the course the first time that is otherwise crashed by bp docs.

  • Profile picture of Fée Fée said 8 months, 2 weeks ago:

    I tried the following – I know it is no solution to hardcode other plugins – but maybe it’ll help you to find the cause or to build another workaround:
    I stepped into the group creating screen from bp docs in /wp-content/plugins/buddypress-docs/includes/integration-groups.php line 842. To assure that the course is generated before bp docs is enabled I placed your function BPSP_Courses::init_course(); in the create_screen() function of bp docs – it works :-)
    The course is initiated even before courseware is enabled and can’t be crashed anymore.

  • Profile picture of Stas Sușcov Stas Suscov said 8 months, 2 weeks ago:

    Hey, not sure, but @boone released a new version of bp-docs a while ago.
    I have some time and will look through both of these.

    Thanks.

  • Profile picture of tnocera tnocera said 6 months, 1 week ago:

    Yes, I believe this is a true, repeatable issue. I am seeing it on my test install as well. Please see this thread for more details:

    http://buddypress.org/community/groups/buddypress-courseware/forum/topic/can-not-update-course/

    I have several groups where it is simply impossible to edit the course, exactly as Fée describes above. It really does seem that enabling BuddyPress Docs during the group creation process prevents the course from being properly created. Deactivating BuddyPress Docs after the fact does not solve the problem. The course is never fully created, so it cannot be edited.

    Stas, is there a way to force the course creation to properly complete and/or manually create it by editing the database tables or something else? I have a couple groups that are up and running who cannot edit their course or add lectures, assignments, etc. (other groups on the same install have courses that are working fine). Creating new groups is not an option for them at this point.

    Thank you.

  • Profile picture of tnocera tnocera said 6 months, 1 week ago:

    Here is the solution:

    Go into the ‘wp_terms’ table of your database. The ‘name’ and ‘slug’ values much match for the course to function properly. The offending courses were immediately obvious since the values did not match, and once I edited the values to match, the problems disappeared. Note that the courses probably have numerical values which will make it harder to determine which course is which, but the mismatch is obvious enough.

    Hope this helps someone, and many thanks to @sushkov for your help in troubleshooting this.

  • Profile picture of peeld peeld said 2 months, 3 weeks ago:

    This does not solve it for me. Can’t create a group and get access to the courseware under admin tab, even if group was created with bp docs off.