[Mahara-contributors] [Bug 1652245] [NEW] Ergonomic changes : the creation process of a portfolio's page in three steps

2016-12-23 Thread Antonella DC
Public bug reported:

Hello, here is the list of Mahara files (version 16.04 ) modified by
Eticeo Santé and the code modified / created as an attachment.

Step 1
Title, description a layout merged in one single page.
Step 2
Content of the page.
Step 3
Sharing option with the 2 way of sharing (internal and secret url) merged in 
one single page.


Technical explanation :

Files modified :

view/blocks.php (the user cannot change the theme)
lib/view.php (redirections)

Files created :

view/accessurl.php (access + url)
view/editlayout.php (edit + layout)

New Theme Raw 2 (parent theme) :

theme/raw2/pieforms/viewlayout.php (add the edit fields)
theme/raw2/pieforms/new.css (css for the tabs)
theme/raw2/themeconfig.php (the parent is raw)
theme/raw2/templates/view/accessurl.tpl (view of the page)
theme/raw2/templates/view/editlayout.tpl (view of the page)
theme/raw2/templates/view/editviewtabs.tpl  (system of tabs modified)
theme/raw2/images/number-one-in-a-circle-grey.png  (image for the tab 1)
theme/raw2/images/number-two-in-a-circle-grey.png  (image for the tab 2)
theme/raw2/images/number-three-in-a-circle-grey.png  (image for the tab 3)

Surely there are many errors, I don't know if it corresponds to the Mahara 
style.
I hope to have forgotten nothing !

Thank you for your advices and feedback !

** Affects: mahara
 Importance: Undecided
 Status: New

** Attachment added: "mahara-portfolio.zip"
   
https://bugs.launchpad.net/bugs/1652245/+attachment/4795616/+files/mahara-portfolio.zip

** Description changed:

- Hello, here is the list of Mahara files (version 16.04 ) modified by Eticeo 
Santé and the code modified / created as an attachment.
+ Hello, here is the list of Mahara files (version 16.04 ) modified by
+ Eticeo Santé and the code modified / created as an attachment.
+ 
  Step 1
  Title, description a layout merged in one single page.
  Step 2
  Content of the page.
  Step 3
- Sharing option with the 2 way of sharing (internal and secret url) merged in 
one single page. 
- 
+ Sharing option with the 2 way of sharing (internal and secret url) merged in 
one single page.
  
  Technical explanation :
  Files modified :
  
  view/blocks.php (the user cannot change the theme)
  lib/view.php (redirections)
  
  Files created :
  
  view/accessurl.php (access + url)
  view/editlayout.php (edit + layout)
  
- 
  New Theme Raw 2 (parent theme) :
- 
  
  theme/raw2/pieforms/viewlayout.php (add the edit fields)
  theme/raw2/pieforms/new.css (css for the tabs)
  theme/raw2/themeconfig.php (the parent is raw)
  theme/raw2/templates/view/accessurl.tpl (view of the page)
  theme/raw2/templates/view/editlayout.tpl (view of the page)
  theme/raw2/templates/view/editviewtabs.tpl  (system of tabs modified)
  theme/raw2/images/number-one-in-a-circle-grey.png  (image for the tab 1)
  theme/raw2/images/number-two-in-a-circle-grey.png  (image for the tab 2)
  theme/raw2/images/number-three-in-a-circle-grey.png  (image for the tab 3)
  
- 
- 
  Surely there are many errors, I don't know if it corresponds to the Mahara 
style.
  I hope to have forgotten nothing !
  
  Thank you for your advices and feedback !

** Description changed:

  Hello, here is the list of Mahara files (version 16.04 ) modified by
  Eticeo Santé and the code modified / created as an attachment.
  
  Step 1
  Title, description a layout merged in one single page.
  Step 2
  Content of the page.
  Step 3
  Sharing option with the 2 way of sharing (internal and secret url) merged in 
one single page.
  
+ 
  Technical explanation :
+ 
  Files modified :
  
  view/blocks.php (the user cannot change the theme)
  lib/view.php (redirections)
  
  Files created :
  
  view/accessurl.php (access + url)
  view/editlayout.php (edit + layout)
  
  New Theme Raw 2 (parent theme) :
  
  theme/raw2/pieforms/viewlayout.php (add the edit fields)
  theme/raw2/pieforms/new.css (css for the tabs)
  theme/raw2/themeconfig.php (the parent is raw)
  theme/raw2/templates/view/accessurl.tpl (view of the page)
  theme/raw2/templates/view/editlayout.tpl (view of the page)
  theme/raw2/templates/view/editviewtabs.tpl  (system of tabs modified)
  theme/raw2/images/number-one-in-a-circle-grey.png  (image for the tab 1)
  theme/raw2/images/number-two-in-a-circle-grey.png  (image for the tab 2)
  theme/raw2/images/number-three-in-a-circle-grey.png  (image for the tab 3)
  
  Surely there are many errors, I don't know if it corresponds to the Mahara 
