Error with LEAP2A import

Bug #1574952 reported by Paul Chandler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Won't Fix
Medium
Unassigned

Bug Description

I have a Mahara 15.10.1 installation running on php-5.3.5 and mysql-5.5.9 on a windows system (its a demonstration/experimental system, not a production system)

Creation of a user works OK. I have had success with importing LEAP2A into an existing user.

But I have another (larger) LEAP2A file which DOES NOT work, though the same LEAP2A file works find on a (Linux) production system.

Partial error log of two scenarios are as follows ... suggestions welcome.

Attempting to add user via LEAP2A import

[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] [WAR] 2a (theme\\raw\\pieforms\\adduser.php:19) Undefined index: error, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] Call stack (most recent first):, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * log_message("Undefined index: error", 8, true, true, "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19) at C:\\ePortfolio\\www\\mahara\\lib\\errors.php:441, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * error(8, "Undefined index: error", "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19, array(size 10)) at C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduser.php:19, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * require("C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...") at C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:756, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * Pieform->build() at C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:169, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * Pieform::process(array(size 8)) at C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:71, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * pieform(array(size 8)) at C:\\ePortfolio\\www\\mahara\\admin\\users\\add.php:156, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] , referer: http://localhost/mahara/admin/users/search.php

User added manually, LEAP2A then attempted to be imported

[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] [WAR] 70 (theme\\raw\\pieforms\\adduser.php:19) Undefined index: error, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] Call stack (most recent first):, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] * log_message("Undefined index: error", 8, true, true, "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19) at C:\\ePortfolio\\www\\mahara\\lib\\errors.php:441, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] * error(8, "Undefined index: error", "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19, array(size 10)) at C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduser.php:19, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] * require("C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...") at C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:756, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] * Pieform->build() at C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:169, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] * Pieform::process(array(size 8)) at C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:71, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] * pieform(array(size 8)) at C:\\ePortfolio\\www\\mahara\\admin\\users\\add.php:156, referer: http://localhost/mahara/admin/users/search.php
[Mon Apr 25 21:35:14 2016] [error] [client 127.0.0.1] , referer: http://localhost/mahara/admin/users/search.php

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Hi Paul,

Is it possible that you send me the Leap2A file so we can try ourselves (would need to see if we can set up Windows as that is not on of our supported systems)? Maybe a dev can spot something in the export.

<email address hidden>

Thanks
Kristina

Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Paul,

Can you please check the error log on your Linux production system if you get the same WARNING message when importing the Leap2a file?

Did you check if the Leap2a was imported even you got the message on you Windows system?

Thanks
Son

Revision history for this message
Paul Chandler (chandler-paul-d) wrote : Re: [Bug 1574952] Re: Error with LEAP2A import
Download full text (5.6 KiB)

Dear Son,

I don't have access to the logs on the production system, as they are
managed centrally by the university for which I work. But I can certainly
confirm that pages corresponding to the LEAP2A were not created "despite"
the error message.

I sent 2 LEAP2A files to Kristina - can you please confirm which one you
were testing? (Both gave me separate errors when trying to import).

Kind regards,

On 15 July 2016 at 12:14, Son Nguyen <email address hidden> wrote:

