PHPMyAdmin requires mbstring

Bug #1577482 reported by Richard Laager
28
This bug affects 9 people
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
Fix Released
Low
Nish Aravamudan
Xenial
Fix Released
Medium
Unassigned

Bug Description

[Impact]

 * PHPMyAdmin reports run-time errors due to missing functionality from php-xml and php-mbstring, which in prior versions of PHP were packaged with the core.

[Test Case]

 * Install phpmyadmin 4.5.4.1-2ubuntu1 and attempt to use the provided web interface, it will fail to load.

[Regression Potential]

 * The likelihood of regression is very low, as no code change is being included. Instead, we are simply expressing correctly a run-time dependency of the phpmyadmin source.

[Other Info]

 * We have sync'ed the package in Yakkety and a similar change has been made in the version there.

When trying to use PHPMyAdmin without the mbstring extension installed, I get a fatal error on the main page:
"The mbstring extension is missing. Please check your PHP configuration."

This is coming from line 95 in /usr/share/phpmyadmin/libraries/common.inc.php:
/**
 * Warning about mbstring.
 */
if (! function_exists('mb_detect_encoding')) {
    PMA_warnMissingExtension('mbstring', $fatal = true);
}

This is an unconditional check, so this should be a Depends.

Revision history for this message
Richard Laager (rlaager) wrote :

The attached debdiff solves this problem.

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

The attachment "phpmyadmin-mbstring-depends.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

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

tags: added: patch
Mathew Hodson (mhodson)
tags: added: packaging
Changed in phpmyadmin (Ubuntu):
importance: Undecided → Low
Revision history for this message
Nish Aravamudan (nacc) wrote :

As 16.04 is already released, this will need to go through the SRU process. I have provided a debdiff for Yakkety and once accepted, I will file a SRU request for Xenial.

Changed in phpmyadmin (Ubuntu):
status: New → Confirmed
assignee: nobody → Nish Aravamudan (nacc)
Revision history for this message
Nish Aravamudan (nacc) wrote :

As an FYI, I have filed a sync request in Yakkety, as our delta can be dropped (Bug # 1578300). Once that occurs, I will selectively backport the updated dependencies to Xenial and file the SRU as mentioned.

Revision history for this message
Robie Basak (racb) wrote :

Fixed in Yakkety in bug 1578300 so unsubscribing sponsors.

Revision history for this message
Robie Basak (racb) wrote :

I still had this browser tab open. I guess this is fixed in Yakkety then, and needs a task for Xenial? I'll mark the bug appropriately.

Changed in phpmyadmin (Ubuntu):
status: Confirmed → Fix Released
Changed in phpmyadmin (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → Medium
Nish Aravamudan (nacc)
description: updated
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

The yakkety package also adds php-xml to the Depends, shouldn't that also be added to the debdiff in comment #1?

Revision history for this message
Richard Laager (rlaager) wrote :

I think that the xml plugin is only used for the exporter. So the application as a whole probably doesn't break if php-xml is missing. But, that said, adding php-xml as a dependency (as in yakkety) seems perfectly fine.

Revision history for this message
Brian Murray (brian-murray) wrote :

I've uploaded this without the php-xml change given that it would probably require a separate bug and test case.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Richard, or anyone else affected,

Accepted phpmyadmin into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/phpmyadmin/4:4.5.4.1-2ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in phpmyadmin (Ubuntu Xenial):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Richard Laager (rlaager) wrote :

I installed the built phpmyadmin 4:4.5.4.1-2ubuntu2 on the system where I experienced this problem. PHPMyAdmin is still functioning correctly. I see it has the correct dependency now.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Rafael Pinilla (gnubyte) wrote :

Same problem here on a fresh 16.04 install.
I had to apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0
and then restart apache.

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

This bug was fixed in the package phpmyadmin - 4:4.5.4.1-2ubuntu2

---------------
phpmyadmin (4:4.5.4.1-2ubuntu2) xenial; urgency=medium

  * Depend on php-mbstring. (LP: #1577482)

 -- Richard Laager <email address hidden> Tue, 07 Jun 2016 11:00:35 -0700

Changed in phpmyadmin (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Update Released

The verification of the Stable Release Update for phpmyadmin has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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