style.
  I hope to have forgotten nothing !
  
  Thank you for your advices and feedback !

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

Title:
  Ergonomic changes : the creation process of a portfolio's page in
  three steps

Status in Mahara:
  New

Bug 

[Mahara-contributors] [Bug 1632717] Re: Bugs after updating Mahara

2016-10-23 Thread Antonella DC
For those who have the same problem, we solved by adding a user with id
0.

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

Title:
  Bugs after updating Mahara

Status in Mahara:
  Incomplete

Bug description:
  Hello,

  After the update to the latest version of Mahara (16.04) I have
  problems with the display pages of the groups.

  Here is an example :

  [WAR] 1b (lib/group.php:2338) Trying to get property of non-object
  Call stack (most recent first):

  log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /mypath/maha/lib/errors.php:513
  error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /mypath/maha/lib/group.php:2338
  group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  log_message(string(size 618), integer, true, true) at 
/mypath/maha/lib/errors.php:95
  log_warn(string(size 618)) at /mypath/maha/lib/errors.php:820
  SQLException->__construct(string(size 618)) at 
/mypath/maha/lib/dml.php:1088
  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/dml.php:1088) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  Untitled
  Mywebsite Mahara : Site unavailable
  A nonrecoverable error occurred. This probably means you have encountered a 
bug in the system

  Thank you for your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1632717/+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 1632717] Re: Bugs after updating Mahara

2016-10-21 Thread Antonella DC
** Attachment added: "maha5.sql"
   
https://bugs.launchpad.net/mahara/+bug/1632717/+attachment/4764816/+files/maha5.sql

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

Title:
  Bugs after updating Mahara

Status in Mahara:
  Incomplete

Bug description:
  Hello,

  After the update to the latest version of Mahara (16.04) I have
  problems with the display pages of the groups.

  Here is an example :

  [WAR] 1b (lib/group.php:2338) Trying to get property of non-object
  Call stack (most recent first):

  log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /mypath/maha/lib/errors.php:513
  error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /mypath/maha/lib/group.php:2338
  group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  log_message(string(size 618), integer, true, true) at 
/mypath/maha/lib/errors.php:95
  log_warn(string(size 618)) at /mypath/maha/lib/errors.php:820
  SQLException->__construct(string(size 618)) at 
/mypath/maha/lib/dml.php:1088
  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/dml.php:1088) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  Untitled
  Mywebsite Mahara : Site unavailable
  A nonrecoverable error occurred. This probably means you have encountered a 
bug in the system

  Thank you for your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1632717/+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 1632717] Re: Bugs after updating Mahara

2016-10-19 Thread Antonella DC
Could we send you the database ?

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

Title:
  Bugs after updating Mahara

Status in Mahara:
  Incomplete

Bug description:
  Hello,

  After the update to the latest version of Mahara (16.04) I have
  problems with the display pages of the groups.

  Here is an example :

  [WAR] 1b (lib/group.php:2338) Trying to get property of non-object
  Call stack (most recent first):

  log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /mypath/maha/lib/errors.php:513
  error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /mypath/maha/lib/group.php:2338
  group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  log_message(string(size 618), integer, true, true) at 
/mypath/maha/lib/errors.php:95
  log_warn(string(size 618)) at /mypath/maha/lib/errors.php:820
  SQLException->__construct(string(size 618)) at 
/mypath/maha/lib/dml.php:1088
  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/dml.php:1088) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  Untitled
  Mywebsite Mahara : Site unavailable
  A nonrecoverable error occurred. This probably means you have encountered a 
bug in the system

  Thank you for your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1632717/+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 1632717] Re: Bugs after updating Mahara

2016-10-19 Thread Antonella DC
The problem is surely in the database : with a new db it works, so the bug is 
not in the files of mahara.
Maybe after the update the database has been damaged ?

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

Title:
  Bugs after updating Mahara

Status in Mahara:
  Incomplete

Bug description:
  Hello,

  After the update to the latest version of Mahara (16.04) I have
  problems with the display pages of the groups.

  Here is an example :

  [WAR] 1b (lib/group.php:2338) Trying to get property of non-object
  Call stack (most recent first):

  log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /mypath/maha/lib/errors.php:513
  error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /mypath/maha/lib/group.php:2338
  group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  log_message(string(size 618), integer, true, true) at 
/mypath/maha/lib/errors.php:95
  log_warn(string(size 618)) at /mypath/maha/lib/errors.php:820
  SQLException->__construct(string(size 618)) at 
/mypath/maha/lib/dml.php:1088
  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/dml.php:1088) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  Untitled
  Mywebsite Mahara : Site unavailable
  A nonrecoverable error occurred. This probably means you have encountered a 
