← Back to team overview

mahara-contributors team mailing list archive

[Bug 1540667] [NEW] Fatal error trying to use an image in a forum topic

 

Public bug reported:

I noticed this one while using 16.04dev.

To replicate:

1. Create a group
2. In the group, navigate to the default forum and post a topic
3. In the TinyMCE editor for the topic, use the image button.
4. The image button will pop up the TinyMCE image utility, with the Mahara uploader/selector. Use this to upload an image into your file storage and put the image into the TinyMCE text area.
5. Save the topic.

Expected result: The topic is saved, and you can see it with the image in place.
Actual result: Mahara loads a fatal error page with this error:

( ! ) Fatal error: Call to undefined function artefact_instance_from_id() in /home/aaronw/www/mahara/htdocs/lib/embeddedimage.php on line 59
Call Stack
#	Time	Memory	Function	Location
1	0.0006	326080	{main}( )	../edittopic.php:0
2	0.0961	10553960	pieform( )	../edittopic.php:173
3	0.0984	10858176	Pieform::process( )	../mahara.php:4438
4	0.0984	10860696	Pieform->__construct( )	../pieform.php:161
5	0.6325	11054376	call_user_func_array ( )	../pieform.php:540
6	0.6325	11054720	addtopic_submit( )	../pieform.php:540
7	0.6997	11082160	EmbeddedImage::prepare_embedded_images( )	../edittopic.php:220

** Affects: mahara
     Importance: High
         Status: Confirmed

** Affects: mahara/16.04
     Importance: High
         Status: Confirmed


** Tags: embeddedimage forums regression

** Also affects: mahara/16.04
   Importance: Undecided
       Status: New

** Changed in: mahara/16.04
    Milestone: None => 16.04.0

** Changed in: mahara/16.04
   Importance: Undecided => High

** Changed in: mahara/16.04
       Status: New => Confirmed

-- 
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/1540667

Title:
  Fatal error trying to use an image in a forum topic

Status in Mahara:
  Confirmed
Status in Mahara 16.04 series:
  Confirmed

Bug description:
  I noticed this one while using 16.04dev.

  To replicate:

  1. Create a group
  2. In the group, navigate to the default forum and post a topic
  3. In the TinyMCE editor for the topic, use the image button.
  4. The image button will pop up the TinyMCE image utility, with the Mahara uploader/selector. Use this to upload an image into your file storage and put the image into the TinyMCE text area.
  5. Save the topic.

  Expected result: The topic is saved, and you can see it with the image in place.
  Actual result: Mahara loads a fatal error page with this error:

  ( ! ) Fatal error: Call to undefined function artefact_instance_from_id() in /home/aaronw/www/mahara/htdocs/lib/embeddedimage.php on line 59
  Call Stack
  #	Time	Memory	Function	Location
  1	0.0006	326080	{main}( )	../edittopic.php:0
  2	0.0961	10553960	pieform( )	../edittopic.php:173
  3	0.0984	10858176	Pieform::process( )	../mahara.php:4438
  4	0.0984	10860696	Pieform->__construct( )	../pieform.php:161
  5	0.6325	11054376	call_user_func_array ( )	../pieform.php:540
  6	0.6325	11054720	addtopic_submit( )	../pieform.php:540
  7	0.6997	11082160	EmbeddedImage::prepare_embedded_images( )	../edittopic.php:220

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1540667/+subscriptions


Follow ups