Benny Posted December 30, 2010 Report Share Posted December 30, 2010 Hi all, After installing the latest release of phpvms, Version 2.1.946, I got this error message in kACARS: Call to undefined function iconv() ... (see attatchment). I'm using php version 5.2.9 before update of phpvms following was used in kACARS_Free.php: $rec_xml = trim(utf8_encode(file_get_contents('php://input'))); after update following was used in kACARS_Free.php: $rec_xml = trim(iconv($encoding, "UTF-8", $postText)); Anybody else having this problem? I fixed it by reinserting the line from an older kACARS_Free.php, $rec_xml = trim(utf8_encode(file_get_contents('php://input'))); /BR Benny Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted December 31, 2010 Moderators Report Share Posted December 31, 2010 Umm, what kACARS version were you using. Becasue what I find with the new kACARS module does not work with the older kACARS, only works with 1.0.0.9 though. Maybe try using kACARS 1.0.0.8 if you don't want to change mostly and use the old module. But let's try the new kACARS 1.0.0.9 with the new kACARS module Quote Link to comment Share on other sites More sharing options...
Benny Posted December 31, 2010 Author Report Share Posted December 31, 2010 I have tested with 1.0.0.8 and 1.0.0.9 but no difference. The problem is use of the function iconv() which is causing the problem on my server. My version of PHP (5.2.9) is not having the function iconv() compiled into it. I havan't compiled my php version myself, it is a distributed version of PHP. Is it possible to do samething without using iconv()? /BR Benny Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted December 31, 2010 Moderators Report Share Posted December 31, 2010 Yeah I think so that could be the issue with php..... Check with your hosting for about that. But I'm not sure about that. I never heard of iconv() on php. But check it out about that. Sent from my iPhone Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted January 3, 2011 Report Share Posted January 3, 2011 http://www.php.net/manual/en/function.iconv.php This is a good function. This was changed for a specific reason which was to allow certain languages to be used. If you can use the old way go ahead but iconv() should work. Quote Link to comment Share on other sites More sharing options...
Benny Posted January 3, 2011 Author Report Share Posted January 3, 2011 Ok, I'll keep my fix for the time being. /Benny Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.