Reputation: 4102
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
Reputation: 21
Ok,I replace break 2 by break.PhpMyAdmin then works well.I am using Nginx.
Upvotes: 0
Reputation: 140
Go to /usr/share/phpmyadmin/export.php .Replace "break 2;" with "break;". Then restart apache.Problem will be solved.
Upvotes: 8
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
Reputation: 168
I faced the same problem after upgrading to PHP 7.
Upgrading PhpMyAdmin to the last version fixed the issue.
Upvotes: 2