bug in the system

  Thank you for your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1632717/+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 1632717] Re: Bugs after updating Mahara

2016-10-19 Thread Antonella DC
[WAR] 72 (artefact/file/lib.php:2545) Undefined variable: type
Call stack (most recent first):

log_message(string(size 24), integer, true, true, string(size 61), integer) 
at /mymahara/lib/errors.php:521
error(integer, string(size 24), string(size 61), integer, array(size 8)) at 
/mymahara/artefact/file/lib.php:2545
ArtefactTypeProfileIcon::download_thumbnail(integer) at 
/mymahara/thumb.php:32

[WAR] 0d (artefact/file/lib.php:2545) Undefined variable: type
Call stack (most recent first):

log_message(string(size 24), integer, true, true, string(size 61), integer) 
at /mymahara/lib/errors.php:521
error(integer, string(size 24), string(size 61), integer, array(size 8)) at 
/mymahara/artefact/file/lib.php:2545
ArtefactTypeProfileIcon::download_thumbnail(integer) at 
/mymahara/thumb.php:32

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

Title:
  Bugs after updating Mahara

Status in Mahara:
  Incomplete

Bug description:
  Hello,

  After the update to the latest version of Mahara (16.04) I have
  problems with the display pages of the groups.

  Here is an example :

  [WAR] 1b (lib/group.php:2338) Trying to get property of non-object
  Call stack (most recent first):

  log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /mypath/maha/lib/errors.php:513
  error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /mypath/maha/lib/group.php:2338
  group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  log_message(string(size 618), integer, true, true) at 
/mypath/maha/lib/errors.php:95
  log_warn(string(size 618)) at /mypath/maha/lib/errors.php:820
  SQLException->__construct(string(size 618)) at 
/mypath/maha/lib/dml.php:1088
  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/dml.php:1088) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  Untitled
  Mywebsite Mahara : Site unavailable
  A nonrecoverable error occurred. This probably means you have encountered a 
bug in the system

  Thank you for your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1632717/+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 1632717] Re: Bugs after updating Mahara

2016-10-19 Thread Antonella DC
It's exactly the same problem :
https://bugs.launchpad.net/mahara/+bug/1156559

But how danbuntu fix it ?

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

Title:
  Bugs after updating Mahara

Status in Mahara:
  Incomplete

Bug description:
  Hello,

  After the update to the latest version of Mahara (16.04) I have
  problems with the display pages of the groups.

  Here is an example :

  [WAR] 1b (lib/group.php:2338) Trying to get property of non-object
  Call stack (most recent first):

  log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /mypath/maha/lib/errors.php:513
  error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /mypath/maha/lib/group.php:2338
  group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  log_message(string(size 618), integer, true, true) at 
/mypath/maha/lib/errors.php:95
  log_warn(string(size 618)) at /mypath/maha/lib/errors.php:820
  SQLException->__construct(string(size 618)) at 
/mypath/maha/lib/dml.php:1088
  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/dml.php:1088) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  Untitled
  Mywebsite Mahara : Site unavailable
  A nonrecoverable error occurred. This probably means you have encountered a 
bug in the system

  Thank you for your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1632717/+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 1632717] Re: Bugs after updating Mahara

2016-10-13 Thread Antonella DC
Hello,

Thank you for your response !

Unfortunately the error doesn't concern the 'grouphomepage' page but the
'portfolio' page of the groups (only the view).

So, I add this code to raw2/pieforms/viewlaytout.php because I want to
have the page edit + layout in the same layout (in view I also create
editlayout.php and editlaytout.tpl in raw2) :

// Code Anto
$output .= '';
$output .= $elements['title']['labelhtml'] . $elements['title']['html'];
// $output .= $elements['urlid']['html'];
$output .= $elements['description']['labelhtml'] .''. 
$elements['description']['html'];
$output .= $elements['description']['tags'] . $elements['tags']['html'] 
.''. $elements['tags']['description'] . 
'';
$output .= $elements['ownerformat']['labelhtml'] . 
$elements['ownerformat']['html'] .''. 
$elements['ownerformat']['description'] . '';
$output .= $elements['locked']['labelhtml'] . $elements['locked']['html'] 
.''. $elements['locked']['description'] . 
'';
$output .= $elements['anonymise']['labelhtml'] .''. 
$elements['anonymise']['html'];
$output .= '';
// Fin code Anto

In localhost and in a new Mahara with a new database it works, but after
the migration, in two others mahara it doesn't work.

Here an example of the form in the database :

title : Test
description : https://bugs.launchpad.net/bugs/1632717

Title:
  Bugs after updating Mahara

Status in Mahara:
  Incomplete

