alkali147 / fbilling

Accounting and billing Application for FreePBX
BSD 2-Clause "Simplified" License
15 stars 22 forks source link

fbilling causing FreePBX GUI to crash #21

Open doctorluigi opened 8 years ago

doctorluigi commented 8 years ago

After enabling fbilling, FreePBX GUI (Extensions Application) crashes.

I have tested it on FreePBX 13.0.1beta3.54: Whoops \ Exception \ ErrorException (E_ERROR) HELP Call to undefined method guitext::guitext()

/var/www/html/admin/modules/fbilling/functions.inc.php global $db;

  1. 37.## since provided gui_link opens in current window/tab we have to do this so some of our links will be open in new tab 38.class gui_link_new_tab extends guitext {

  2. function gui_link_new_tab($elemname, $text, $url, $userlang = true) {
  3. $parent_class = get_parent_class($this);
  4. parent::$parent_class($elemname, $text);
  5. $this->html_text = "<a href=\"$url\" target=\"_blank\" id =\"$this->elemname\">$text";
  6. }

Line 41 is highlighted in the debugging screen so I guess it's the one that's causing troubles.

I'd be happy to help and test it on various platforms and FreePBX versions, in the meantime I'm reporting the issue to the more knowledgeable folks just in case someone else can reproduce the issue or provide a possible fix.

What is the latest supported FreePBX version where the GUI doesn't crash?

alkali147 commented 8 years ago

Latest supported version is FreePBX 12. FreePBX 13 is still in Beta, so FBilling is not supporting that at this stage, since FreePBX 13 is still being developed, and there are lots of compatibility changes compared to previous version. FreePBX > 13 support is planned for versions 0.9.11 and up, probably in couple of months.