Forums | Mahara Community

Support /
Unable to edit existing page


Yaju Mahida's profile picture
Posts: 131

27 May 2016, 13:06

We came across an issue where user is not able to edit existing page (Mahara 15.04.7), as it remains in loading stage for forever. Student was able to view the page (throws similar errors in log) but can't edit it.

By resetting page layout we fixed this issue but can't understand how this happened. Did some quick investigation and seems like something was not saved about the page when it was saved last.

The lib/view.php line 1920 $numcolumnsthisrow returns null for last column/row and this causes the issue.

We also tried to replicate the same issue with other page without any success so assume that this was a rare incident. I am including error log for this issue in case it helps.



[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (lib/view.php:1920) Undefined offset: 5
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("Undefined offset: 5", 8, true, true, "/var/www/html/lib/view.php", 1920) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(8, "Undefined offset: 5", "/var/www/html/lib/view.php", 1920, array(size 6)) at /var/www/html/lib/view.php:1920
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_column_datastructure(5, false) at /var/www/html/lib/view.php:1957
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->get_row_datastructure() at /var/www/html/lib/view.php:2328
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->get_all_blocktype_css() at /var/www/html/view/blocks.php:131
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (lib/view.php:1920) Trying to get property of non-object
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("Trying to get property of non-object", 8, true, true, "/var/www/html/lib/view.php", 1920) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(8, "Trying to get property of non-object", "/var/www/html/lib/view.php", 1920, array(size 6)) at /var/www/html/lib/view.php:1920
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_column_datastructure(5, false) at /var/www/html/lib/view.php:1957
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->get_row_datastructure() at /var/www/html/lib/view.php:2328
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->get_all_blocktype_css() at /var/www/html/view/blocks.php:131
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (blocktype/lib.php:601) unserialize() [function.unserialize]: Error at offset 4684 of 4791 bytes
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("unserialize() [function.unserialize]: Error at off...", 8, true, true, "/var/www/html/blocktype/lib.php", 601) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(8, "unserialize() [<a href='function.unserialize'>func...", "/var/www/html/blocktype/lib.php", 601, array(size 2)) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * unserialize("a:3:{s:4:"text";s:4660:"<p><strong>\xc2\xa0<span style="...") at /var/www/html/blocktype/lib.php:601
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->get("configdata") at /var/www/html/blocktype/text/lib.php:43
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * PluginBlocktypeText::render_instance(object(BlockInstance), true) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_user_func_array(array(size 2), array(size 2)) at /var/www/html/lib/mahara.php:1625
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_static_method("PluginBlocktypeText", "render_instance", object(BlockInstance), true) at /var/www/html/blocktype/lib.php:811
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->render_editing() at /var/www/html/lib/view.php:2073
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_column(2, 1, true, false) at /var/www/html/lib/view.php:2034
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_columns(2, true, false) at /var/www/html/lib/view.php:2019
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_rows(true) at /var/www/html/view/blocks.php:187
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (blocktype/text/lib.php:45) array_key_exists() expects parameter 2 to be array, boolean given
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("array_key_exists() expects parameter 2 to be array...", 8, true, true, "/var/www/html/blocktype/text/lib.php", 45) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(2, "array_key_exists() expects parameter 2 to be array...", "/var/www/html/blocktype/text/lib.php", 45, array(size 4)) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * array_key_exists("text", false) at /var/www/html/blocktype/text/lib.php:45
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * PluginBlocktypeText::render_instance(object(BlockInstance), true) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_user_func_array(array(size 2), array(size 2)) at /var/www/html/lib/mahara.php:1625
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_static_method("PluginBlocktypeText", "render_instance", object(BlockInstance), true) at /var/www/html/blocktype/lib.php:811
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->render_editing() at /var/www/html/lib/view.php:2073
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_column(2, 1, true, false) at /var/www/html/lib/view.php:2034
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_columns(2, true, false) at /var/www/html/lib/view.php:2019
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_rows(true) at /var/www/html/view/blocks.php:187
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (blocktype/lib.php:601) unserialize() [function.unserialize]: Error at offset 5383 of 5496 bytes
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("unserialize() [function.unserialize]: Error at off...", 8, true, true, "/var/www/html/blocktype/lib.php", 601) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(8, "unserialize() [<a href='function.unserialize'>func...", "/var/www/html/blocktype/lib.php", 601, array(size 2)) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * unserialize("a:3:{s:4:"text";s:5359:"<p><span style="font-famil...") at /var/www/html/blocktype/lib.php:601
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->get("configdata") at /var/www/html/blocktype/text/lib.php:43
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * PluginBlocktypeText::render_instance(object(BlockInstance), true) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_user_func_array(array(size 2), array(size 2)) at /var/www/html/lib/mahara.php:1625
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_static_method("PluginBlocktypeText", "render_instance", object(BlockInstance), true) at /var/www/html/blocktype/lib.php:811
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->render_editing() at /var/www/html/lib/view.php:2073
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_column(2, 2, true, false) at /var/www/html/lib/view.php:2034
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_columns(2, true, false) at /var/www/html/lib/view.php:2019
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_rows(true) at /var/www/html/view/blocks.php:187
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (blocktype/text/lib.php:45) array_key_exists() expects parameter 2 to be array, boolean given
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("array_key_exists() expects parameter 2 to be array...", 8, true, true, "/var/www/html/blocktype/text/lib.php", 45) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(2, "array_key_exists() expects parameter 2 to be array...", "/var/www/html/blocktype/text/lib.php", 45, array(size 4)) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * array_key_exists("text", false) at /var/www/html/blocktype/text/lib.php:45
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * PluginBlocktypeText::render_instance(object(BlockInstance), true) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_user_func_array(array(size 2), array(size 2)) at /var/www/html/lib/mahara.php:1625
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_static_method("PluginBlocktypeText", "render_instance", object(BlockInstance), true) at /var/www/html/blocktype/lib.php:811
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->render_editing() at /var/www/html/lib/view.php:2073
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_column(2, 2, true, false) at /var/www/html/lib/view.php:2034
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_columns(2, true, false) at /var/www/html/lib/view.php:2019
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_rows(true) at /var/www/html/view/blocks.php:187
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (blocktype/lib.php:601) unserialize() [function.unserialize]: Error at offset 4018 of 4119 bytes
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("unserialize() [function.unserialize]: Error at off...", 8, true, true, "/var/www/html/blocktype/lib.php", 601) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(8, "unserialize() [<a href='function.unserialize'>func...", "/var/www/html/blocktype/lib.php", 601, array(size 2)) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * unserialize("a:3:{s:4:"text";s:3994:"<p><span style="font-size:...") at /var/www/html/blocktype/lib.php:601
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->get("configdata") at /var/www/html/blocktype/text/lib.php:43
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * PluginBlocktypeText::render_instance(object(BlockInstance), true) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_user_func_array(array(size 2), array(size 2)) at /var/www/html/lib/mahara.php:1625
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_static_method("PluginBlocktypeText", "render_instance", object(BlockInstance), true) at /var/www/html/blocktype/lib.php:811
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->render_editing() at /var/www/html/lib/view.php:2073
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_column(4, 1, true, false) at /var/www/html/lib/view.php:2034
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_columns(4, true, false) at /var/www/html/lib/view.php:2019
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_rows(true) at /var/www/html/view/blocks.php:187
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (blocktype/text/lib.php:45) array_key_exists() expects parameter 2 to be array, boolean given
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("array_key_exists() expects parameter 2 to be array...", 8, true, true, "/var/www/html/blocktype/text/lib.php", 45) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(2, "array_key_exists() expects parameter 2 to be array...", "/var/www/html/blocktype/text/lib.php", 45, array(size 4)) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * array_key_exists("text", false) at /var/www/html/blocktype/text/lib.php:45
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * PluginBlocktypeText::render_instance(object(BlockInstance), true) at Unknown:0
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_user_func_array(array(size 2), array(size 2)) at /var/www/html/lib/mahara.php:1625
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * call_static_method("PluginBlocktypeText", "render_instance", object(BlockInstance), true) at /var/www/html/blocktype/lib.php:811
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * BlockInstance->render_editing() at /var/www/html/lib/view.php:2073
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_column(4, 1, true, false) at /var/www/html/lib/view.php:2034
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_columns(4, true, false) at /var/www/html/lib/view.php:2019
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_rows(true) at /var/www/html/view/blocks.php:187
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (lib/view.php:2030) Undefined offset: 5
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("Undefined offset: 5", 8, true, true, "/var/www/html/lib/view.php", 2030) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(8, "Undefined offset: 5", "/var/www/html/lib/view.php", 2030, array(size 5)) at /var/www/html/lib/view.php:2030
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_columns(5, true, false) at /var/www/html/lib/view.php:2019
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_rows(true) at /var/www/html/view/blocks.php:187
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1]
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] [WAR] 6c (lib/view.php:2030) Trying to get property of non-object
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] Call stack (most recent first):
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * log_message("Trying to get property of non-object", 8, true, true, "/var/www/html/lib/view.php", 2030) at /var/www/html/lib/errors.php:491
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * error(8, "Trying to get property of non-object", "/var/www/html/lib/view.php", 2030, array(size 5)) at /var/www/html/lib/view.php:2030
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_columns(5, true, false) at /var/www/html/lib/view.php:2019
[Thu May 26 11:55:29 2016] [error] [client 192.168.220.1] * View->build_rows(true) at /var/www/html/view/blocks.php:187

 

 

 

 

Kristina Hoeppner's profile picture
Posts: 4863

28 May 2016, 10:19

Hi Yaju,

This sounds similar to https://mahara.org/interaction/forum/topic.php?id=7584

Cheers

Kristina

 

2 results