Bug description:
  Hello,

  After the update to the latest version of Mahara (16.04) I have
  problems with the display pages of the groups.

  Here is an example :

  [WAR] 1b (lib/group.php:2338) Trying to get property of non-object
  Call stack (most recent first):

  log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /mypath/maha/lib/errors.php:513
  error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /mypath/maha/lib/group.php:2338
  group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  log_message(string(size 618), integer, true, true) at 
/mypath/maha/lib/errors.php:95
  log_warn(string(size 618)) at /mypath/maha/lib/errors.php:820
  SQLException->__construct(string(size 618)) at 
/mypath/maha/lib/dml.php:1088
  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  [WAR] 1b (lib/dml.php:1088) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent first):

  insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
  View->commit() at /mypath/maha/lib/view.php:702
  View->__destruct() at /mypath/maha/view/view.php:362
  View->display_author() at /mypath/maha/view/view.php:362

  Untitled
  Mywebsite Mahara : Site unavailable
  A nonrecoverable error occurred. This probably means you have encountered a 
bug in the system

  Thank you for your help.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1632717/+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 1632717] [NEW] Bugs after updating Mahara

2016-10-12 Thread Antonella DC
Public bug reported:

Hello,

After the update to the latest version of Mahara (16.04) I have problems
with the display pages of the groups.

Here is an example :

[WAR] 1b (lib/group.php:2338) Trying to get property of non-object
Call stack (most recent first):

log_message(string(size 36), integer, true, true, string(size 53), integer) 
at /mypath/maha/lib/errors.php:513
error(integer, string(size 36), string(size 53), integer, array(size 2)) at 
/mypath/maha/lib/group.php:2338
group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
View->display_author() at /mypath/maha/view/view.php:362

[WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
Call stack (most recent first):

log_message(string(size 618), integer, true, true) at 
/mypath/maha/lib/errors.php:95
log_warn(string(size 618)) at /mypath/maha/lib/errors.php:820
SQLException->__construct(string(size 618)) at /mypath/maha/lib/dml.php:1088
insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
View->commit() at /mypath/maha/lib/view.php:702
View->__destruct() at /mypath/maha/view/view.php:362
View->display_author() at /mypath/maha/view/view.php:362

[WAR] 1b (lib/dml.php:1088) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
Call stack (most recent first):

insert_record(string(size 4), object(stdClass), string(size 2), true) at 
/mypath/maha/lib/view.php:728
View->commit() at /mypath/maha/lib/view.php:702
View->__destruct() at /mypath/maha/view/view.php:362
View->display_author() at /mypath/maha/view/view.php:362

Untitled
Mywebsite Mahara : Site unavailable
A nonrecoverable error occurred. This probably means you have encountered a bug 
in the system

Thank you for your help.

** Affects: mahara
 Importance: Undecided
 Status: New


** Tags: bug mysql update

** Attachment added: "bug.png"
   https://bugs.launchpad.net/bugs/1632717/+attachment/4759914/+files/bug.png

** Description changed:

  Hello,
  
  After the update to the latest version of Mahara (16.04) I have problems
  with the display pages of the groups.
  
  Here is an example :
  
- 
  [WAR] 1b (lib/group.php:2338) Trying to get property of non-object
  Call stack (most recent first):
  
- log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /var/www/clients/client1/web32/web/maha/lib/errors.php:513
- error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /var/www/clients/client1/web32/web/maha/lib/group.php:2338
- group_get_homepage_view(string(size 2)) at 
/var/www/clients/client1/web32/web/maha/lib/view.php:5734
- View->display_author() at 
/var/www/clients/client1/web32/web/maha/view/view.php:362
+ log_message(string(size 36), integer, true, true, string(size 53), 
integer) at /mypath/maha/lib/errors.php:513
+ error(integer, string(size 36), string(size 53), integer, array(size 2)) 
at /mypath/maha/lib/group.php:2338
+ group_get_homepage_view(string(size 2)) at /mypath/maha/lib/view.php:5734
+ View->display_author() at /mypath/maha/view/view.php:362
  
  [WAR] 1b (lib/errors.php:820) Failed to get a recordset: mysqli error: [1452: 
Cannot add or update a child row: a foreign key constraint fails 
("mybdd"."view", CONSTRAINT "view_ibfk_7" FOREIGN KEY ("type") REFERENCES 
"view_type" ("type"))] in EXECUTE("INSERT INTO "view" ("ctime", "mtime", 
"atime", "copynewuser", "anonymise") VALUES ('2016-10-12 15:32:22', '2016-10-12 
15:32:22', '2016-10-12 15:32:22', 0, 0)")
  Command was: INSERT INTO "view" ("ctime", "mtime", "atime", "copynewuser", 
"anonymise") VALUES (?, ?, ?, ?, ?) and values was 
(ctime:2016-10-1215:32:22,mtime:2016-10-1215:32:22,atime:2016-10-1215:32:22,copynewuser:0,anonymise:0)
  Call stack (most recent