Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Cannot 'break' 2 levels in export.php on line 864 #13290

Closed
sergey-dryabzhinsky opened this issue May 19, 2017 · 4 comments
Closed
Assignees
Labels

Comments

@sergey-dryabzhinsky
Copy link

@sergey-dryabzhinsky sergey-dryabzhinsky commented May 19, 2017

Steps to reproduce

  1. Install phpMyAmin 4.0.10.20, login into, select DB, select one table, select Export tab
  2. Set export to file, codepage=utf-8, compression=zip, format=SQL, disable keys, exprt structure and data
  3. Hit OK button

Expected behaviour

Normal export

Actual behaviour

apache 500 error,
In logs:
PHP Fatal error: Cannot 'break' 2 levels in export.php on line 864

Server configuration

Ubuntu Linux 10.04 / 12.04 / 14.04

Web server:
Apache 2.2 / 2.4

Database:
MariaDB 5.2

PHP version:
5.6 / 7.0

phpMyAdmin version:
4.0.10.20

Client configuration

Google Chrome 58

Operating system:
Ubuntu Linux 16.04

@sergey-dryabzhinsky

This comment has been minimized.

Copy link
Author

@sergey-dryabzhinsky sergey-dryabzhinsky commented May 19, 2017

Seems like copy-paste from up block with do/foreach.
There must be simple break;.

@madhuracj

This comment has been minimized.

Copy link
Contributor

@madhuracj madhuracj commented May 19, 2017

You are using a very old phpMyAdmin version which is no longer supported. See https://www.phpmyadmin.net/downloads/

@sergey-dryabzhinsky

This comment has been minimized.

Copy link
Author

@sergey-dryabzhinsky sergey-dryabzhinsky commented May 21, 2017

@madhuracj I'm aware of it.

But there is clients with old LAMP stack.
A lot of them I think. We need to support them as long as possible.
While they migrate to newer software.

Gist with patch here: https://gist.github.com/sergey-dryabzhinsky/ea6f4effb1fbe5f0ebc061e7029ec175
Just leave it here if anyone needed a fix for PMA-4.0.

@nijel

This comment has been minimized.

Copy link
Member

@nijel nijel commented May 23, 2017

phpMyAmin 4.0.10.20 doesn't support recent PHP versions, so either use current PHP and phpMyAdmin or old PHP and old phpMyAdmin.

@nijel nijel closed this May 23, 2017
@nijel nijel self-assigned this May 23, 2017
@nijel nijel added the question label May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.