MantisBT - Third-party Modules
View Issue Details
0001078Third-party ModulesProject Importerpublic2012-03-08 11:112014-06-13 19:21
Assigned Tocaseydk 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001078: Add on: Project Importer: fatal error: wrong type call
Descriptionlatest version from SVN (about 9-10 month old) installed and fatal error reported after pressing "Import Data" button:

Catchable fatal error: Argument 1 passed to MSProjectImporter::view() must be an instance of CAppUI, instance of w2p_Core_CAppUI given, called in ..\modules\importers\view.php on line 28 and defined in ..\modules\importers\imports\MSProjectImporter.class.php on line 140
Additional Information..\modules\importers\view.php on line 28:

<?php echo $importer->view($AppUI); ?>

---> $AppUI has the type of w2p_Core_CAppUI !!!!!!!!!!!!!!!!!!

..\modules\importers\imports\MSProjectImporter.class.php on line 140:

public function view(CAppUI $AppUI) {
TagsNo tags attached.
Attached Files

2012-03-08 11:17   
Project Importer: v4.2
2012-03-10 02:48   
You can probably fix this error by changing line 140 in ..\modules\importers\imports\MSProjectImporter.class.php to:

public function view(w2p_Core_CAppUI $AppUI) {
2012-03-10 06:42   
Thanks Korkonius, good help !

Problem solved, the class "CAppUI" should be replaced with new (v.3.x) "w2p_Core_CAppUI" in all called functions.

Affected files: importers.class.php , MSProjectImporter.class.php .

As it works now (v.3.x with importer v.4.2) I assume that there was only a name change of this class (in ver. 3.x) without any changes in class declaration.
2012-03-10 07:00   
I dont know how to change the status, have no access to the Mantis issue header.
2014-06-13 19:21   
Resolved in development:

Issue History
2012-03-08 11:11project_managerNew Issue
2012-03-08 11:17project_managerNote Added: 0002436
2012-03-10 02:48KorkoniusNote Added: 0002438
2012-03-10 06:42project_managerNote Added: 0002439
2012-03-10 07:00project_managerNote Added: 0002440
2012-03-18 00:48caseydkProjectv3.0 Release => Third-party Modules
2012-10-21 22:53caseydkCategory-- none specified -- => Project Importer
2014-04-05 17:44caseydkCategoryGeneral => Project Importer
2014-06-13 19:21caseydkNote Added: 0003463
2014-06-13 19:21caseydkStatusnew => resolved
2014-06-13 19:21caseydkResolutionopen => fixed
2014-06-13 19:21caseydkAssigned To => caseydk