Forums | Mahara Community
Support
/
Another problem found in 1.3
06 October 2010, 3:47
Hello All again,
Running Ubuntu Server 10.04 64 bit, Mahara 1.2 on one server and 1.3.0 on another and encountered another serious problem after upgrading from 1.2.4. One uses MySQL and the other Postgres.
When clicking on a file in a view, instead of downloading it like it used to - it now throws this error:
Mahara: Invalid Parameter
A required parameter is missing or malformed
The 'file' parameter is not an integer
Examples can be found here:
http://mahara.threegeneration.org/view/view.php?id=104
http://www.professionalportfolio.net/view/view.php?id=31
Any ideas?
Really don't know why the media player was changed to the horribly slow flowplayer either. Really disappointed in that.
Tahnks in advance for your help.
Mike
06 October 2010, 5:22
Hi Mike,
This has been reported as a bug should be fixed for Mahara 1.3.2 - https://bugs.launchpad.net/bugs/638751 - There's also a suggested fix for it in http://mahara.org/interaction/forum/topic.php?id=2225
Sorry for the issues that you're seeing. Hopefully Mahara 1.3.2 should be out shortly.
Andrew
08 October 2010, 4:55
I think this is a slightly different issue to the one covered by #638751 and it hasn't been fixed in 1.3.2.
The URL to the file has the "&" replaced with "%26", and this is what's causing the error described.
08 October 2010, 19:29
Just tested this one in 1.3.2 and can confirm this bug hasn't been fixed. As Gary says the "&" is now being replaced by "%26" by line 263 in the lib.php
$url = str_replace('&', '%26', $url); // Flash needs these escaped
Anyone have a quick fix?
PS while we're on this file.
Line 402 looks to have a typo too "coltroller" instead of "controller"
<param name="coltroller" value="true">
11 October 2010, 6:22
I didn't realise that the URL was being modified in the same place it was being written out.
A quick fix would be to create a second URL for passing to Flash.
So change line 263 to:
$url2 = str_replace('&', '%26', $url); // Flash needs these escaped
and 289 to:
url: "'.$url2.'",
Seems to fix it for me.
08 March 2011, 8:59
Great - one more bug fixed.
I've made this change to our Mahara - but will it rollout in the next release?
08 March 2011, 18:09
Yes, it will be in the next stable release (1.3.4).
Cheers,
Francois