Forums | Mahara Community

Support /
How can I apply this patch?


anonymous profile picture
Account deleted
Posts: 14

21 March 2013, 3:09

I'm trying to fix a problem with the patch found in this thread: https://mahara.org/interaction/forum/topic.php?id=4155

 

But I can't find instructions on how to apply that patch.  We're running Mahara on Debian.  Thanks for your time!

Aaron Wells's profile picture
Posts: 896

21 March 2013, 10:11

Hi there,

You can google "How to apply a patch with git" for more information. Wink But basically, you download the patch file (docx-xlsx-pptx.patch) to your server. If you have git installed, you run this command:

cd /var/www/mahara
git apply docx-xlsx-pptx.patch

If you don't have git installed, you can try this instead:

cd /var/www/mahara
patch -p1 < docx-xlsx-pptx.patch

If neither one works, you can try manually changing the file. In the patchfile, the line "a/htdocs/artefact/file/filetypes.xml" tells you that the file it's updating is htdocs/artefact/file/filetypes.xml. And below that, the lines that begin with a "+" indicate stuff to add to that file (removing the leading "+"). Just put those lines in with the other <filetype> tags in your file and that will be essentially equivalent.

But perhaps the more important question: Are you still experiencing this bug, and is it in a recent version of Mahara? https://bugs.launchpad.net/mahara/+bug/803229

Cheers,
Aaron

2 results