cBB Chat 1.2.1 and php 8



stone23
 
Posts: 6
Joined: Wed Nov 01, 2017 8:26 pm
Location: France
 Fri Feb 12, 2021 5:05 pm • via Web
Hello,

I am testing the extensions with php 8.0.2 and with cBB Chat 1.2.1, I get the following error:
[phpBB Debug] PHP Warning: in file [ROOT]/ext/canidev/chat/controller/admin_controller_config.php on line 87: compact(): Undefined variable $submit

Is an update planned for compatibility with php 8?
User avatar
IvanPF
Site Admin
 
Posts: 1818
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Fri Feb 12, 2021 10:57 pm • via Web
Hi,

This error is not related with php 8, exists in other versions of php but by default it is not shown.
It is an error that is already solved in the next version but, if you want to solve it you will have to do this edition:
1. Open /ext/canidev/chat/controller/admin_controller_config.php
2. Find:
Code: Select all
$vars = array('display_vars', 'submit');

3. Add before:
Code: Select all
$submit = &$this->submit;

stone23
 
Posts: 6
Joined: Wed Nov 01, 2017 8:26 pm
Location: France
 Sat Feb 13, 2021 5:24 pm • via Web
Hi,

Thanks :P

stone23
 
Posts: 6
Joined: Wed Nov 01, 2017 8:26 pm
Location: France
 Sat Feb 20, 2021 5:48 pm • via Web
Hello,
I noticed that the same modification must be made in the files:

- /ext/canidev/chat/controller/admin_controller_pages.php (line 87)
- /ext/canidev/chat/controller/admin_controller_rooms.php (line 154)
- /ext/canidev/chat/controller/admin_controller_texts.php (line 133)

to get normal operation with php 8.0. ;)

Who is online

Users browsing this forum: No registered users and 1 guest