PHP notices and warning related to dbs_to_test global #12876

Closed
slimtim opened this Issue Jan 7, 2017 · 2 comments

Projects

None yet

2 participants

@slimtim
Contributor
slimtim commented Jan 7, 2017

Steps to reproduce

  1. Access a table
  2. Click the Export tab
  3. Set:
    Export method = Custom
    Output = View output as text
    Click Go

Expected behaviour

Table export is generated with not PHP notices or warnings

Actual behaviour

The table export is generated but two PHP notices and a warning appear:
Notice in ./libraries/navigation/NavigationTree.php#196 Undefined index: dbs_to_test
Notice in ./libraries/navigation/NavigationTree.php#217 Undefined index: dbs_to_test
Warning in ./libraries/navigation/NavigationTree.php#217 Invalid argument supplied for foreach()

phpmyadmin_export_warnings

Server configuration

Operating system: CentOS

Web server: Apache 2.2

Database: MySQL 5.6

PHP version: 7.0.14

phpMyAdmin version: 4.6.5.2 and 4.7.0-dev

Client configuration

Browser: Chrome

Operating system: Win 7

@slimtim slimtim added a commit to slimtim/phpmyadmin that referenced this issue Jan 7, 2017
@slimtim slimtim Fix PHP Notices and Warning when exporting a table.
Issue #12876
Signed-off-by: Tim McLaughlin <tim.j.mclaughlin@gmail.com>
1519cd7
@slimtim slimtim added a commit to slimtim/phpmyadmin that referenced this issue Jan 7, 2017
@slimtim slimtim Fix PHP Notices and Warning when exporting a table.
Issue #12876
Signed-off-by: Tim McLaughlin <tim.j.mclaughlin@gmail.com>
16511c8
@slimtim
Contributor
slimtim commented Jan 8, 2017

The notices/warnings also appear if you reload some of the table pages. For example, go to one of these table pages: SQL (tbl_sql.php), Insert (tbl_change.php), Export (tbl_export.php), Import (tbl_import.php). When you click the browser reload button the notices appear.

@slimtim slimtim changed the title from Export -> View Output As Text generates PHP notices and warning to PHP notices and warning related to dbs_to_test global Jan 8, 2017
@slimtim slimtim added a commit to slimtim/phpmyadmin that referenced this issue Jan 8, 2017
@slimtim slimtim Fix PHP notices and warning related to dbs_to_test global.
Issue #12876
Signed-off-by: Tim McLaughlin <tim.j.mclaughlin@gmail.com>
5a80ca6
@slimtim slimtim added a commit to slimtim/phpmyadmin that referenced this issue Jan 8, 2017
@slimtim slimtim Fix PHP notices and warning related to dbs_to_test global.
Issue #12876
Signed-off-by: Tim McLaughlin <tim.j.mclaughlin@gmail.com>
0f4a0f8
@slimtim slimtim added a commit to slimtim/phpmyadmin that referenced this issue Jan 10, 2017
@slimtim slimtim Fix PHP notices and warning related to dbs_to_test global.
Issue #12876
Signed-off-by: Tim McLaughlin <tim.j.mclaughlin@gmail.com>
bef006a
@nijel nijel self-assigned this Jan 18, 2017
@nijel nijel added this to the 4.6.6 milestone Jan 18, 2017
@nijel nijel added the bug label Jan 18, 2017
@nijel nijel added a commit that referenced this issue Jan 18, 2017
@nijel nijel Changelog entry for #12876 and #12885
Signed-off-by: Michal Čihař <michal@cihar.com>
71575e3
@nijel
Member
nijel commented Jan 18, 2017

Fixed by #12885

@nijel nijel closed this Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment