Side Box Modules

Error on Installation - Side Box Modules

Error on Installation

by Mort_Lemur » Sun Jun 21, 2026 4:10 pm

I have just installed this on my Phoenix 1.1.0.6 test site, and when installing the "categories" box on the left of the site with a sort order of 3 The site gives me an error of:
Fatal error: Uncaught Error: Call to undefined method tree_display::setTreeClass() in C:\xampp\htdocs\includes\modules\boxes\bm_categories.php:24 Stack trace: #0 C:\xampp\htdocs\includes\system\versioned\1.0.8.4\template.php(79): bm_categories->execute() #1 C:\xampp\htdocs\templates\default\includes\components\template_top.php(13): Template->build_blocks() #2 C:\xampp\htdocs\templates\default\includes\pages\index.php(13): require('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\index.php(17): require('C:\\xampp\\htdocs...') #4 {main} thrown in C:\xampp\htdocs\includes\modules\boxes\bm_categories.php on line 24
Is this compatible with this version of Phoenix?
Thanks
User avatar
Mort_Lemur
Builder
Posts: 62
Joined: Tue Jun 02, 2026 6:12 pm
Phoenix Version: v1.1.0.6
Contact:

Re: Error on Installation

by burt » Mon Jun 22, 2026 10:37 am

Post the code of `includes\modules\boxes\bm_categories.php`
5 lines either way of Line 24.

I wonder what `setTreeClass` is ?
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4547
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Contact:

Re: Error on Installation

by Mort_Lemur » Mon Jun 22, 2026 12:09 pm

Hi Gary,

Code is: Line 24 is bold

Code: Select all

    public function execute() {
      $display = new tree_display(Guarantor::ensure_global('category_tree'));

      $display->setPath($GLOBALS['cPath'], '<strong>', '</strong>');
      $display->setMaximumLevel((int)MODULE_BOXES_CATEGORIES_MAX_LEVEL);

      // Add a CSS class to the container to target the fly-out behavior
[b]      $display->setTreeClass('flyout-menu');[/b]
      
      $display->setChildString('', '');

      $tpl_data = ['group' => $this->group, 'file' => __FILE__];
      include 'includes/modules/block_template.php';
    }
Also Im on Xammp running php 8.2
User avatar
Mort_Lemur
Builder
Posts: 62
Joined: Tue Jun 02, 2026 6:12 pm
Phoenix Version: v1.1.0.6
Contact:

Re: Error on Installation

by burt » Mon Jun 22, 2026 12:21 pm

That line is not from Core Code and is not from this Addon.

if it is from a different Addon, best to ask there and hope for an answer.
If it is "home brewed" code, best to ask at Forum and hope for an answer.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4547
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Contact: