Call to undefined function

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

[![post-1224-058084500 1293733196_thumb.png](<fileStore.core_Attachment>/monthly_12_2010/post-1224-058084500%201293733196_thumb.png)](<fileStore.core_Attachment>/monthly_12_2010/post-1224-058084500%201293733196.png)

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

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

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

Ok,

I’ll keep my fix for the time being.

/Benny