PHP Fatal error: Cannot redeclare class PestJSON in /var/www/html/admin/modules/cxpanel/lib/PestJSON.php

Last modified by michaely on 2021/09/10 22:40

On this page

Symptoms

When using the iSymphony 3.0 FreePBX module with the latest version of the FreePBX 2.11 framework your FreePBX install fails to operate showing only a blank screen and the following error is seen in the httpd log

PHP Fatal error:  Cannot redeclare class PestJSON in /var/www/html/admin/modules/cxpanel/lib/PestJSON.php

Cause

The latest version of the FreePBX framework includes the a REST library which is also included by iSympony FreePBX module causing conflicts in FreePBX.

Resolution

  1. Remove the existing iSymphony module manually by running the following command on the server.

    rm -rf /var/www/html/admin/modules/cxpanel
    Warning

     Be very careful with the above command. If not entered properly you can cause permanent damage to your system

  2. Install version 3.0.5007 or higher of the iSymphony 3.0 FreePBX module.

Related Content

Expand to see related content

Unknown macro: unmigrated-inline-wiki-markup. Click on this message for details.