Intergration problem

mhewitson

Joined: 2006-11-08
Posts: 5
Posted: Fri, 2007-02-16 19:30

Hi,
Im having problems with intergrating G2 with mxBB - I am upgrading an existing intergration, but some of the API calls have changed since and im having issues.

The main problem seems to be with user creation.

Quote:
Error type: Php Warning
Message: Missing argument 2 for addmapentry()

This function seems to be the problem

function _g2addexternalMapEntry($externalId, $entityId, $entityType )

	{

		global $db, $failures, $fullpath, $map_debug;



		$is_ok = true;

		if (is_int($entityType))

		{

			$entityType = $entityType == MAP_MXBB_USER ? 'GalleryUser' : 'GalleryGroup';

		}



		require_once ($fullpath."/".'modules/core/classes/ExternalIdMap.class');



		$ret = ExternalIdMap :: addMapEntry(array ('externalId' => $externalId, 'entityType' => $entityType, 'entityId' => $entityId));



		if ($ret->isError())

		{

			$failures[] = $externalId;

			$is_ok = false;

		}



		$map_debug .= $is_ok ? '<br>externalMapEntry inserted successfully' : '<br>ERROR: externalMapEntry not inserted';

		return $is_ok;

	}

I have gathered that all references to if ($ret->isError()) should now be $ret()
but its this line thats the issue

$ret = ExternalIdMap :: addMapEntry(array ('externalId' => $externalId, 'entityType' => $entityType, 'entityId' => $entityId));

AS ExternalIdMap :: addMapEntry no longer exists what do I use in its place as $ret = GalleryCoreApi :: addMapEntry(array ('externalId' => $externalId, 'entityType' => $entityType, 'entityId' => $entityId));
didnt work.....

Many thanks for any help

 
mhewitson

Joined: 2006-11-08
Posts: 5
Posted: Mon, 2007-02-19 21:44

anyone?....

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-02-20 14:35