← Back to team overview

mahara-contributors team mailing list archive

[Bug 1236767] Re: Custom layouts aren't displayed properly and can't be created with more than 4 rows

 

Hi Angela,

Thanks for your perserverance with this issue!

I logged in with the test account and I was indeed able to replicate the
issue. In fact, I was able to replicate it on the third row by entering
different combinations of rows. For instance, trying to add three rows
with 5 columns each, will cause this error to manifest on the third row.

I don't have much more insight into this now, though.  From looking at
the PHP code that gets called (view/blocks.json.php to
lib/view.php::View->process_changes() to
lib/view.php::View->updatecustomlayoutpreview() ) I can't even make out
any path through the code that would result in the JSON reply that I'm
seeing. The "error" field is "false", which limits us on blocks.json.php
to the call to json_reply() on line 31 or line 42. It can't be the one
on line 42 because there the "message" field is an array, whereas we're
seeing a message field that's null. So that leaves the one line 31,
where "message" is set to the return value of View->process_changes().
But I can't see any way *that* return value can be null, unless there's
something strange going on with your $_POST variable.

Looking back through this thread, I see you described your server
environment as "a linux server with a MySQL DB". Can you provide a few
more specifics?

1. Which distro and version number of Linux are you using?
2. Which web server and version number are you using?
3. What's your MySQL version number?
4. What's your PHP version number?

At this point in the debugging process, the only thing I can think of to
do is line-by-line debugging to see what's going on in the PHP side. On
my local machine I'd do this using XDebug, but since yours is running on
a remote server, perhaps we could replace some of the files used with
ones that have extra calls to log_debug() in order to get more output?

Cheers,
Aaron

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

Title:
  Custom layouts aren't displayed properly and can't be created with
  more than 4 rows

Status in Mahara ePortfolio:
  In Progress

Bug description:
  I just tested the Mahara 1.8rc1, on a linux server with a MySQL DB. To
  view the site I am using a Mac OS Laptop with Chrome Version
  30.0.1599.69.

  When using the "create custom layout" feature I have multiple
  problems:

  - The preview only is displayed correctly for 1 - 3 rows, after adding the fourth row the preview doesn't update anymore
  - When adding a custom layout with up to 3 rows, the layout gets added to the other layout options. Adding a 4 row layout does work, but there is just a default thumb, not a picture of the layout.
  - Even though I can add up to 6 rows the adding of custom layouts with 5 or 6 rows doesn't work at all.

  I attached a screenshot of the problems.

  Regards,
  Angela

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


References