Forums | Mahara Community
Support
/
Upgrading from 1.4.0 to 1.5.1 problem
28 June 2012, 3:54
Hi Melissa
Still getting a memory error in my apache log - PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 97070964 bytes) in /var/www/lib/errors.php on line 213. Only it's increased now.
When I did a select command in the database - select * from mahara.config where field = 'filters'; I had the following: -
a:3:{i:0;O:8:"stdClass":2:{s:4:"site";s:16:"http://skype.com";s:4:"file";s:5:"Skype";}i:1;O:8:"stdClass":2:{s:4:"site";s:18:"http://twitter.com";s:4:"file";s:7:"Twitter";}i:2;O:8:"stdClass":2:{s:4:"site";s:32:"http://youtube.com (iframe code)";s:4:"file";s:13:"YouTubeIframe";}}
28 June 2012, 18:02
Hi Andrew,
The warning about the youtube iframe filter is nothing to worry about - the youtube iframe filter is removed in 1.5, but there will still be a reference to it in your 1.4 db. I'm sorry the big red warning message gets printed, I know it doesn't inspire confidence but it really is harmless.
The "Failed to upgrade" on the other hand, is a real worry. I *think* it's usually caused by a script timeout during the ajax call to upgrade. If you restore the database and try upgrading from fresh, you *may* get something useful in the error log. If there's nothing helpful in there, I'd suggest reducing the number of records per insert, see
https://mahara.org/interaction/forum/topic.php?id=4474#post20477
We'll be doing that for 1.5.2, see
29 June 2012, 3:31
Hi Richard
Thanks for all your help. I've now successfully upgraded our Mahara to 1.5.1. Following the instructions in the link you posted. Change this file -mahara/artefact/internal/blocktype/textbox/db/upgrade.php and change the limit to 100 fixed it.
function xmldb_blocktype_textbox_upgrade($oldversion=0) {
if ($oldversion < 2011082200) {
........
$limit = 100; // $limit = 5000;
......
}
01 July 2012, 18:48
Hi All,
Richard's patches to fix this issue have just been commited. They will be present in 1.5.2, and 1.6 when they are released. If you would like to use them before they are released and feel comfortable with using git, then you can use the following commits.
1.5 - http://gitorious.org/mahara/mahara/commit/8fd6d5d5a8d22e3e90d7c47b3caf035d9b157cbf
1.6/master - http://gitorious.org/mahara/mahara/commit/4218ab66c079614a26031ff1d10926abdc0baae4
Use the one for whichever version. You can cherry pick them, or if you want all the latest changes, merge from 1.5_STABLE or master.
Sorry for the inconvenience.
Cheers,
Hugh
- «Previous page
- 1
- 2
- »Next page