Forums | Mahara Community

Support /
Problem when upgrade to 1.2.4


Chieh-Nan Wang's profile picture
Posts: 6

09 April 2010, 8:48

Hello everyone,

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!

Iñaki Arenaza's profile picture
Posts: 253

09 April 2010, 10:22

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 :-(

Saludos,
Iñaki.

anonymous profile picture
Account deleted
Posts: 12

09 April 2010, 15:54

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 87.153.115.74]   * smarty() at /public_html/mahara/admin/upgrade.php:35
[Fri Apr 09 16:49:51 2010] [error] [client 87.153.115.74]   * get_languages() at/public_html/mahara/lib/web.php:394
[Fri Apr 09 16:49:51 2010] [error] [client 87.153.115.74]   * 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 87.153.115.74]   * 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.

Iñaki Arenaza's profile picture
Posts: 253

09 April 2010, 18:51

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?

Saludos,
Iñaki.

anonymous profile picture
Account deleted
Posts: 12

10 April 2010, 9:29

My php version is 5.2.9.

anonymous profile picture
Account deleted
Posts: 808

11 April 2010, 17:04

Hi Henning, you're not the only one, see:

https://bugs.launchpad.net/mahara/+bug/556972

http://mahara.org/interaction/forum/topic.php?id=1639#post8030

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:

http://php.net/manual/en/function.mime-content-type.php#87856

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).

R.

anonymous profile picture
Account deleted
Posts: 12

20 April 2010, 5:51

Hello Richard,

you wrote about mime types.

http://gitorious.org/mahara/mahara/commit/b1f4ed71c562effe9ed343ca2acc9e96e84bb365

Did you include this code?

Can I try it again?

I asked my provider. I can set the mime.types myself via cpanel.

Henning

anonymous profile picture
Account deleted
Posts: 808

20 April 2010, 16:42

Hi Henning,

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.

R.

anonymous profile picture
Account deleted
Posts: 12

11 May 2010, 16:19

Hello Richard,

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?

Henning

 

 

François Marier's profile picture
Posts: 411

11 May 2010, 18:40

That patch will indeed be in 1.2.5 when it comes out (should be in the next few weeks).

 

11 results