Fatal Error with freshly uploaded MantisBT 1.2.2

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Remix
Posts: 9
Joined: 24 Jul 2010, 19:54

Fatal Error with freshly uploaded MantisBT 1.2.2

Post by Remix »

Hi,

this is the error: http://mantisadressen.ma.funpic.de/
This is a PHP Info of the Server: http://mantisadressen.ma.funpic.de/phpinfo.php

What do I do to get it to work?
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Fatal Error with freshly uploaded MantisBT 1.2.2

Post by atrol »

A quick and dirty solution might be as follows

Change line 615 of core/html_api.php from

Code: Select all

		echo sprintf( lang_get( 'memory_usage_in_kb' ), number_format( memory_get_peak_usage() / 1024 ) ), '<br />';
to

Code: Select all

		echo sprintf( lang_get( 'memory_usage_in_kb' ), number_format( memory_get_usage() / 1024 ) ), '<br />';
and line 100 of core/php_api.php from

Code: Select all

	function memory_get_peak_usage() {
to

Code: Select all

	function wtf_does_funpic_memory_get_peak_usage() {
Please use Search before posting and read the Manual
Remix
Posts: 9
Joined: 24 Jul 2010, 19:54

Re: Fatal Error with freshly uploaded MantisBT 1.2.2

Post by Remix »

Thanks. I see that the peak function is prepared for further versions, but it would not have been necessary yet.

Your fix fixed it. Thanks!
Post Reply