mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #14237
[Bug 1239461] [NEW] External feed has duplicate rows causing problems
Public bug reported:
Older sites can end up with multiple rows in the
blocktype_externalfeed_data due to an earlier (now fixed) problem
This causes problem when one tries to add a new rss feed block to a page
if there is more than one row in the db of the same feed url.
[WAR] bc (lib/errors.php:752) get_record_sql found more than one row. If you meant to retrieve more than one record, use get_records_*, otherwise check your code or database for inconsistencies
Call stack (most recent first):
log_message("get_record_sql found more than one row. If you mea...", 8, true, true) at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/errors.php:109
log_warn("get_record_sql found more than one row. If you mea...") at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/errors.php:752
SQLException->__construct("get_record_sql found more than one row. If you mea...") at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/dml.php:347
get_record_sql("SELECT * FROM "blocktype_externalfeed_data" WHERE ...", array(size 3)) at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/dml.php:365
get_record_select("blocktype_externalfeed_data", ""url" = ? AND "authuser" = ? AND "authpassword" ...", array(size 3)) at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/dml.php:1143
ensure_record_exists("blocktype_externalfeed_data", array(size 3), object(stdClass), "id", true) at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/blocktype/externalfeed/lib.php:274
PluginBlocktypeExternalfeed::instance_config_save(array(size 9), object(BlockInstance)) at Unknown:0
To sort this out we are going to need a script in the the lib/db/upgrade.php to handle the clearing out of the duplicate rows and making sure the block instance configdata now points to the 1 row left in the db.
** Affects: mahara
Importance: High
Status: New
** Tags: data
--
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/1239461
Title:
External feed has duplicate rows causing problems
Status in Mahara ePortfolio:
New
Bug description:
Older sites can end up with multiple rows in the
blocktype_externalfeed_data due to an earlier (now fixed) problem
This causes problem when one tries to add a new rss feed block to a
page if there is more than one row in the db of the same feed url.
[WAR] bc (lib/errors.php:752) get_record_sql found more than one row. If you meant to retrieve more than one record, use get_records_*, otherwise check your code or database for inconsistencies
Call stack (most recent first):
log_message("get_record_sql found more than one row. If you mea...", 8, true, true) at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/errors.php:109
log_warn("get_record_sql found more than one row. If you mea...") at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/errors.php:752
SQLException->__construct("get_record_sql found more than one row. If you mea...") at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/dml.php:347
get_record_sql("SELECT * FROM "blocktype_externalfeed_data" WHERE ...", array(size 3)) at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/dml.php:365
get_record_select("blocktype_externalfeed_data", ""url" = ? AND "authuser" = ? AND "authpassword" ...", array(size 3)) at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/lib/dml.php:1143
ensure_record_exists("blocktype_externalfeed_data", array(size 3), object(stdClass), "id", true) at /var/www/myportfolio-school2-testing-mahara/releases/20131010191940/blocktype/externalfeed/lib.php:274
PluginBlocktypeExternalfeed::instance_config_save(array(size 9), object(BlockInstance)) at Unknown:0
To sort this out we are going to need a script in the the lib/db/upgrade.php to handle the clearing out of the duplicate rows and making sure the block instance configdata now points to the 1 row left in the db.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1239461/+subscriptions
Follow ups
-
[Bug 1239461] A change has been merged
From: Mahara Bot, 2014-06-13
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Aaron Wells, 2014-06-13
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Aaron Wells, 2014-06-13
-
[Bug 1239461] A patch has been submitted for review
From: Mahara Bot, 2014-06-13
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Robert Lyon, 2014-04-22
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Aaron Wells, 2014-04-15
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Robert Lyon, 2014-04-03
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Robert Lyon, 2014-04-01
-
[Bug 1239461] A change has been merged
From: Mahara Bot, 2013-12-17
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Aaron Wells, 2013-12-17
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Robert Lyon, 2013-12-02
-
[Bug 1239461] Re: External feed has duplicate rows causing problems
From: Robert Lyon, 2013-10-15
-
[Bug 1239461] [NEW] External feed has duplicate rows causing problems
From: Robert Lyon, 2013-10-13
References