[Mahara-contributors] [Bug 1489284] Re: Warning message when deleting a blog

2016-11-06 Thread Robert Lyon
** Changed in: mahara
   Status: Fix Committed => Fix Released

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

Title:
  Warning message when deleting a blog

Status in Mahara:
  Fix Released
Status in Mahara 15.04 series:
  Fix Released
Status in Mahara 15.10 series:
  Fix Released

Bug description:
  I noticed this warning message when deleting a journal. I'm not sure
  whether the journal has to have embedded images in an entry or not,
  but here's what I did.

  1. Create a journal
  2. Create a journal entry
  3. Use the TinyMCE image button to embed an image in the journal entry
  4. Select the journal entry in a journal entry block on a page
  5. Delete the page
  6. Delete the journal

  Result:

  [WAR] 75 (lib/embeddedimage.php:176) Invalid argument supplied for foreach()
  Call stack (most recent first):

  log_message("Invalid argument supplied for foreach()", 8, true, true, 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176) at 
/home/aaronw/www/mahara/htdocs/lib/errors.php:441
  error(2, "Invalid argument supplied for foreach()", 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176, array(size 3)) at 
/home/aaronw/www/mahara/htdocs/lib/embeddedimage.php:176
  EmbeddedImage::delete_embedded_images("blog", "58") at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:56
  delete_blog_submit(object(Pieform), array(size 3)) at Unknown:0
  call_user_func_array("delete_blog_submit", array(size 2)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:532
  Pieform->__construct(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
  Pieform::process(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
  pieform(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/lib.php:461
  ArtefactTypeBlog::delete_form(58) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:28

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1489284/+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 1489284] Re: Warning message when deleting a blog

2015-10-27 Thread Robert Lyon
** Changed in: mahara/15.04
   Status: Fix Committed => Fix Released

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

Title:
  Warning message when deleting a blog

Status in Mahara:
  Fix Committed
Status in Mahara 15.04 series:
  Fix Released
Status in Mahara 15.10 series:
  Fix Released

Bug description:
  I noticed this warning message when deleting a journal. I'm not sure
  whether the journal has to have embedded images in an entry or not,
  but here's what I did.

  1. Create a journal
  2. Create a journal entry
  3. Use the TinyMCE image button to embed an image in the journal entry
  4. Select the journal entry in a journal entry block on a page
  5. Delete the page
  6. Delete the journal

  Result:

  [WAR] 75 (lib/embeddedimage.php:176) Invalid argument supplied for foreach()
  Call stack (most recent first):

  log_message("Invalid argument supplied for foreach()", 8, true, true, 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176) at 
/home/aaronw/www/mahara/htdocs/lib/errors.php:441
  error(2, "Invalid argument supplied for foreach()", 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176, array(size 3)) at 
/home/aaronw/www/mahara/htdocs/lib/embeddedimage.php:176
  EmbeddedImage::delete_embedded_images("blog", "58") at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:56
  delete_blog_submit(object(Pieform), array(size 3)) at Unknown:0
  call_user_func_array("delete_blog_submit", array(size 2)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:532
  Pieform->__construct(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
  Pieform::process(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
  pieform(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/lib.php:461
  ArtefactTypeBlog::delete_form(58) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:28

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1489284/+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 1489284] Re: Warning message when deleting a blog

2015-10-26 Thread Robert Lyon
** Changed in: mahara/15.04
   Status: In Progress => Fix Committed

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

Title:
  Warning message when deleting a blog

Status in Mahara:
  Fix Committed
Status in Mahara 15.04 series:
  Fix Committed
Status in Mahara 15.10 series:
  Fix Released

Bug description:
  I noticed this warning message when deleting a journal. I'm not sure
  whether the journal has to have embedded images in an entry or not,
  but here's what I did.

  1. Create a journal
  2. Create a journal entry
  3. Use the TinyMCE image button to embed an image in the journal entry
  4. Select the journal entry in a journal entry block on a page
  5. Delete the page
  6. Delete the journal

  Result:

  [WAR] 75 (lib/embeddedimage.php:176) Invalid argument supplied for foreach()
  Call stack (most recent first):

  log_message("Invalid argument supplied for foreach()", 8, true, true, 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176) at 
/home/aaronw/www/mahara/htdocs/lib/errors.php:441
  error(2, "Invalid argument supplied for foreach()", 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176, array(size 3)) at 
/home/aaronw/www/mahara/htdocs/lib/embeddedimage.php:176
  EmbeddedImage::delete_embedded_images("blog", "58") at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:56
  delete_blog_submit(object(Pieform), array(size 3)) at Unknown:0
  call_user_func_array("delete_blog_submit", array(size 2)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:532
  Pieform->__construct(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
  Pieform::process(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
  pieform(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/lib.php:461
  ArtefactTypeBlog::delete_form(58) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:28

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1489284/+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 1489284] Re: Warning message when deleting a blog

2015-10-23 Thread Aaron Wells
** Changed in: mahara/15.10
   Status: Fix Committed => Fix Released

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

Title:
  Warning message when deleting a blog

Status in Mahara:
  Fix Committed
Status in Mahara 15.04 series:
  In Progress
Status in Mahara 15.10 series:
  Fix Released

Bug description:
  I noticed this warning message when deleting a journal. I'm not sure
  whether the journal has to have embedded images in an entry or not,
  but here's what I did.

  1. Create a journal
  2. Create a journal entry
  3. Use the TinyMCE image button to embed an image in the journal entry
  4. Select the journal entry in a journal entry block on a page
  5. Delete the page
  6. Delete the journal

  Result:

  [WAR] 75 (lib/embeddedimage.php:176) Invalid argument supplied for foreach()
  Call stack (most recent first):

  log_message("Invalid argument supplied for foreach()", 8, true, true, 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176) at 
/home/aaronw/www/mahara/htdocs/lib/errors.php:441
  error(2, "Invalid argument supplied for foreach()", 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176, array(size 3)) at 
/home/aaronw/www/mahara/htdocs/lib/embeddedimage.php:176
  EmbeddedImage::delete_embedded_images("blog", "58") at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:56
  delete_blog_submit(object(Pieform), array(size 3)) at Unknown:0
  call_user_func_array("delete_blog_submit", array(size 2)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:532
  Pieform->__construct(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
  Pieform::process(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
  pieform(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/lib.php:461
  ArtefactTypeBlog::delete_form(58) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:28

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1489284/+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 1489284] Re: Warning message when deleting a blog

2015-10-22 Thread Aaron Wells
** Changed in: mahara/15.10
   Status: In Progress => Fix Committed

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

Title:
  Warning message when deleting a blog

Status in Mahara:
  Fix Committed
Status in Mahara 15.04 series:
  In Progress
Status in Mahara 15.10 series:
  Fix Committed

Bug description:
  I noticed this warning message when deleting a journal. I'm not sure
  whether the journal has to have embedded images in an entry or not,
  but here's what I did.

  1. Create a journal
  2. Create a journal entry
  3. Use the TinyMCE image button to embed an image in the journal entry
  4. Select the journal entry in a journal entry block on a page
  5. Delete the page
  6. Delete the journal

  Result:

  [WAR] 75 (lib/embeddedimage.php:176) Invalid argument supplied for foreach()
  Call stack (most recent first):

  log_message("Invalid argument supplied for foreach()", 8, true, true, 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176) at 
/home/aaronw/www/mahara/htdocs/lib/errors.php:441
  error(2, "Invalid argument supplied for foreach()", 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176, array(size 3)) at 
/home/aaronw/www/mahara/htdocs/lib/embeddedimage.php:176
  EmbeddedImage::delete_embedded_images("blog", "58") at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:56
  delete_blog_submit(object(Pieform), array(size 3)) at Unknown:0
  call_user_func_array("delete_blog_submit", array(size 2)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:532
  Pieform->__construct(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
  Pieform::process(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
  pieform(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/lib.php:461
  ArtefactTypeBlog::delete_form(58) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:28

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1489284/+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 1489284] Re: Warning message when deleting a blog

2015-09-07 Thread Robert Lyon
Have changed the status of this as Son has added a patch that deals with
more of the different places that embedded images exist

** Changed in: mahara/15.10
   Status: Invalid => In Progress

** Changed in: mahara/15.10
 Assignee: (unassigned) => Son Nguyen (ngson2000)

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

Title:
  Warning message when deleting a blog

Status in Mahara:
  In Progress
Status in Mahara 15.04 series:
  In Progress
Status in Mahara 15.10 series:
  In Progress

Bug description:
  I noticed this warning message when deleting a journal. I'm not sure
  whether the journal has to have embedded images in an entry or not,
  but here's what I did.

  1. Create a journal
  2. Create a journal entry
  3. Use the TinyMCE image button to embed an image in the journal entry
  4. Select the journal entry in a journal entry block on a page
  5. Delete the page
  6. Delete the journal

  Result:

  [WAR] 75 (lib/embeddedimage.php:176) Invalid argument supplied for foreach()
  Call stack (most recent first):

  log_message("Invalid argument supplied for foreach()", 8, true, true, 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176) at 
/home/aaronw/www/mahara/htdocs/lib/errors.php:441
  error(2, "Invalid argument supplied for foreach()", 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176, array(size 3)) at 
/home/aaronw/www/mahara/htdocs/lib/embeddedimage.php:176
  EmbeddedImage::delete_embedded_images("blog", "58") at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:56
  delete_blog_submit(object(Pieform), array(size 3)) at Unknown:0
  call_user_func_array("delete_blog_submit", array(size 2)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:532
  Pieform->__construct(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
  Pieform::process(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
  pieform(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/lib.php:461
  ArtefactTypeBlog::delete_form(58) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:28

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1489284/+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 1489284] Re: Warning message when deleting a blog

2015-09-03 Thread Robert Lyon
This problem is due to the a blogpost embedded image being embedded
correctly now and so isn't an attached child, but there is a bit of code
to remove the attached images that fails.

We need to keep this code but check if there is any results returned.

The problem is fixed in 15.10 already - so I'll make a fix for 15.04

** Changed in: mahara/15.10
   Status: Confirmed => Invalid

** Changed in: mahara/15.04
   Status: New => In Progress

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

** Changed in: mahara/15.04
 Assignee: (unassigned) => Robert Lyon (robertl-9)

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

Title:
  Warning message when deleting a blog

Status in Mahara:
  Invalid
Status in Mahara 15.04 series:
  In Progress
Status in Mahara 15.10 series:
  Invalid

Bug description:
  I noticed this warning message when deleting a journal. I'm not sure
  whether the journal has to have embedded images in an entry or not,
  but here's what I did.

  1. Create a journal
  2. Create a journal entry
  3. Use the TinyMCE image button to embed an image in the journal entry
  4. Select the journal entry in a journal entry block on a page
  5. Delete the page
  6. Delete the journal

  Result:

  [WAR] 75 (lib/embeddedimage.php:176) Invalid argument supplied for foreach()
  Call stack (most recent first):

  log_message("Invalid argument supplied for foreach()", 8, true, true, 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176) at 
/home/aaronw/www/mahara/htdocs/lib/errors.php:441
  error(2, "Invalid argument supplied for foreach()", 
"/home/aaronw/www/mahara/htdocs/lib/embeddedimage.p...", 176, array(size 3)) at 
/home/aaronw/www/mahara/htdocs/lib/embeddedimage.php:176
  EmbeddedImage::delete_embedded_images("blog", "58") at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:56
  delete_blog_submit(object(Pieform), array(size 3)) at Unknown:0
  call_user_func_array("delete_blog_submit", array(size 2)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:532
  Pieform->__construct(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
  Pieform::process(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
  pieform(array(size 4)) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/lib.php:461
  ArtefactTypeBlog::delete_form(58) at 
/home/aaronw/www/mahara/htdocs/artefact/blog/index.php:28

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1489284/+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