Sharing Cart

Blocks ::: block_sharing_cart
Maintained by Don Hinkelman, Tue Korsgaard
**New September 29**: Sharing Cart 3.10, release 8--code problems in release 7 are fixed, and github Issue #101 was tested and fixed. Initial tests are OK in Moodle 3.11. Please report issues in github. This release adds minor fixes/enhancements and improved section copy. The Sharing Cart is a block that enables sharing of Moodle content (resources, activities) between multiple courses on your site. Sharing Cart 3.0 was submitted to Remote Learner for independent vetting and passed May 2016. Includes new interface programmed by Praxis of Denmark, in addition to 'Section Copy' feature and Postgres compatibility (co-funded by Ulm University, Germany and Sapporo Gakuin University, Japan).
Latest release:
3664 sites
878 downloads
160 fans

From Global MoodleMoot Barcelona 2019: Praxis of Copenhagen is a co-maintainer of the Sharing Cart. Thank you, Tue Korsgaard and the Praxis team for your collaboration. Also, thanks to Alex Bias and Kathrin Oswald of Ulm University for advice and support. The Sharing Cart is a block for duplicating course items into a personal library and an easy way to move those Moodle resources and activities between multiple courses on your site. With just three clicks, the Sharing Cart copies and moves a single course item from one course to another. It copies without user data--similar to the "Import” function in Course Administration. From version 2.3, user content in Forums, Wikis, Glossaries and Databases can optionally be included. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication. The Sharing Cart is viewable only by teachers, course creators and administrators. Tested on Moodle 3.3-3.10. Testing now in Moodle 3.11-- please report bugs to github. If you have an earlier version of Moodle, please download an earlier version of Sharing Cart that matches your site from this moodle.org plugins database. We appreciate if you can report your requests and issues there.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Don Hinkelman (Lead maintainer)
Tue Korsgaard: Maintainer
VERSION2 INC: Original Programming Team
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Thu, Mar 4, 2021, 7:34 PM
    Lily, this also sounds like a bug with flexible sections. Could you post an issue on github too? With details and screenshots? Sorry to ask you to do this, but actually we try to make this block compatible with standard formats and themes.
  • Thu, Mar 4, 2021, 7:36 PM
    Sorry, Beat, Jeff and Clay. I think I updated and released the Sharing Cart 3.9 incorrectly. I need some help. Could someone look at the code that triggers an install notice for the Sharing Cart?
  • Thu, Mar 4, 2021, 7:56 PM
    Hi Elias >> "If we restore a quiz in another course, all the question bank will be restored as well from the other course." Oh my gosh, you noticed this core bug too! 90% of the Sharing Cart is the core code for backup and restore. I and others reported this issue in 2007. It is now 14 years old! Yeah, I feel frustrated too. Could you politely ask HQ to fix this. wink You can vote for this issue here: MDL-12403 and here: MDL-41924. Some people say this is not a bug, just a feature request. But I am like you, Elias, it is a bug.
  • Thu, Mar 4, 2021, 10:18 PM
    Hi Don,
    So if we have 3.9 or 3.10 you advise us to use fresh code on Github?
  • Fri, Mar 5, 2021, 6:55 AM
    Yes, Csaba, I recommend those with Moodle 3.9 or 3.10 sites to download the github code and install Sharing Cart from there. There are small fixes going in there occasionally, and I update this code on the plugin database every three months or so. My university has been using the Sharing Cart continuously through Moodle 3.10 and standard themes with no issues. I hope Praxis will have time to work on the issues listed in github, but so far those have not affected our operation.
  • Fri, Mar 5, 2021, 3:45 PM
    Thanks! smile
  • Sat, Mar 13, 2021, 4:33 PM
    This information is so wonderful, keep updating these types of interesting posts. Thank you for sharing this with us.
  • Sat, Mar 13, 2021, 6:26 PM
    I have just released Sharing Cart 3.9, release 3 here on the Moodle plugins database. https://moodle.org/plugins/pluginversions.php?plugin=block_sharing_cart Thanks very much to Praxis software engineers, Ponlawat Weerapanpisit and other volunteers. This current version was earlier available on Github. I have also received reports that this version works on Moodle 3.10 as well. Please continue reporting issues and suggestions--github is the best place when you know you have an issue to share. https://github.com/donhinkelman/moodle-block_sharing_cart
  • Sat, Apr 10, 2021, 5:20 AM
    Also note that recent versions of Sharing Cart require PHP 7.1.x. Sites using php 7.0.x will experiences issues like this: https://github.com/donhinkelman/moodle-block_sharing_cart/issues/88
  • Tue, Apr 13, 2021, 8:04 PM
    Correction: according to Praxis, if you use PHP version 7.2 or older, you may experience issues when uploading and downloading activities with the Sharing Cart (not related to the Sharing Cart). For example, there are issues with badges in these older PHP versions. PHP version 7.3, 7.4 and later are recommended.
  • Mon, Jul 26, 2021, 9:18 PM
    Hi Don, I upgraded Sharing Cart as I received that an update was available on my Moodle sites using various themes. At first, I thought it was the themes, but then, I tried it on BOOST and it showed an error whenever I turned editing on. This is what I get as a result with debugging turned on for developers. I hope it helps.

    Error
    Exception - syntax error, unexpected 'moodle_database' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
    Debug info:
    Error code: generalexceptionmessage
    Stack trace:
    line 39 of /blocks/sharing_cart/classes/repositories/course_repository.php: ParseError thrown
    line ? of unknownfile: call to core_component::classloader()
    line 77 of /blocks/sharing_cart/classes/controller.php: call to spl_autoload_call()
    line 84 of /blocks/sharing_cart/block_sharing_cart.php: call to block_sharing_cart\controller->render_tree()
    line 341 of /blocks/moodleblock.class.php: call to block_sharing_cart->get_content()
    line 235 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1239 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 3980 of /lib/outputrenderers.php: call to block_manager->region_has_content()
    line 40 of /theme/boost/layout/columns2.php: call to core_renderer->blocks()
    line 1396 of /lib/outputrenderers.php: call to include()
    line 1326 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 245 of /course/view.php: call to core_renderer->header()


  • Mon, Jul 26, 2021, 9:20 PM
    I was unable to edit the response above, so here's more. I'm on Moodle version 3.11.1.
  • Wed, Jul 28, 2021, 1:00 PM
    I have a similar issue as Dr. Nellie Deutsch when trying to submit a file or save a file:

    line 32 of /blocks/sharing_cart/classes/files/cleaner.php: ParseError thrown
    line ? of unknownfile: call to core_component::classloader()
    line 33 of /blocks/sharing_cart/lib.php: call to spl_autoload_call()
    line 405 of /lib/filestorage/stored_file.php: call to block_sharing_cart_after_file_deleted()
    line 1187 of /lib/filelib.php: call to stored_file->delete()
    line 275 of /lib/filelib.php: call to file_save_draft_area_files()
    line 221 of /mod/assign/submission/onlinetext/locallib.php: call to file_postupdate_standard_editor()
    line 7491 of /mod/assign/locallib.php: call to assign_submission_onlinetext->save()
    line 7576 of /mod/assign/locallib.php: call to assign->save_submission()
    line 493 of /mod/assign/locallib.php: call to assign->process_save_submission()
    line 55 of /mod/assign/view.php: call to assign->view()

    Moodle only outputs this generic message:
    Exception syntax error, unexpected '\' (T_NS_SEPARATOR), expecting function (T_FUNCTION) or const (T_CONST)

    I had to disable Sharing Cart to prevent it from not allowing students to add files (I couldn't even add it in assignments/quizzes as the admin). The plugin even reports two instances or the block being present in two courses; except the plugin is NOT present in those two courses. Other courses are unaffected by this.
  • Wed, Jul 28, 2021, 1:00 PM
  • Wed, Nov 10, 2021, 8:18 PM
    Hello, in moodle3.10 we have a problem - when adding a module to sharing cart it inserts the same module twice. Do you familiar with this bug? Thanks!
1 2 3 4 5 6 7 8 9 10 11
Please login to post comments