Intermittent error "Call to a member function StartTrans() on a non-object" when saving a blog post in 15.04
Bug #1513716 reported by
Aaron Wells
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Aaron Wells | ||
15.04 |
Fix Released
|
Medium
|
Aaron Wells | ||
15.10 |
Fix Released
|
Medium
|
Aaron Wells |
Bug Description
See https:/
Also https:/
The Embedded Image code ( https:/
Changed in mahara: | |
status: | New → In Progress |
no longer affects: | mahara/16.04 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This appears to be an intermittent or at least platform-specific problem. But if you were going to try to replicate it, these would be the steps:
1. Create a blog post.
2. Save the blog post.
3. Open the blog post back up for editing.
4. Make a change to the blog post.
5. Save the blog post again.
If you use xdebug or another debugging tool, you can see that on that second save attempt, at least one ArtefactTypeBlo gPost object will get its destructor called while $this->dirty is true, causing a database commit to happen during the destructor call.