[Mahara-contributors] [Bug 1019644] Re: Plans in groups
** Changed in: mahara Status: Triaged => Fix Released -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1019644 Title: Plans in groups Status in Mahara: Fix Released Bug description: Groups don't have plans. I think it's a good idea that membres of the group could plan group's future activity and goals. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1019644/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1356312] Re: Plans in groups
** Changed in: mahara Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1356312 Title: Plans in groups Status in Mahara: Fix Released Bug description: Currently Plans are individual. Could there also be Plans for Groups? It would be particularly useful if it were possible to allocate work to individual members, and to indicate (perhaps with percentage or slider) the degree to which each task was accomplished. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1356312/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1946619] Re: UX: Change 'Return to pages and collections' button icon
Hi everybody, Some time ago Kristina and me discussed this issue in the context of visiting portfolios from the plans and the submissions list, providing the ability to return to the lists via a return button. Currently the return URL of the "Return to pages and collections"-Button is restricted to hardcoded destinations. We introduced with the "Submissions" plugin a tool called "Flashback", which provides the ability to return to a cookie stored definable "root URL". Currently it is used, when a portfolio is visited via the submissions list to return to this list, when the portfolio is released by using the release form directly below the portfolio page. We would be very happy if you could take a solution using "Flashback" into consideration! :) Doing so, a dynamically definable return url could be cached while visiting several pages in the browser (e. g. navigating through the pages of a collection) giving the user the ability to return to the context he initially called the portfolio. Cheers Alex -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1946619 Title: UX: Change 'Return to pages and collections' button icon Status in Mahara: Confirmed Bug description: We currently have a back button that allows people to return back to the 'Pages and collections' page. The icon is an arrow pointing to the left to indicate "go back". This button is displayed when they are viewing a page in edit mode, but not in display mode. If I have navigated to the second page of a collection, the meaning of this icon changes. It does not take me "back" to the previous screen, but it takes me back to the 'Pages and collections' page. A solution to this would be to change the icon from a back arrow, to a books icon. The image of books is commonly used to represent a library, or a place where all pages/artefects/things are stored. I think this would more clearly communicate the function of this button, as a quick link back to the place where all of the person's work is stored. (Match between system and real world) This can be further reinforced by renaming the 'Pages and collections' page to "Portfolio Library" as in this bug report here: https://bugs.launchpad.net/mahara/+bug/1946291 Furthermore, having this books/return icon available in all modes for collections and portfolios would improve the usability significantly. As the user will spend a lot of time navigating through pages and artefacts to manage their learning, it makes sense to give them the option to 'return home' at any point in their journey (User control and freedom). (An even better fix could be to include the books icon in the navbar, so that the user has quick, one-click access to their portfolio library from any view in the site.) Link to fontawesome books icon: https://fontawesome.com/v5.15/icons/books?style=solid (This is under the paid plan, but I'm sure we could find or make something consistent with our design scheme). To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1946619/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1962580] [NEW] Blocktype PDF - Missing command icons on PDF viewer
Public bug reported: Our Mahara 21.10 installation is on an Ubuntu 20.10 LTS Server running PHP 7.4. Using Safari in a view containing a PDF block the command button icons of the PDF viewer are not displayed (Buttons are graphically "empty"). Nevertheless normal functionality is provided by clicking on those buttons. This issue doesn't appear on Firefox and Chrome. Looking at the console output it shows, that in Safari the icon svg files are fetched from a different location on the server than in Firefox and Chrome. Does anybody else has this issue? Cheers Alex ** Affects: mahara Importance: Undecided Status: New ** Attachment added: "Bildschirmfoto 2022-03-01 um 14.54.35.png" https://bugs.launchpad.net/bugs/1962580/+attachment/5564490/+files/Bildschirmfoto%202022-03-01%20um%2014.54.35.png -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1962580 Title: Blocktype PDF - Missing command icons on PDF viewer Status in Mahara: New Bug description: Our Mahara 21.10 installation is on an Ubuntu 20.10 LTS Server running PHP 7.4. Using Safari in a view containing a PDF block the command button icons of the PDF viewer are not displayed (Buttons are graphically "empty"). Nevertheless normal functionality is provided by clicking on those buttons. This issue doesn't appear on Firefox and Chrome. Looking at the console output it shows, that in Safari the icon svg files are fetched from a different location on the server than in Firefox and Chrome. Does anybody else has this issue? Cheers Alex To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1962580/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1906123] Re: PDF export not generated under Ubuntu 20.04
Here a little dirty hack which we temporarily implemented on our Ubuntu 20.10 LTS system, to make PDF export work. In file htdocs/export/pdf/lib.php insert following code before line 194 (before command "$browserFactory = new BrowserFactory($browsertype);") $browsertype = '/snap/chromium/current/usr/lib/chromium-browser/chrome'; See also https://askubuntu.com/questions/1286660/how-to-get-the-snap- based-chromium-to-access-a-separately-mounted-filesystem for more informations. Cheers Alex -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1906123 Title: PDF export not generated under Ubuntu 20.04 Status in Mahara: Triaged Bug description: From https://mahara.org/interaction/forum/topic.php?id=8653 and https://mahara.org/interaction/forum/topic.php?id=8652 enabled PDF export plugin in my site, System didn't report any errors. When I export my pages , in "Export your portfolio" page, system stopped at "Please wait while your export is being generated..." and "Copying extra files" for long long time, but system do not report any errros also. In server "dataroot" directory, "HTML" directory have some generated files ,but "PDF" directory is empty. If I disabled PDF export plugin in my site, then exporting pages can be finished normally. dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for reading: Permission denied [Tue Jul 14 06:57:29.232825 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) [RuntimeException]: Chrome process stopped before startup completed. Additional info: /usr/bin/chromium-browser: 12: xdg-settings: not found, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232899 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) cmd_run.go:918: WARNING: cannot create user data directory: cannot create "/usr/sbin/snap/chromium/1213": mkdir /usr/sbin/snap: permission denied, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232920 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) cannot create user data directory: /usr/sbin/snap/chromium/1213: Permission denied at /apps/mahara/htdocs/lib/chrome-php/headless-chromium-php-master/src/Browser/BrowserProcess.php:379, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232946 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] Call stack (most recent first):, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232982 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] * exception(object(RuntimeException)) at Unknown:0, referer: http://172.18.39.185/export/index.php [Tue Jul 14 06:57:29.232999 2020] [php7:notice] [pid 109769] [client 172.18.40.239:60056] , referer: http://172.18.39.185/export/index.php In my Ubuntu Server 20.04, I installed chromium-browser, It was installed as a "snap" package, How to config it fot Mahara system? This could be related to the new structure where snap wants to save files. First try: install with the '--classic' flag, but that's not a long-term solution. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1906123/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1955080] Re: Deleted collection breaks Submissions within a group table
This bug will be solved with https://reviews.mahara.org/#/c/12280/ -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1955080 Title: Deleted collection breaks Submissions within a group table Status in Mahara: New Bug description: Mahara 21.04.2 MySQL 8.0.27-0 Pre-requsite Submissions module plugin enabled Group set up with submissions allowed Steps to reproduce 1) Learner A submits collection to group 2) Learner B submits collection to group 3) Learner C submits collection to group 4) Teacher or admin releases B [optionally A and C also] 5) Learner B deletes the submitted collection 6) Teacher or admin visits group submissions page ../module/submissions/index.php?group=1 Actual Javascript alert "DataTables warning: table id=submissions - true" Notification Collection with id xx not found Table only shows submissions before the deleted submission - Learner A Expected Table shows all submissions Initial investigation htdocs/module/submissions/src/Controller.php createDataTableRowFromSubmissionAndEvaluationRecord() This function which creates the table calls new \Collection (and also other functions which also call new \Collection) Collection class (htdocs/lib.collection.php) constructor throws an exception if it can't find the record in the database - throw new CollectionNotFoundException("Collection with id $id not found"); This exception is what causes the JS alert and the data to not show. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1955080/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1686866] Re: Mark plan tasks as completed directly on portfolio page
Functionality is provided in the newer Mahara versions. ** Changed in: mahara Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1686866 Title: Mark plan tasks as completed directly on portfolio page Status in Mahara: Fix Released Bug description: When you want to mark a plan's task as complete, you need to go to Content -> Plans -> Select the plan -> Select the task -> Flip the switch. It would be better if you could mark a task as completed directly from your portfolio page by clicking the icon and receiving a confirmation. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1686866/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1280065] Re: wishlist: complete tasks from the plan - task list
Functionality is provided in the newer Mahara versions. ** Changed in: mahara Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1280065 Title: wishlist: complete tasks from the plan - task list Status in Mahara: Fix Released Bug description: Mahara 1.8 A user asked if they can mark a planning task completed from the page that lists the tasks (rather than having to edit the task and check complete and click save). They wanted to click on the red icon to mark it completed. By extension they could click the tick to turn it back to un-completed. This would be a usability enhancement wish. Thanks. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1280065/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1952771] [NEW] PHP warnings on menu->share->submissions and related issues
Public bug reported: Listing all submissions a user is involved via menu->share->submissions causes PHP-warnings and several content issues referring to the assessor column resp. missing entries. In combination to that issue there are massive DB accesses which can result in large time delays displaying the table especially if the user is assessor in multiple groups. ** Affects: mahara Importance: Undecided Status: New -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1952771 Title: PHP warnings on menu->share->submissions and related issues Status in Mahara: New Bug description: Listing all submissions a user is involved via menu->share->submissions causes PHP-warnings and several content issues referring to the assessor column resp. missing entries. In combination to that issue there are massive DB accesses which can result in large time delays displaying the table especially if the user is assessor in multiple groups. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1952771/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1902974] Re: Prevent the clicking of 'Assignment tasks' when group settings don't allow it
We already have implemented a solution for this, which we will present with the next Plans update, maybe first in a web meeting with Kristina? In this new scenario the option will always be switchable to yes when creating a new plan and if the group settings don't match, a modal confirmation window with infos to the settings which have to be changed for this functionality appears. If the user confirms, the group settings will automatically be adapted when saving the plan, if not, the switch goes back to "no". -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1902974 Title: Prevent the clicking of 'Assignment tasks' when group settings don't allow it Status in Mahara: Confirmed Bug description: When you create a plan in a group where everybody can create and edit content, you cannot set up assignment tasks in a plan. However, right now, you can select that option without receiving a warning that it won't be actioned. Only when you save the plan is the button disabled. It would be better if the option is not available from the start either by being disabled (greyed out button) or not shown at all. To replicate: 1. Create a group where everyone can create and edit content. 2. Create a plan and enable the option 'Assignment tasks'. Save the plan. 3. Open the plan again. Now the option is greyed out and tasks can't be allocated to portfolios. Better: 1. Create a group where everyone can create and edit content. 2. Create a plan. 3. You see the option 'Assignment tasks' disabled. Alternatively, the option is not displayed at all. To test as well: Need to test that when only people who are not ordinary group members can create a proper assignment plan to ensure that this is still working. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1902974/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1607131] Re: Bring SQL transaction support back to MySQL
In some cases it also can lead to DB inconsistencies and in every of those cases additional code and computing ressources for a special handling are neccessary to prevent problems. Currently I will have to circumvent this issue while preparing the core integration of the new Submissions plugin by doing exactly the mentioned hopefully temporarily solutions. Cheers Alex -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1607131 Title: Bring SQL transaction support back to MySQL Status in Mahara: Triaged Bug description: To resolve Bug 1514608 (Mahara locking when multiple simultaneous users are active), we disabled SQL transaction support in MySQL. Specifically, the "db_begin()", "db_rollback()", and "db_commit()" methods all check "is_myslq()" and return without doing anything if MySQL is in use. As might be expected this has resulted in a few other MySQL-specific bugs popping up, due to race conditions. So, it would be good to add transaction support back to our MySQL driver. However, I think to do so in a way that won't again cause concurrency issues, we need to be much more disciplined in how we use transactions. The MySQL problems were caused because we had very long- lived transactions. For instance, when copying a collection, we would open a transaction at the start of the process, and commit it at the end. Depending on the size of the collection and the pages in it, this could leave that transaction open for up to several minutes. From what I can tell, the MySQL InnoDB storage engine doesn't handle long- running transactions very well, so this causes a problem. Ideally, then, we should use db_begin and db_commit close together only, like in the same function, enclosing some related SQL statements but *not* any calls to other functions that might balloon out in execution time (such as triggering an event). Yet more ideally, we'd have some way of detecting and/or enforcing this automatically in Mahara's code. But I can't see any good way to do that in PHP. At most, we could track the amount of time that passes between class to db_begin() and db_commit(), and issue a warning message when a transaction has a long lifetime. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1607131/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1862370] [NEW] New submissions plugin
Public bug reported: This plugin adds a comfortable management of current and already released group submissions by providing a sort and filterable table in an own group tab including direct access to the portfolios resp. their archived version. Additional metadata is also provided together with the possibility to release the portfolio or to assign an evaluator and an evaluation result. ** Affects: mahara Importance: Undecided Assignee: Alexander Del Ponte (delponte) Status: New -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1862370 Title: New submissions plugin Status in Mahara: New Bug description: This plugin adds a comfortable management of current and already released group submissions by providing a sort and filterable table in an own group tab including direct access to the portfolios resp. their archived version. Additional metadata is also provided together with the possibility to release the portfolio or to assign an evaluator and an evaluation result. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1862370/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1837999] Re: Plans plugin extension and new submissions plugin
Hi Steven, we implemented the plugins in a mysql db scenario and unfortunately don't have any experience with postgres. However, I hope, that we were able to solve the problems with the newest patch even if they are theoretical - As mentioned before we don't use postgres. Best regards Alex -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1837999 Title: Plans plugin extension and new submissions plugin Status in Mahara: New Bug description: Extend Mahara with new Plans plugin features and a new plugin module called Submissions, which increases significantly the UX of the submission handling for group admins and tutors. The combination of both plugins provides new workflows regarding to assessment scenarios and plan management for all users. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1837999/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1837999] [NEW] Plans plugin extension and new submissions plugin
Public bug reported: Extend Mahara with new Plans plugin features and a new plugin module called Submissions, which increases significantly the UX of the submission handling for group admins and tutors. The combination of both plugins provides new workflows regarding to assessment scenarios and plan management for all users. ** Affects: mahara Importance: Undecided Assignee: Alexander Del Ponte (delponte) Status: New ** Changed in: mahara Assignee: (unassigned) => Alexander Del Ponte (delponte) -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1837999 Title: Plans plugin extension and new submissions plugin Status in Mahara: New Bug description: Extend Mahara with new Plans plugin features and a new plugin module called Submissions, which increases significantly the UX of the submission handling for group admins and tutors. The combination of both plugins provides new workflows regarding to assessment scenarios and plan management for all users. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1837999/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1749402] Re: Views and collection list (in group) throws MySQL error
Hi Kristina and Robert, I had a look at the code and the warning is caused by trying to access an object property on an array as the error message implies. For my issue everything is working fine when supressing the on screen display of warning messages, but I wonder, if the overall functionality of this code part will be given. When there is an 'id' field in the array, $v['id'] will have a value, but $v->id won't and the loop will just continue with the next item. However, thank you very much for your fast response and solution - Many greetings Alex -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1749402 Title: Views and collection list (in group) throws MySQL error Status in Mahara: Fix Committed Status in Mahara 17.10 series: Fix Committed Status in Mahara 18.04 series: Fix Committed Status in Mahara 18.10 series: Fix Committed Bug description: If a normal group member tries to visit views and collections of the group, following warning/error is thrown under some conditions which are mentioned below: SQL: [WAR] 93 (lib/errors.php:859) Failed to get a recordset: mysqli error: [1452: Cannot add or update a child row: a foreign key constraint fails ("dp-dev-master-ep"."view_rows_columns", CONSTRAINT "viewrowscolu_vie_fk" FOREIGN KEY ("view") REFERENCES "view" ("id"))] in EXECUTE("INSERT INTO "view_rows_columns" ("view", "row", "columns") VALUES ('46', '1', '3')")Command was: INSERT INTO "view_rows_columns" ("view", "row", "columns") VALUES (?, ?, ?) and values was (view:46,row:1,columns:3) PHP: Call stack (most recent first): log_message("Failed to get a recordset: mysqli error: [1452: Ca...", 8, true, true) at /var/www/mahara/master/htdocs/lib/errors.php:95 log_warn("Failed to get a recordset: mysqli error: [1452: Ca...") at /var/www/mahara/master/htdocs/lib/errors.php:859 SQLException->__construct("Failed to get a recordset: mysqli error: [1452: Ca...") at /var/www/mahara/master/htdocs/lib/dml.php:1105 insert_record("view_rows_columns", object(stdClass), false, false) at /var/www/mahara/master/htdocs/lib/dml.php:1192 ensure_record_exists("view_rows_columns", object(stdClass), object(stdClass)) at /var/www/mahara/master/htdocs/lib/view.php:356 View->__construct(0array(size 25)) at /var/www/mahara/master/htdocs/lib/view.php:5581 View::get_extra_view_info(array(size 2), false) at /var/www/mahara/master/htdocs/view/groupviews.php:52 This happens if the group views and collections are readonly to members, a group collection exisits with at least one view inside and in the DB there is no view which has the same id as this collection. I didn't went too deep inside the code, but it seems that this issue is somehow connected to the bug #1514608. It further seems that Mahara interprets a collection as a view trying to get/set view related data using a collection id to avoid having no DB entry in table view_rows_columns for this erroneously supposed view so the actually error should be found in functions calling this code areas (get_extra_view_info). Reproduce error: Create a group in which views and collections are only editable by others that normal group members. Create a view and a collection inside this group and assign the view to the collection. Make sure, that in the DB there are no entries referring to a view which has the same id as the above created collection (e. g. by deleting a possibly existing view with this id inside Mahara). As a normal group member call the tab views and collection of the group. Greetings Alex To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1749402/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1749403] Re: Code correction in function find_key_name of lib/ddl.php
This bug also affects 17.10 and earlier. -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1749403 Title: Code correction in function find_key_name of lib/ddl.php Status in Mahara: Fix Committed Status in Mahara 18.04 series: Fix Committed Status in Mahara 18.10 series: Fix Committed Bug description: In line 523 the existing code if (!$field == $col->column_name) { should be replaced with if ($field !== $col->column_name) { Greetings Alex To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1749403/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1749408] Re: Make it possible for PlugIns defining a grouptab
The code I posted was only though as a basis for a developer for implementation. It is not really functional. :-) -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1749408 Title: Make it possible for PlugIns defining a grouptab Status in Mahara: In Progress Bug description: Currently we are developing an artefact plugin and a module plugin and therefore we need to have related grouptabs for users to use the new functionalities of these plugins. Unfortunately such additional tabs are only considered for interaction plugins. For our purposes we use a workaround by adding some code to the lib/group.php file at line 2046 to get this handled for our plugins like it is implemented as core code at line 2022 and following. It would be nice if group menu items of other plugin types than interaction could be defined if necessary by default without modifying the mahara core. Thank you Alex To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1749408/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1749402] Re: Views and collection list (in group) throws MySQL error
Hi Kristina and Robert, functionally the problem is resolved, the portfolios now are displayed. So the error is gone but is replaced with a warning now which is no problem, cause in our prod environment warning are supressed. [WAR] d5 (lib/view.php:5466) Trying to get property of non-object Call stack (most recent first): log_message("Trying to get property of non-object", 8, true, true, "/var/www/mahara/master/htdocs/lib/view.php", 5466) at /var/www/mahara/master/htdocs/lib/errors.php:521 error(8, "Trying to get property of non-object", "/var/www/mahara/master/htdocs/lib/view.php", 5466, array(size 13)) at /var/www/mahara/master/htdocs/lib/view.php:5466 View::get_extra_view_info(array(size 4), false) at /var/www/mahara/master/htdocs/view/groupviews.php:52 Thanks and greetings Alex -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1749402 Title: Views and collection list (in group) throws MySQL error Status in Mahara: Confirmed Status in Mahara 18.04 series: Confirmed Status in Mahara 18.10 series: In Progress Bug description: If a normal group member tries to visit views and collections of the group, following warning/error is thrown under some conditions which are mentioned below: SQL: [WAR] 93 (lib/errors.php:859) Failed to get a recordset: mysqli error: [1452: Cannot add or update a child row: a foreign key constraint fails ("dp-dev-master-ep"."view_rows_columns", CONSTRAINT "viewrowscolu_vie_fk" FOREIGN KEY ("view") REFERENCES "view" ("id"))] in EXECUTE("INSERT INTO "view_rows_columns" ("view", "row", "columns") VALUES ('46', '1', '3')")Command was: INSERT INTO "view_rows_columns" ("view", "row", "columns") VALUES (?, ?, ?) and values was (view:46,row:1,columns:3) PHP: Call stack (most recent first): log_message("Failed to get a recordset: mysqli error: [1452: Ca...", 8, true, true) at /var/www/mahara/master/htdocs/lib/errors.php:95 log_warn("Failed to get a recordset: mysqli error: [1452: Ca...") at /var/www/mahara/master/htdocs/lib/errors.php:859 SQLException->__construct("Failed to get a recordset: mysqli error: [1452: Ca...") at /var/www/mahara/master/htdocs/lib/dml.php:1105 insert_record("view_rows_columns", object(stdClass), false, false) at /var/www/mahara/master/htdocs/lib/dml.php:1192 ensure_record_exists("view_rows_columns", object(stdClass), object(stdClass)) at /var/www/mahara/master/htdocs/lib/view.php:356 View->__construct(0array(size 25)) at /var/www/mahara/master/htdocs/lib/view.php:5581 View::get_extra_view_info(array(size 2), false) at /var/www/mahara/master/htdocs/view/groupviews.php:52 This happens if the group views and collections are readonly to members, a group collection exisits with at least one view inside and in the DB there is no view which has the same id as this collection. I didn't went too deep inside the code, but it seems that this issue is somehow connected to the bug #1514608. It further seems that Mahara interprets a collection as a view trying to get/set view related data using a collection id to avoid having no DB entry in table view_rows_columns for this erroneously supposed view so the actually error should be found in functions calling this code areas (get_extra_view_info). Reproduce error: Create a group in which views and collections are only editable by others that normal group members. Create a view and a collection inside this group and assign the view to the collection. Make sure, that in the DB there are no entries referring to a view which has the same id as the above created collection (e. g. by deleting a possibly existing view with this id inside Mahara). As a normal group member call the tab views and collection of the group. Greetings Alex To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1749402/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1749408] [NEW] Make it possible for PlugIns defining a grouptab
Public bug reported: Currently we are developing an artefact plugin and a module plugin and therefore we need to have related grouptabs for users to use the new functionalities of these plugins. Unfortunately such additional tabs are only considered for interaction plugins. For our purposes we use a workaround by adding some code to the lib/group.php file at line 2046 to get this handled for our plugins like it is implemented as core code at line 2022 and following. It would be nice if group menu items of other plugin types than interaction could be defined if necessary by default without modifying the mahara core. Thank you Alex ** Affects: mahara Importance: Undecided Status: New -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1749408 Title: Make it possible for PlugIns defining a grouptab Status in Mahara: New Bug description: Currently we are developing an artefact plugin and a module plugin and therefore we need to have related grouptabs for users to use the new functionalities of these plugins. Unfortunately such additional tabs are only considered for interaction plugins. For our purposes we use a workaround by adding some code to the lib/group.php file at line 2046 to get this handled for our plugins like it is implemented as core code at line 2022 and following. It would be nice if group menu items of other plugin types than interaction could be defined if necessary by default without modifying the mahara core. Thank you Alex To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1749408/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1749408] Re: Make it possible for PlugIns defining a grouptab
For this perhaps following idea could be a kind of code basis: // ToDo: Make it possible to insert group_tabs by PlugIn conventions based on following code foreach (plugin_types_installed() as $plugin_type_installed) { foreach (plugins_installed($plugin_type_installed) as $plugin) { // ToDo: Call PlugIn Method display_group_tab_allowed which provides the code which does all the checks here if (method_exists(generate_class_name($plugin_type_installed, $plugin->name),'group_tabs')) { $plugin_menu = call_static_method(generate_class_name($plugin_type_installed, $plugin->name), 'group_tabs', $group->id); $menu = array_merge($menu, $plugin_menu); } } } -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1749408 Title: Make it possible for PlugIns defining a grouptab Status in Mahara: New Bug description: Currently we are developing an artefact plugin and a module plugin and therefore we need to have related grouptabs for users to use the new functionalities of these plugins. Unfortunately such additional tabs are only considered for interaction plugins. For our purposes we use a workaround by adding some code to the lib/group.php file at line 2046 to get this handled for our plugins like it is implemented as core code at line 2022 and following. It would be nice if group menu items of other plugin types than interaction could be defined if necessary by default without modifying the mahara core. Thank you Alex To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1749408/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1749402] [NEW] Views and collection list (in group) throws MySQL error
Public bug reported: If a normal group member tries to visit views and collections of the group, following warning/error is thrown under some conditions which are mentioned below: SQL: [WAR] 93 (lib/errors.php:859) Failed to get a recordset: mysqli error: [1452: Cannot add or update a child row: a foreign key constraint fails ("dp-dev-master-ep"."view_rows_columns", CONSTRAINT "viewrowscolu_vie_fk" FOREIGN KEY ("view") REFERENCES "view" ("id"))] in EXECUTE("INSERT INTO "view_rows_columns" ("view", "row", "columns") VALUES ('46', '1', '3')")Command was: INSERT INTO "view_rows_columns" ("view", "row", "columns") VALUES (?, ?, ?) and values was (view:46,row:1,columns:3) PHP: Call stack (most recent first): log_message("Failed to get a recordset: mysqli error: [1452: Ca...", 8, true, true) at /var/www/mahara/master/htdocs/lib/errors.php:95 log_warn("Failed to get a recordset: mysqli error: [1452: Ca...") at /var/www/mahara/master/htdocs/lib/errors.php:859 SQLException->__construct("Failed to get a recordset: mysqli error: [1452: Ca...") at /var/www/mahara/master/htdocs/lib/dml.php:1105 insert_record("view_rows_columns", object(stdClass), false, false) at /var/www/mahara/master/htdocs/lib/dml.php:1192 ensure_record_exists("view_rows_columns", object(stdClass), object(stdClass)) at /var/www/mahara/master/htdocs/lib/view.php:356 View->__construct(0array(size 25)) at /var/www/mahara/master/htdocs/lib/view.php:5581 View::get_extra_view_info(array(size 2), false) at /var/www/mahara/master/htdocs/view/groupviews.php:52 This happens if the group views and collections are readonly to members, a group collection exisits with at least one view inside and in the DB there is no view which has the same id as this collection. I didn't went too deep inside the code, but it seems that this issue is somehow connected to the bug #1514608. It further seems that Mahara interprets a collection as a view trying to get/set view related data using a collection id to avoid having no DB entry in table view_rows_columns for this erroneously supposed view so the actually error should be found in functions calling this code areas (get_extra_view_info). Reproduce error: Create a group in which views and collections are only editable by others that normal group members. Create a view and a collection inside this group and assign the view to the collection. Make sure, that in the DB there are no entries referring to a view which has the same id as the above created collection (e. g. by deleting a possibly existing view with this id inside Mahara). As a normal group member call the tab views and collection of the group. Greetings Alex ** Affects: mahara Importance: Undecided Status: New -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1749402 Title: Views and collection list (in group) throws MySQL error Status in Mahara: New Bug description: If a normal group member tries to visit views and collections of the group, following warning/error is thrown under some conditions which are mentioned below: SQL: [WAR] 93 (lib/errors.php:859) Failed to get a recordset: mysqli error: [1452: Cannot add or update a child row: a foreign key constraint fails ("dp-dev-master-ep"."view_rows_columns", CONSTRAINT "viewrowscolu_vie_fk" FOREIGN KEY ("view") REFERENCES "view" ("id"))] in EXECUTE("INSERT INTO "view_rows_columns" ("view", "row", "columns") VALUES ('46', '1', '3')")Command was: INSERT INTO "view_rows_columns" ("view", "row", "columns") VALUES (?, ?, ?) and values was (view:46,row:1,columns:3) PHP: Call stack (most recent first): log_message("Failed to get a recordset: mysqli error: [1452: Ca...", 8, true, true) at /var/www/mahara/master/htdocs/lib/errors.php:95 log_warn("Failed to get a recordset: mysqli error: [1452: Ca...") at /var/www/mahara/master/htdocs/lib/errors.php:859 SQLException->__construct("Failed to get a recordset: mysqli error: [1452: Ca...") at /var/www/mahara/master/htdocs/lib/dml.php:1105 insert_record("view_rows_columns", object(stdClass), false, false) at /var/www/mahara/master/htdocs/lib/dml.php:1192 ensure_record_exists("view_rows_columns", object(stdClass), object(stdClass)) at /var/www/mahara/master/htdocs/lib/view.php:356 View->__construct(0array(size 25)) at /var/www/mahara/master/htdocs/lib/view.php:5581 View::get_extra_view_info(array(size 2), false) at /var/www/mahara/master/htdocs/view/groupviews.php:52 This happens if the group views and collections are readonly to members, a group collection exisits with at least one view inside and in the DB there is no view which has the same id as this collection. I didn't went too deep inside the code, but it seems that this issue
[Mahara-contributors] [Bug 1749403] [NEW] Code correction in function find_key_name of lib/ddl.php
Public bug reported: In line 523 the existing code if (!$field == $col->column_name) { should be replaced with if ($field !== $col->column_name) { Greetings Alex ** Affects: mahara Importance: Undecided Status: New -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1749403 Title: Code correction in function find_key_name of lib/ddl.php Status in Mahara: New Bug description: In line 523 the existing code if (!$field == $col->column_name) { should be replaced with if ($field !== $col->column_name) { Greetings Alex To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1749403/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp