upgrade from current to master - breaking fax server

Status
Not open for further replies.

nickbh

Member
Sep 26, 2019
39
3
8
57
Has anyone encountered the situation when we upgrade as stated:

Version Upgrade​

Version Upgrade can take several steps to perform. Below will show how to upgrade from specific versions.

4.4 to Master (what will become 4.6)​

  1. Switch branches
mv /var/www/fusionpbx /var/www/fusionpbx-4.4
cd /var/www && git clone https://github.com/fusionpbx/fusionpbx.git
chown -R www-data:www-data /var/www/fusionpbx

  1. Try Advanced -> Upgrade Schema if that fails use the the command line.
cd /var/www/fusionpbx
php /var/www/fusionpbx/core/upgrade/upgrade.php

  1. Refresh the browser if there are issues then logout and then back in.
Soon as I restart the nginx server and phpx.x-fpm, when I try to create a fax server - I get the error

Fatal error: Uncaught Error: Class 'fax' not found in /var/www/fusionpbx/app/fax/fax_edit.php:380 Stack trace: #0 {main} thrown in /var/www/fusionpbx/app/fax/fax_edit.php on line 380

class fax exists.

This seems to occur when the classes are defined under resources/classes/*

Can someone please verify if this is broken after upgrade?

Thanks in advance.
 

balu

New Member
Aug 19, 2021
2
0
1
124
/var/www/fusionpbx/app/fax

Diff:
--- fax_edit.oldphp     2021-08-19 16:56:55.972859387 +0200
+++ fax_edit.php        2021-08-19 15:42:52.304983695 +0200
@@ -29,4 +29,5 @@
        require_once "resources/require.php";
        require_once "resources/check_auth.php";
+       require_once "resources/classes/fax.php";
 
 //check permissions
 

nickbh

Member
Sep 26, 2019
39
3
8
57
Thank you,

Just a quick question -- is there a change in the way classes are supposed to be loaded? I did not see any changes mention in gh
 
Status
Not open for further replies.