Archived Forum Post

Index of archived forum posts

Question:

Call to undefined function new_CkCrypt2()

May 19 '17 at 08:52

I have installed PHP 7.0.8 on Ubuntu 16.04LTS.

I copied chilkat_9_5_0.so file to /usr/lib/php/20151012/

i added extension=chilkat_9_5_0.so To php.ini file.

I am getting the following error.

PHP warning dl() dynamically loaded extensions aren't enabled

PHP Fatal error: untaught error: call to undefined function new_CkCrypt2() in chilkat_9_5_0.php


Answer

I have the same issue on Debian 8.3, PHP 5.6, Apache2. Followed the instruction:https://www.chilkatsoft.com/installPhpExtension.asp

php test.php returnd exacly the same errors.


Answer

Debian/Ubuntu Install via apt-get

The Chilkat PHP extension can be installed via apt-get on Debian/Ubuntu by following these steps:

1) Add trust for Chilkat's GPG key.

    wget -O - http://chilkat.io/chilkat.gpg.key | sudo apt-key add -

2) Add the Chilkat apt-get repository.

    sudo add-apt-repository "deb http://chilkat.io/repos chilkat main"
    sudo apt-get update

3) If the add-apt-repository command cannot be found, install it like this:

    sudo apt-get install software-properties-common python-software-properties

4) Do the "apt-get install" for your version of PHP:

    # for PHP 7.1
    sudo apt-get install php7.1-chilkat

    # for PHP 7.0
    sudo apt-get install php7.0-chilkat

    # for PHP 5.6
    sudo apt-get install php5.6-chilkat

    # for PHP 5.5
    sudo apt-get install php5.5-chilkat

Answer

Thanks, I've tryed this on the very begining, and didn't work (install via apt-get)

Have fixed it manualy by copying chilkat_9_5_0.so libary to apropirate dir.

There was error due to my mistake. Downloaded library for incorrect PHP version.

Solved.