View Issue Details

IDProjectCategoryView StatusLast Update
0012934mantisbtupgradepublic2012-03-04 02:10
Reportersecondreality Assigned Tograngeway  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSDebian SqueezeOS Version6.0
Product Version1.2.3 
Summary0012934: Call to undefined function user_search_cache() in mantisbt-1.2.5/core/authentication_api.php on line 749
Description

After upgrading to PHP 5.3.3-7+squeeze1 on a Debian Squeeze Install (Previous Install Lenny, with PHP 5.2.6-1+lenny10) the currently installed Version 1.2.3 did not run anymore.

PHP Error Log gave the following Error:
Call to undefined function user_search_cache() in <path>/mantisbt-1.2.5/core/authentication_api.php on line 749

An Upgrade to 1.2.5 brought the same results.

Steps To Reproduce

Any standard Debian Squeeze install

Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1

Additional Information

After inspecting the Error, the problem can be fixed by switching the include order in core.php Lines 197-202.

Current core.php version:

Authentication and user setup

require_once( 'authentication_api.php' );
require_once( 'project_api.php' );
require_once( 'project_hierarchy_api.php' );
require_once( 'user_api.php' );
require_once( 'access_api.php' );

Fixed include order:

Authentication and user setup

require_once( 'user_api.php' );
require_once( 'authentication_api.php' );
require_once( 'project_api.php' );
require_once( 'project_hierarchy_api.php' );
require_once( 'access_api.php' );

TagsNo tags attached.

Activities

cas

cas

2011-04-13 06:32

reporter   ~0028612

that function is located in core\user_api.php
Please verify if that script exists and if that function is available.
perhaps a corrupt script?

secondreality

secondreality

2011-04-13 07:23

reporter   ~0028614

@CAS:
have you read the "Additional Information" i've posted... ?!?

Of course, i've first checked the scripts and availability of the function.
As stated, the problem can be solved by switching the include order, which prooves, that the problem is not based on a corrupt script or missing script or what so ever...

cas

cas

2011-04-13 10:44

reporter   ~0028616

We are running 1.2.4 and have no issues with that (original sequence).
Having said that, I have encountered similar behavior in the past but never managed to explain why it works in one installation and not in the other.

secondreality

secondreality

2011-04-13 11:11

reporter   ~0028617

Last edited: 2011-04-13 11:12

are you running on the same php version or at leat >= 5.3 ?

We've encountered this problem only after switching to php5.3..

cas

cas

2011-04-15 02:39

reporter   ~0028626

Ah, you leave the most important digit out. Earlier releases of 5.3 (5.3.1 & 5.3.2) indeed had various issues. We are running 5.3.5

grangeway

grangeway

2012-03-01 17:35

reporter   ~0031360

these got rewritten to a require_api function