PHP Fatal error: Incompatible file format:


(Charitha) #1

Hi, Im getting below error. Please help
PHP Fatal error: Incompatible file format: The encoded file has format major I D 4, whereas the Loader expects 7 in /var/www/html/admin/modules/extensionroutes/functions.inc.php on line 0
Whoops\Exception\ErrorException: Incompatible file format: The encoded file has format major ID 4, whereas the Loader expects 7 in file /var/www/html/admin/modules/extensionroutes/functions.inc.php on line 0
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/extensionro utes/functions.inc.php:0
    PHP Fatal error: Incompatible file format: The encoded file has format major I D 4, whereas the Loader expects 7 in /var/www/html/admin/modules/extensionroutes /functions.inc.php on line 0
    Whoops\Exception\ErrorException: Incompatible file format: The encoded file has format major ID 4, whereas the Loader expects 7 in file /var/www/html/admin/mod ules/extensionroutes/functions.inc.php on line 0
    Stack trace:
  2. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/extensionro utes/functions.inc.php:0

(Lorne Gaetz) #2

You have a commercial module (extension routing) installed that is encoded with the wrong version for your PHP/Zend combination. I assume this a result of a recent upgrade?


(Charitha) #3

Yes… It was automatically updated. What can I do now. I am a newbie to freepbx. Appreciate if you could guide me
Thank you


(Lorne Gaetz) #4

What you are seeing is something that can only happen when a major version upgrade was manually initiated, i.e. you want to upgrade from FreePBX 13 to 14. There is no mechanism to do this automatically.


(Charitha) #5

No. I can guarantee that I haven’t initiated that kind of a upgrading task.


(Lorne Gaetz) #6

What is the output of:

grep extensionroutes /var/log/asterisk/freepbx.log

(Charitha) #7
# grep extensionroutes /var/log/asterisk/freepbx.log
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 47
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_users_list detected in /var/www/html/admin/modules/extensionroutes/fu                                                                                        nctions.inc/functions.inc.php on line 75
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 09:38:32] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 47
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_users_list detected in /var/www/html/admin/modules/extensionroutes/fu                                                                                        nctions.inc/functions.inc.php on line 75
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
[2021-Feb-07 13:21:34] [WARNING] (core/functions.inc.php:6202) - Depreciated Fun                                                                                        ction core_routing_list detected in /var/www/html/admin/modules/extensionroutes/                                                                                        functions.inc/functions.inc.php on line 647
extensionroutes 13.0.10.7 (current: 13.0.10.5)

(Lorne Gaetz) #8

Output shows no recent module upgrade.

If you have a paid license for Extension Routing, then I recommend you open a support ticket:
https://wiki.sangoma.com/display/FPAS/How+To+Open+A+Support+Ticket


(Charitha) #9

Thank you. will check with a ticket.
I have more than 300 updates available. Can it be the issue?
image


(Charitha) #10

Hi Igaetz
Removing and reinstalling the package worked. Thank you very much for the support