Ubuntu 14.04 LTS Fatal error

Bug #1319144 reported by Christopher Collins
This bug report is a duplicate of:  Bug #1241425: Incompatible with Saucy PHP 5.5. Edit Remove
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
phpldapadmin (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After installing phpldapadmin on my Ubuntu 14.04 LTS server I get this error when trying to load the web page <my-site>/phpldapadmin

Fatal error: Cannot redeclare password_hash() in /usr/share/phpldapadmin/lib/functions.php on line 2225

Feel free to contact me for more information. I'll let you have a look at my server if you want.

Tags: patch
Revision history for this message
Samuli Seppänen (samuli-seppanen) wrote :

This problem has been fixed upstream. It can be fixed in the Ubuntu packages in three different ways:

1) Merge one patch selectively

Merge e673df3b ("Changed password_hash to pla_password_hash"). However, the last part of the patch dealing with sha512 has to be removed or it will not apply to 1.2.2. I tested this approach and it fixes this problem.

2) Merge two patches

Merge e673df3b ("Changed password_hash to pla_password_hash") and 21959715 ("SF Feature #3509651 - Add support for SHA512 with OpenLDAP"). I did not test this myself, but it should work.

3) Upgrade to 1.2.3

Not sure if this is an option, but 1.2.3 would solve this problem.

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

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

Changed in phpldapadmin (Ubuntu):
status: New → Confirmed
Revision history for this message
Samuli Seppänen (samuli-seppanen) wrote :

The patch attached to this ticket can be applied manually while the Ubuntu package is being fixed:

$ cd /usr/share/phpldapadmin
$ patch -p1 < 0001-Changed-password_hash-to-pla_password_hash.patch

Revision history for this message
Samuli Seppänen (samuli-seppanen) wrote :

This problem has also been reported elsewhere in Launchpad:

<https://bugs.launchpad.net/ubuntu/+source/phpldapadmin/+bug/1289237>

A patch that fixes this problem and another really annoying one is available here:

<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=710854>
<https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=php5.5-compatibility.patch;att=1;bug=710854>

In my brief testing the patch linked to above seemed to fix both problems.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "A slightly modified version of upstreamed commit e673df3b that merges cleanly with phpldapadmin 1.2.2" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Hi,

Could you please test the package in proposed and report your results in bug #1241425:

https://bugs.launchpad.net/ubuntu/+source/phpldapadmin/+bug/1319144

Revision history for this message
Joni-Pekka Kurronen (joni-kurronen) wrote :

<https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=php5.5-compatibility.patch;att=1;bug=710854>

In my brief testing the patch linked to above seemed to fix both problems.

RESULTS TO:

Fatal error: Cannot redeclare password_hash() in /var/www/drupal/myphpldapadmin/lib/functions.php on line 2225

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.