DragonFire
DragonFire

Reputation: 4102

Phpmyadmin Export Dbase getting error on PHP7 Nginx

I am unable to export dbase from PhpMyadmin, on PHP7 and Nginx server.

The /var/log/nginx/error.log says

18 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot 'break' 2 levels in /usr/share/phpmyadmin/export.php on line 864

I have already tried sudo apt install php7.0-mbstring and sudo service nginx restart but still not working.

Upvotes: 3

Views: 2697

Answers (4)

hluan
hluan

Reputation: 21

Ok,I replace break 2 by break.PhpMyAdmin then works well.I am using Nginx.

Upvotes: 0

Prajakta Pawar
Prajakta Pawar

Reputation: 140

Go to /usr/share/phpmyadmin/export.php .Replace "break 2;" with "break;". Then restart apache.Problem will be solved.

Upvotes: 8

Dale Nguyen
Dale Nguyen

Reputation: 1980

I just got this issue. Just open your export.php file and replace break 2 by break. That solved my problem.

Upvotes: 2

Raph Petrini
Raph Petrini

Reputation: 168

I faced the same problem after upgrading to PHP 7.

Upgrading PhpMyAdmin to the last version fixed the issue.

Upvotes: 2

Related Questions