Home > Technical & Creative Skills > Tracking Campaigns

STM tracker Fatal error: (12)


01-07-2014 06:24 PM #1 keepthecar (Member)
STM tracker Fatal error:

I've installed the STM mobile tracker. I've bought the GeoIP from Max mind and added GeoIPOrg.dat after the installation to "3rd-parties/geoip/". However when I direct link my campaign I get the following error:

"Fatal error: Call to undefined function mb_internal_encoding() in /home/xxxxxxxx/public_html/tracker/3rd-parties/geoip/geoip.inc on line 620"

Any suggestions on how to fix this?


01-07-2014 06:31 PM #2 swissfactor (Member)

Hey
Hope this helps: http://stackoverflow.com/questions/1...ncoding-method


01-07-2014 06:33 PM #3 keepthecar (Member)

This is the function which is not defined:

// workaround php's broken substr, strpos, etc handling with
// mbstring.func_overload and mbstring.internal_encoding
$enc = mb_internal_encoding();
mb_internal_encoding('ISO-8859-1');
$org_buf = substr($org_buf, 0, strpos($org_buf, "\0"));
mb_internal_encoding($enc);
return $org_buf;
}


01-07-2014 06:35 PM #4 bbrock32 (Administrator)

You need to install mbstring.

mbstring is a non-default extension. This means it is not enabled by default. You must explicitly enable the module with the configure option.

If you are using CentOS run this command :

yum install php-mbstring


01-07-2014 06:37 PM #5 keepthecar (Member)

Quote Originally Posted by swissfactor View Post
I will check this out, thanks


01-07-2014 06:49 PM #6 keepthecar (Member)

Quote Originally Posted by bbrock32 View Post
If you are using CentOS run this command :

yum install php-mbstring
My server uses CentOS but I dont have a command tool configured. Are there any tutorials for this?


01-07-2014 07:01 PM #7 bbrock32 (Administrator)

Quote Originally Posted by keepthecar View Post
My server uses CentOS but I dont have a command tool configured. Are there any tutorials for this?
It's just easier then if you ask your host to install mbstring.


01-08-2014 06:19 PM #8 keepthecar (Member)

Ok I got it fixed but I have a new error now:

Fatal error: Uncaught exception 'WURFL_Xml_PersistenceProvider_Exception' with message 'The PHP extension memcache must be installed and loaded in order to use the Memcached.' in /home/xxxxxxxx/public_html/tracker/3rd-parties/wurfl/WURFL/Storage/Memcache.php:102 Stack trace: #0 /home/xxxxxxxx/public_html/tracker/3rd-parties/wurfl/WURFL/Storage/Memcache.php(57): WURFL_Storage_Memcache->_ensureModuleExistence() #1 /home/xxxxxxxx/public_html/tracker/3rd-parties/wurfl/WURFL/Storage/Memcache.php(43): WURFL_Storage_Memcache->initialize() #2 /home/xxxxxxxx/public_html/tracker/3rd-parties/wurfl/WURFL/Storage/Factory.php(43): WURFL_Storage_Memcache->__construct('host=localhost,...') #3 /home/xxxxxxxx/public_html/tracker/3rd-parties/wurfl/WURFL/WURFLManagerFactory.php(152): WURFL_Storage_Factory::create(Array) #4 /home/xxxxxxxx/public_html/tracker/3rd-parties/wurfl/WURFL/WURFLManagerFactory.php(120): WURFL_WURFLManagerFactory::cacheProvider(Array) #5 /home/xxxxxxxx/public_html/tracker/3rd-parties/wurfl/WURFL/WURFLManagerFactory.php in /home/xxxxxxxx/public_html/tracker/3rd-parties/wurfl/WURFL/Storage/Memcache.php on line 102


01-08-2014 07:01 PM #9 bbrock32 (Administrator)

Basically you need the php extension memcached installed. It's a requirement for the tracker to work.


01-08-2014 07:05 PM #10 keepthecar (Member)

Yeah thats what I thought, I'll contact the host again.


01-10-2014 05:57 AM #11 keepthecar (Member)

I ran into a few more hurdle but I got it to work finally


01-10-2014 05:33 PM #12 caurmen (Administrator)

Excellent!


Home > Technical & Creative Skills > Tracking Campaigns