> Hi Paul,
>
> Can you please check the error log on your Linux production system if
> you get the same WARNING message when importing the Leap2a file?
>
> Did you check if the Leap2a was imported even you got the message on you
> Windows system?
>
> Thanks
> Son
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1574952
>
> Title:
> Error with LEAP2A import
>
> Status in Mahara:
> New
>
> Bug description:
> I have a Mahara 15.10.1 installation running on php-5.3.5 and
> mysql-5.5.9 on a windows system (its a demonstration/experimental
> system, not a production system)
>
> Creation of a user works OK. I have had success with importing LEAP2A
> into an existing user.
>
> But I have another (larger) LEAP2A file which DOES NOT work, though
> the same LEAP2A file works find on a (Linux) production system.
>
> Partial error log of two scenarios are as follows ... suggestions
> welcome.
>
> Attempting to add user via LEAP2A import
>
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] [WAR] 2a
> (theme\\raw\\pieforms\\adduser.php:19) Undefined index: error, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] Call stack (most
> recent first):, referer: http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> log_message("Undefined index: error", 8, true, true,
> "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19) at
> C:\\ePortfolio\\www\\mahara\\lib\\errors.php:441, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * error(8,
> "Undefined index: error",
> "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19,
> array(size 10)) at
> C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduser.php:19, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> require("C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...") at
> C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:756, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> Pieform->build() at
> C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:169, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> Pieform::process(array(size 8)) at
> C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:71, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [er...

Read more...

Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Paul,

I got different errors when import you Leap2A files on my development system (Ubuntu 12.04, Php5.3, Apache2.2, MySQL 5.5).

This issue may be related to Annotation artefact importing process. I will fix this.

Thanks

Son

Revision history for this message
Paul Chandler (chandler-paul-d) wrote :
Download full text (5.6 KiB)

Dear Son,

Thank you. When you indicated that "I will fix this" - presumably you are
indicating that there will be a release at some stage which will have a
correction to the Annotation artefact importing which may rectify the
problem. When abouts would the release become available?

Can I also check: I sent 2 LEAP2A files to Kristina - can you please
confirm which one you were testing? Or was it both?

Many thanks,

On 20 July 2016 at 11:11, Son Nguyen <email address hidden> wrote:

> Hi Paul,
>
> I got different errors when import you Leap2A files on my development
> system (Ubuntu 12.04, Php5.3, Apache2.2, MySQL 5.5).
>
> This issue may be related to Annotation artefact importing process. I
> will fix this.
>
> Thanks
>
> Son
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1574952
>
> Title:
> Error with LEAP2A import
>
> Status in Mahara:
> New
>
> Bug description:
> I have a Mahara 15.10.1 installation running on php-5.3.5 and
> mysql-5.5.9 on a windows system (its a demonstration/experimental
> system, not a production system)
>
> Creation of a user works OK. I have had success with importing LEAP2A
> into an existing user.
>
> But I have another (larger) LEAP2A file which DOES NOT work, though
> the same LEAP2A file works find on a (Linux) production system.
>
> Partial error log of two scenarios are as follows ... suggestions
> welcome.
>
> Attempting to add user via LEAP2A import
>
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] [WAR] 2a
> (theme\\raw\\pieforms\\adduser.php:19) Undefined index: error, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] Call stack (most
> recent first):, referer: http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> log_message("Undefined index: error", 8, true, true,
> "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19) at
> C:\\ePortfolio\\www\\mahara\\lib\\errors.php:441, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * error(8,
> "Undefined index: error",
> "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19,
> array(size 10)) at
> C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduser.php:19, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> require("C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...") at
> C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:756, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> Pieform->build() at
> C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:169, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> Pieform::process(array(size 8)) at
> C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:71, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [...

Read more...

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Hello Paul,

Yes, Son is working on a patch. That will go into Mahara 16.10, but we may not backport it. You can backport the patch to your instance of Mahara at any time once it is available.

Could you please check if the portfolio you exported contains an annotation block since Son suspects the error is related to that?

Thank you
Kristina

Changed in mahara:
milestone: none → 16.10.0
assignee: nobody → Son Nguyen (ngson2000)
importance: Undecided → Medium
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
Paul Chandler (chandler-paul-d) wrote :
Download full text (5.9 KiB)

Yes, the smaller of the 2 files that I forwarded contains an annotation
block.

I can't be sure that larger of the 2 files contains any annotation. Were
both LEAP2A imports tested?

Regards,

On 24 July 2016 at 04:38, Kristina Hoeppner <email address hidden>
wrote:

> Hello Paul,
>
> Yes, Son is working on a patch. That will go into Mahara 16.10, but we
> may not backport it. You can backport the patch to your instance of
> Mahara at any time once it is available.
>
> Could you please check if the portfolio you exported contains an
> annotation block since Son suspects the error is related to that?
>
> Thank you
> Kristina
>
>
> ** Changed in: mahara
> Milestone: None => 16.10.0
>
> ** Changed in: mahara
> Assignee: (unassigned) => Son Nguyen (ngson2000)
>
> ** Changed in: mahara
> Importance: Undecided => Medium
>
> ** Changed in: mahara
> Status: New => Confirmed
>
> ** Changed in: mahara
> Status: Confirmed => In Progress
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1574952
>
> Title:
> Error with LEAP2A import
>
> Status in Mahara:
> In Progress
>
> Bug description:
> I have a Mahara 15.10.1 installation running on php-5.3.5 and
> mysql-5.5.9 on a windows system (its a demonstration/experimental
> system, not a production system)
>
> Creation of a user works OK. I have had success with importing LEAP2A
> into an existing user.
>
> But I have another (larger) LEAP2A file which DOES NOT work, though
> the same LEAP2A file works find on a (Linux) production system.
>
> Partial error log of two scenarios are as follows ... suggestions
> welcome.
>
> Attempting to add user via LEAP2A import
>
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] [WAR] 2a
> (theme\\raw\\pieforms\\adduser.php:19) Undefined index: error, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] Call stack (most
> recent first):, referer: http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> log_message("Undefined index: error", 8, true, true,
> "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19) at
> C:\\ePortfolio\\www\\mahara\\lib\\errors.php:441, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] * error(8,
> "Undefined index: error",
> "C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...", 19,
> array(size 10)) at
> C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduser.php:19, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> require("C:\\ePortfolio\\www\\mahara\\theme\\raw\\pieforms\\adduse...") at
> C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:756, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:29:06 2016] [error] [client 127.0.0.1] *
> Pieform->build() at
> C:\\ePortfolio\\www\\mahara\\lib\\pieforms\\pieform.php:169, referer:
> http://localhost/mahara/admin/users/search.php
> [Mon Apr 25 21:...

Read more...

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.0 → 16.10.1
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.1 → 17.04.0
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 17.04.0 → 17.10.0
assignee: Son Nguyen (ngson2000) → nobody
status: In Progress → Confirmed
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 17.10.0 → 18.04.0
Revision history for this message
Robert Lyon (robertl-9) wrote :

The error messages mentioned in this bug relate to the missing index 'error' - this problem was fixed as part of the bug 1684267
https://reviews.mahara.org/#/c/7656/5/htdocs/theme/raw/pieforms/adduser.php

As there is no other info / test leap2A file provided I'll close the bug

Changed in mahara:
milestone: 18.04.0 → none
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.