Forums | Mahara Community
Problem when upgrade to 1.2.4
09 April 2010, 8:48 AM
I tried to upgrade my Mahara from 1.2.3 to 1.2.4 on my DreamHost host. PHP is 5.2.12 (compiled with xmlprc by myself) and database is MySQL 5.0.89 (provided by DreamHost).
The preblem is when upgrading, it stops at the "core 1.2.3 to 1.2.4" without any error message. Although Ctrl-F5 or Ctrl-r was tried, there was no effect. I ever upgraded my system from 1.2.2 to 1.2.3 successfully but I don't know what happened this time.
Any suggestions welcome, please!
09 April 2010, 10:22 AM
I've had the same problem a couple of times in the past. I just emptied my browser cache, hit the upgrade URL again, and the upgrade went smoothly.
It seems it happens randomly, and I don't have a clue of what could be going wrong :-(
09 April 2010, 3:54 PM
Hello I recieve the same result trying to upgrade.
This is my error log. Any clue?
PHP Fatal error: Call to undefined function mime_content_type() in /public_html/mahara/lib/db/upgrade.php on line 1317, referer: http://mahara.kscr.net/admin/upgrade.php
[Fri Apr 09 16:49:51 2010] [error] [client 126.96.36.199] * smarty() at /public_html/mahara/admin/upgrade.php:35
[Fri Apr 09 16:49:51 2010] [error] [client 188.8.131.52] * get_languages() at/public_html/mahara/lib/web.php:394
[Fri Apr 09 16:49:51 2010] [error] [client 184.108.40.206] * log_warn("Unable to read language directory lang/") at /public_html/mahara/lib/mahara.php:440
[Fri Apr 09 16:49:51 2010] [error] [client 220.127.116.11] * log_message("Unable to read language directory lang/", 8, true, true) at /public_html/mahara/lib/errors.php:111
I uploaded the zip version first und after that I tried the gz version. Same result.
09 April 2010, 6:51 PM
mime_content_type() is a PHP built-in function, so it's rather strange. I see in the PHP manual that it's been available since 4.3.0, althout it's marked as deprecated (and suggest that one uses the PECL file info extension).
What PHP version are you using?
10 April 2010, 9:29 AM
My php version is 5.2.9.
11 April 2010, 5:04 PM
Hi Henning, you're not the only one, see:
We thought mime_content_type would always be available, but unfortunately some phps don't have it, and you need to install an extension. It sucks, but because a few people are running into this problem I think we'll have to do something like this:
I'll let you know when that workaround is available, but you might want to try to get a version of php with the mime magic extension (it may be available already but disabled in php.ini).
20 April 2010, 5:51 AM
you wrote about mime types.
Did you include this code?
Can I try it again?
I asked my provider. I can set the mime.types myself via cpanel.
20 April 2010, 4:42 PM
If you can, the best thing to do is get the mime_magic extension enabled in your php, and then run the upgrade again. I'm not sure how you do that. I think you need to set mime_magic.magicfile in php.ini to something appropriate for your os, but your cpanel may make it easier.
However, if you are unable to get mime_magic working, that patch you pointed to will enable the upgrade to complete without mime_magic.
11 May 2010, 4:19 PM
how do I enable this patch. Which file do I have to edit? Is this patch implemented in 1.2.5? Should I skip 1.2.4?
11 May 2010, 6:40 PM
That patch will indeed be in 1.2.5 when it comes out (should be in the next few weeks).