Daniel Thomann
Active member
Still doesn't work. has something to do with the getMarkers() function...
Still doesn't work. has something to do with the getMarkers() function...
public function formatMarkersForOutput( array $markers )
{
$this->userFollowing = $this->getModelFromCache( 'XenForo_Model_User' )->getFollowedUserProfiles( XenForo_Visitor::getUserId() );
foreach( $markers as $marker )
{
$this->addMarkerToArray( $marker );
}
/* Sort markers */
ksort( $this->finalMarkers );
return XenForo_ViewRenderer_Json::jsonEncodeForOutput( $this->finalMarkers );
}
hope this helps
public function formatMarkersForOutput( array $markers )
{
$this->userFollowing = $this->getModelFromCache( 'XenForo_Model_User' )->getFollowedUserProfiles( XenForo_Visitor::getUserId() );
foreach( $markers as $marker )
{
$this->addMarkerToArray( $marker );
}
/* Sort markers */
ksort( $this->finalMarkers );
return XenForo_ViewRenderer_Json::jsonEncodeForOutput( $this->finalMarkers, false );
}
It does indeed, change it to:
The only change is ", false" on the end of the last line. It stops XF adding some of it's parameters to the JSON which was confusing the member map.
It does indeed, change it to:
PHP:public function formatMarkersForOutput( array $markers ) { $this->userFollowing = $this->getModelFromCache( 'XenForo_Model_User' )->getFollowedUserProfiles( XenForo_Visitor::getUserId() ); foreach( $markers as $marker ) { $this->addMarkerToArray( $marker ); } /* Sort markers */ ksort( $this->finalMarkers ); return XenForo_ViewRenderer_Json::jsonEncodeForOutput( $this->finalMarkers, false ); }
The only change is ", false" on the end of the last line. It stops XF adding some of it's parameters to the JSON which was confusing the member map.
Sorry for my lack of activity, guys
Been swamped with IPB work, custom jobs, and other personal stuff lately, and haven't even looked at XF 1.1 due to that. Will get it installed as soon as I can, and check that the fix from SheepCow (Thank you for that, btw!) is all that's needed to make it 1.1 compatible.
strange problem with member map.
I didn't change anything and today there's an error:
Server Error
json_encode() [function.json-encode]: Invalid UTF-8 sequence in argument
what should I do?
- XenForo_Application::handlePhpError()
- json_encode() in XenForo/ViewRenderer/Json.php at line 179
- XenForo_ViewRenderer_Json::jsonEncodeForOutput() in memberMap/Model/ViewMap.php at line 81
- memberMap_Model_ViewMap->formatMarkersForOutput() in memberMap/Model/ViewMap.php at line 48
- memberMap_Model_ViewMap->getMarkers() in memberMap/ControllerPublic/MemberMap.php at line 27
- memberMap_ControllerPublic_MemberMap->actionIndex() in Dark/TaigaChat/ControllerPublic/Index.php at line 8
- Dark_TaigaChat_ControllerPublic_Index->actionIndex() in XenForo/FrontController.php at line 310
- XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
- XenForo_FrontController->run() in /home/alterproject/ftp/AKYSZ/index.php at line 13
![]()
no, i have both running with no problemsCould it be because of I installed shotbox TaigaChat?
Disable all addons and go with the default xenforo theme.so, what should I check?
I'm not familiar with that error information. I'm not wiseman with html![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.