phpbb captcha uses depricated syntax

Bug #1602823 reported by Thomas Finstad Larsen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
phpbb3 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Relevant installed packages:
phpbb3/xenial,now 3.0.14-1ubuntu1 all [installed]
php7.0-common/xenial-updates,xenial-security,now 7.0.4-7ubuntu2.1 amd64 [installed,automatic]
php7.0-gd/xenial-updates,xenial-security,now 7.0.4-7ubuntu2.1 amd64 [installed,automatic]

I believe the package phpbb3 uses a version of phpbb that has a depricated syntax (when used with the php version it pulls in via APT) in its captcha plugin.

It is located in /usr/share/phpbb3/www/includes/captcha/plugins/phpbb_captcha_gd_plugin.php on line 55.

All I had to do to fix it was change

$instance =& new phpbb_captcha_gd();

to

$instance = new phpbb_captcha_gd();

as described here: https://www.phpbb.com/community/viewtopic.php?p=12797072#p12797072

Revision history for this message
Thomas Finstad Larsen (penetal) wrote :

It seems these files in the same folder also needs changing:

./phpbb_captcha_qa_plugin.php:104: $instance =& new phpbb_captcha_qa();
./phpbb_recaptcha_plugin.php:59: $instance =& new phpbb_recaptcha();
./phpbb_captcha_nogd_plugin.php:45: $instance =& new phpbb_captcha_nogd();

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in phpbb3 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.