IVR Flow for PHP 7.x

When I try to install the IVR Flow plygin, I'm getting an error:
PHP Fatal error: The file /var/www/html/fop2/admin/plugins/ivrflow/menu/ivrflow.php was encoded by the ionCube Encoder for PHP 5.0 and cannot run under PHP 7.1 or later.\n Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1.

I'm running raw asterisk 18.9 on Ubuntu 20.04 w/apache2 and php7.4

Comments

  • I have the same error with Sangoma 7 and PHP 7.4.16

  • Inside the plugin directory there are version 7 files, but you need to rename it, a quick way would be to create a script in /var/www/html/fop2/admin/plugins/ivrflow/php7.sh
    With this content:

    #!/bin/bash
    for A in `find . -name \*.7`
    do
        B=$(echo ${A:0:-2})
        \cp $B $B.5
        \cp $A $B
    done
    

    And then run it:

    cd /var/www/html/fop2/admin/plugins/ivrflow
    /bin/bash php7.sh
    

    Best regards,

  • I had the same issue, thanks for the tip, it works now.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file