Get 500 Internal Server Error when trying to change an virtual column. #12847

Closed
claskfosmic opened this Issue Dec 22, 2016 · 0 comments

Projects

None yet

2 participants

@claskfosmic
claskfosmic commented Dec 22, 2016 edited

Steps to reproduce

  1. Create a new table
CREATE TABLE `test` (
    `A` int(11) NOT NULL,
    `B` int(11) NOT NULL,
    `C` int(11) AS ((A+B)) VIRTUAL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  1. Use phpMyAdmin to view table, go to tab 'Structure', select (checkbox) field 'C' in the table we just created and click With selected: Change.

  2. Notification will popup with message

Error in processing request
Error code: 500
Error text: Internal Server Error

  1. Apache error logs will show a PHP Fatal error:

Call to undefined method PMA\libraries\Table::getFields() in phpMyAdmin/libraries/Table.php on line 2462.

Server configuration

Operating system: Ubuntu 14.04

Web server: Apache/2.4.7 (Ubuntu)

Database: libmysql - mysqlnd 5.0.11-dev - 20120503

PHP version: 5.5.9-1ubuntu4.20

phpMyAdmin version: 4.6.5.2 (up to date)

Client configuration

Browser: Google Chrome v55.0.2883.87

Operating system: Windows 10 Pro

@nijel nijel added the bug label Dec 22, 2016
@nijel nijel added this to the 4.6.6 milestone Dec 22, 2016
@nijel nijel self-assigned this Dec 22, 2016
@nijel nijel added a commit that closed this issue Dec 22, 2016
@nijel nijel Fixed editing of virtual columns
Fixes #12847

Signed-off-by: Michal Čihař <michal@cihar.com>
1fb040a
@nijel nijel closed this in 1fb040a Dec 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment