Skip to:
Content
Pages
Categories
Search
Top
Bottom

Update Course with strange behaviour

  • Avatar of Fee
    Fee
    Participant

    @wdfee

    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)

Viewing 15 replies - 1 through 15 (of 15 total)
  • Avatar of Fee
    Fee
    Participant

    @wdfee

    … (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…

    Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

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

    Avatar of Fee
    Fee
    Participant

    @wdfee

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

    Avatar of Andrea Rennick
    Andrea Rennick
    Participant

    @andrea_r

    “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

    Avatar of Fee
    Fee
    Participant

    @wdfee

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

    Avatar of Fee
    Fee
    Participant

    @wdfee

    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.

    Avatar of Fee
    Fee
    Participant

    @wdfee

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

    Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

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

    Thanks.

    Avatar of Fee
    Fee
    Participant

    @wdfee

    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.

    Avatar of Fee
    Fee
    Participant

    @wdfee

    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.

    Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

    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.

    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.

    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.

    Avatar of peeld
    peeld
    Participant

    @peeld

    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.

    Avatar of vinaysagar4u
    vinaysagar4u
    Member

    @vinaysagar4u

    For all those people using multisite or multinetwork with buddypress, i need to say there are limitations to BP. BP in MU is not segregated properly as it shares common database no-matter you use BP ENABLE MULTIBLOG.
    For instance you create a group and activate courseware in site1. You’d have same groups spreadover the rest of the network or networks! So if you try and create a course,add lectures or update it in another subsite or subnetwork the wp-terms saves different slugs. You also get this “courseware error,cheatin uh!” error. So you can only use courseware in a group in the site where the group is created but not in other sites. Is there a work around for this right now? BP 1.6 is adding up filters for BP in MU. Until then you can use BP Multinetwork plugins that uses good filters to segregate BP in MU. You wont see your course group in subsites! However they have their limitations too! Waiting for BP 1.6

Viewing 15 replies - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.