Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can not update course

  • Avatar of raunakkathuria
    raunakkathuria
    Member

    @raunakkathuria

    Hi

    I tried updating course for particular group but when I click on update course it display blank form with message “New Course was added” but even after submitting the form nothing is added. You can look at the following installation that I have done for the group http://www.thinksimplesolutions.co.in/simpleconnect/groups/sample-group/ , admin username is admin and password for site is admin_123.

    Even I am adding a new lecture its not adding any lecture. Can any one please provide the solution to this problem. I tried searching and tried disabling all the plugins but to no avail.

    My setup component version are:
    Wordpress: 3.2.1
    Buddypress: 1.5.1
    Courseware: 0.9.3

    Thanks
    Raunak Kathuria

Viewing 10 replies - 1 through 10 (of 10 total)
  • I am seeing this same behavior. Clicking on the “Edit Course” button takes you to the editing course form, but that form is empty. Any information entered into that form does not save properly, it’s still empty the next time you try to “Edit Course”.

    At the Dashboard, rather than the actual Course name, it says: “Groups course class started by and managed by X teacher(s) for this group”. Note that Courseware is referring to the course as “Groups” rather than what you’ve called it. Then, when trying to add a lecture, the following error is generated:

    Warning: reset() [function.reset]: Passed variable is not an array or object in buddypress-courseware/lectures/lectures.class.php on line 319

    As best as I can tell, Courseware does not recognize that a course actually exists, so you can’t add lectures, assignments, etc. And any attempt to edit the course simply does not work. The course name never sticks, it continues to be referred to as “Groups course class…”

    Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

    This is weird, for some reason, you installation was creating `group_id` term slug with current group slug (where it should be the group id value).
    I can’t explain this yet.

    I believe it is related to BuddyPress Docs, per this thread:
    http://buddypress.org/community/groups/buddypress-courseware/forum/topic/update-course-with-strange-behaviour

    Is there any way to manually update the course via editing database tables or some other way to get the course to function properly. It appears that some aspect of the course creation is not complete or is completed incorrectly. Thank you.

    Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

    Enable the debugging mode in WordPress, you should be able to edit Courses `Group ID` taxonomy terms.
    Make sure, none of those entries has slugs different from term name.

    Yes, this works! Thanks so much @sushkov!

    For others struggling with this issue, you can 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.

    Thanks again.

    Avatar of raunakkathuria
    raunakkathuria
    Member

    @raunakkathuria

    Thanks @tnocera will apply this. My problem got solved when I enabled the buddypress courseware before enabling the buddypress docs and it also got solved by following the suggetion of @wdfee in the link http://buddypress.org/community/groups/buddypress-courseware/forum/topic/update-course-with-strange-behaviour

    quoting it here also

    “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 elenazvarici
    elenazvarici
    Member

    @elenazvarici

    the database wp_terms trick solved the problem for me. Now Ill have to delete the previous groups with Buddypress Docs activated on them.

    Avatar of elenazvarici
    elenazvarici
    Member

    @elenazvarici

    the database wp_terms trick solved the problem for me. Now Ill have to delete the previous groups with Buddypress Docs activated on them.

    Avatar of Stas Sușcov
    Stas Su?cov
    Participant

    @sushkov

    I need to check this issue asap.

    Avatar of vinaysagar4u
    vinaysagar4u
    Member

    @vinaysagar4u

    Guess i found where the trouble occurs!!! Can anyone tell me if they have MU enabled???

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

You must be logged in to reply to this topic.