PHP Fatal error: Incompatible file format:

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

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?

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

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.

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

What is the output of:

grep extensionroutes /var/log/asterisk/freepbx.log
# 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)

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

1 Like

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

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.