← Back to team overview

mahara-contributors team mailing list archive

[Bug 1620202] [NEW] Negative block_instance sortorders

 

Public bug reported:

Mahara: 15.10.5
DB: MySql
OS: Linux
Browser: FF

The issue of negative sort order has reappeared again after the upgrade
went through the script for 'Sorting out block_instance sort order
drift'.

When trying to edit a page, it generates the following errors:

[WAR] a6 (lib/view.php:1946) Undefined offset: 2
Call stack (most recent first):

    log_message("Undefined offset: 2", 8, true, true, "/var/www/mahara/htdocs/lib/view.php", 1946) at /var/www/mahara/htdocs/lib/errors.php:515
    error(8, "Undefined offset: 2", "/var/www/mahara/htdocs/lib/view.php", 1946, array(size 6)) at /var/www/mahara/htdocs/lib/view.php:1946
    View->build_column_datastructure(2, false) at /var/www/mahara/htdocs/lib/view.php:1983
    View->get_row_datastructure() at /var/www/mahara/htdocs/lib/view.php:2367
    View->get_all_blocktype_css() at /var/www/mahara/htdocs/view/blocks.php:133

[WAR] a6 (lib/view.php:1946) 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/htdocs/lib/view.php", 1946) at /var/www/mahara/htdocs/lib/errors.php:515
    error(8, "Trying to get property of non-object", "/var/www/mahara/htdocs/lib/view.php", 1946, array(size 6)) at /var/www/mahara/htdocs/lib/view.php:1946
    View->build_column_datastructure(2, false) at /var/www/mahara/htdocs/lib/view.php:1983
    View->get_row_datastructure() at /var/www/mahara/htdocs/lib/view.php:2367
    View->get_all_blocktype_css() at /var/www/mahara/htdocs/view/blocks.php:133


And, users aren't able to edit the layout. They get the following warning:

Could not change the column layout. Someone else may have been editing
the layout at the same time. Please try again later.


I haven't been able to pinpoint the cause of the error.

Bug #1613135 tried to fix the existing data. Unfortunately, the
underlying issue still seems to exist.

** 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/1620202

Title:
  Negative block_instance sortorders

Status in Mahara:
  New

Bug description:
  Mahara: 15.10.5
  DB: MySql
  OS: Linux
  Browser: FF

  The issue of negative sort order has reappeared again after the
  upgrade went through the script for 'Sorting out block_instance sort
  order drift'.

  When trying to edit a page, it generates the following errors:

  [WAR] a6 (lib/view.php:1946) Undefined offset: 2
  Call stack (most recent first):

      log_message("Undefined offset: 2", 8, true, true, "/var/www/mahara/htdocs/lib/view.php", 1946) at /var/www/mahara/htdocs/lib/errors.php:515
      error(8, "Undefined offset: 2", "/var/www/mahara/htdocs/lib/view.php", 1946, array(size 6)) at /var/www/mahara/htdocs/lib/view.php:1946
      View->build_column_datastructure(2, false) at /var/www/mahara/htdocs/lib/view.php:1983
      View->get_row_datastructure() at /var/www/mahara/htdocs/lib/view.php:2367
      View->get_all_blocktype_css() at /var/www/mahara/htdocs/view/blocks.php:133

  [WAR] a6 (lib/view.php:1946) 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/htdocs/lib/view.php", 1946) at /var/www/mahara/htdocs/lib/errors.php:515
      error(8, "Trying to get property of non-object", "/var/www/mahara/htdocs/lib/view.php", 1946, array(size 6)) at /var/www/mahara/htdocs/lib/view.php:1946
      View->build_column_datastructure(2, false) at /var/www/mahara/htdocs/lib/view.php:1983
      View->get_row_datastructure() at /var/www/mahara/htdocs/lib/view.php:2367
      View->get_all_blocktype_css() at /var/www/mahara/htdocs/view/blocks.php:133

  
  And, users aren't able to edit the layout. They get the following warning:

  Could not change the column layout. Someone else may have been editing
  the layout at the same time. Please try again later.

  
  I haven't been able to pinpoint the cause of the error.

  Bug #1613135 tried to fix the existing data. Unfortunately, the
  underlying issue still seems to exist.

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


Follow ups