Comments (9)
Hi,
Thank you for reporting this. Yes, it does seem to be a coding error
issue. I'll look into getting this resolved for you ASAP and pushing a
patch!
Stacey
On 19/02/15 15:18, Oliver Kuka wrote:
Hi!
We're trying to use Face-to-Face to allow teachers to book courses for
their classes at an open event of our university (which happens every
two years). We used the plugin the last few times and were quite happy
with it. So were quite thrilled to see an update coming around the
corner just in time. But unfortunately we can't get it to work and
hope you can help us.Every time we add the activity, the form shows up, we can fill it, but
after we hit submit, we only get a blank page. Upon returning, no new
activity has been added.Digging a bit in, all facetoface tables remain completely empty and
the error log says:Potential coding error - active database transaction detected during
request shutdown:\n* line 105 of /course/modlib.php: call to
moodle_database->start_delegated_transaction()\n* line 266 of
/course/modedit.php: call to add_moduleinfo()\n,
referer:http://moodle.my/course/modedit.php?add=facetoface&type=&course=3§ion=2&return=0&sr=0Our system is:
- mod_facetoface 2.8.0 (Build: 2015021300)
- Moodle 2.8.3+ (Build: 20150205)
- MySQL 5.5.41
- PHP 5.4.36-0+deb7u3
- Apache 2.2.22 (Debian)
We'd appreciate any hints on what we might have to change (or of
course a patch).Thanks in advance.
Oliver
—
Reply to this email directly or view it on GitHub
#5.
from moodle-mod_facetoface.
Hi Oliver,
I've pushed a patch which hopefully amends this. Let me know if there are still issues related to it.
Thanks,
Stacey
from moodle-mod_facetoface.
Hi Stacy,
thanks for the patch, that enabled the install :-) .
It is working now for the most part, but produces two minor errors.
When signing up to a session, it displays the error:
Invalid event class name 'mod_facetoface\event\signup', there must be at least one underscore separating object and action words.
I've hunted it down to the signup.php
, line 139:
$event = \mod_facetoface\event\signup::create($params);
But since I am aware, that the event will be used at other places, I didn't try much to change it.
And the other small error is, when canceling a booking, it shows the error:
context (or contextid) is a required event property, system context may be hardcoded in init() method.
But that is about the end of my skills. I can code, but I never did for moodle, so I would need to learn how to write plugins for it.
Those two errors don't seem to interfere with the booking itself, since people can book, cancel, get mails and it appears to work fine so far, except for those errors.
Would be really nice if you could help us out there.
To make up for the hassle we create, I will provide you with a German translation next week.
Thanks in advance and wishing you a nice weekend!
Oliver
PS: For some reason my foot hurts just looking at your profile picture. Must've been a scary halloween costume ;) .
from moodle-mod_facetoface.
I'm running into the same issue: "Invalid event class name 'mod_facetoface\event\signup'", but in the 2.7 version. Also have an error on line 80 of classes/observer.php saying unknown function to
facetoface_instance_created($event->get_context(), $forum);
Commenting this out solves the problem, but not sure why - or what impact it has.
Even with the event/signup error, the record is created and the student is able to register.
Hope that helps,
Doug
from moodle-mod_facetoface.
Same here. I tried to add the Face to Face activity to one of my courses and I got this error, "Call to undefined function facetoface_instance_created()", while executing the facetoface_instance_created() function in observer.php. Would appreciate if this get fixed soon.
from moodle-mod_facetoface.
Hi all,
Thanks for reporting these and apologies for the errors! I will try and have these resolved as soon as possible and hopefully by the end of the week.
Thanks for your patience! Just juggling a few things at the moment :)
from moodle-mod_facetoface.
We're getting the same error as mention by Oliver above when students try to signup to a session:
Invalid event class name 'mod_facetoface\event\signup', there must be at least one underscore separating object and action words.
Hopefully this gets fixed soon.
Thanks,
Aylwin
from moodle-mod_facetoface.
Found the issue, well, 2 issues actually.
The first - an event cannot be just a word - it needs an underscore in it - so the event 'signup' is invalid. I changed the filename in the event folder to signup_success.php, as well as the event name, and finally the line in signup.php around 140 -
$event = \mod_facetoface\event\signup_success::create($params);
The second - I don't think $contextmodule is defined (although I could be wrong, since this was my first thing I fixed)
So in both signup.php and cancelsignup.php I added
$contextmodule = context_module::instance($cm->id);
to just below
$context = context_course::instance($course->id);
I hope this helps.
Cheers
Peter
from moodle-mod_facetoface.
these issues should be resolved in the latest code here in github. If you are still having issues please let us know by creating a new issue here. Thanks.
from moodle-mod_facetoface.
Related Issues (20)
- Supported versions in README.md HOT 1
- MIssing Item id when you make changes HOT 1
- substr()-fuction not utf-8 compatible HOT 1
- Strings missing from lang.moodle.org HOT 1
- Add option to select which messages are sent when you add participant to event HOT 1
- Excel report does not show custom fields content
- Search function doesn't work.
- Capability for creating a site event HOT 1
- Moodle 4.3 compatible version HOT 1
- Plugin setting session_roles in plugin namespace are not being used in lib.php
- Cancellation emails incorrectly send plaintext as html, leading to email clients incorrectly formatting them HOT 2
- 4.3 suffix HOT 1
- 4.3 behat errors
- New availability plugin to support Face-to-face use cases HOT 1
- Undefined property warnings when editing capacity on session HOT 2
- Embedded images in session 'Details' not shown HOT 1
- Context not passed to user selectors
- Be able to upload bookings (link users to a session in bulk) via csv upload
- CSV uploads - support more/all attendance types
- CSV Upload processing should only apply for sessions under the same activity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-mod_facetoface.