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

sqlform is undefined error when browsing a GIS table #14101

Closed
ibennetch opened this Issue Mar 20, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@ibennetch
Member

ibennetch commented Mar 20, 2018

When browsing a table containing some GIS data, such as a point or geometry data type, I get the phpMyAdmin error banner and this error message in my browser console

TypeError: document.sqlform is undefined[Learn More] functions.js:1112:9
setQuery http://192.168.56.2/pma-dev/fork/js/functions.js:1112:9
insertQuery http://192.168.56.2/pma-dev/fork/js/functions.js:1182:13
<anonymous> http://192.168.56.2/pma-dev/fork/js/sql.js:876:5
new_func http://192.168.56.2/pma-dev/fork/js/error_report.js:248:28
dispatch http://192.168.56.2/pma-dev/fork/js/vendor/jquery/jquery.min.js:2:41720
$event.dispatch http://192.168.56.2/pma-dev/fork/js/vendor/jquery/jquery.event.drag-2.2.js:374:9
add/y.handle http://192.168.56.2/pma-dev/fork/js/vendor/jquery/jquery.min.js:2:39774
trigger http://192.168.56.2/pma-dev/fork/js/vendor/jquery/jquery.min.js:2:69549 trigger/< http://192.168.56.2/pma-dev/fork/js/vendor/jquery/jquery.min.js:2:70138
each http://192.168.56.2/pma-dev/fork/js/vendor/jquery/jquery.min.js:2:2571
each http://192.168.56.2/pma-dev/fork/js/vendor/jquery/jquery.min.js:2:1238
trigger http://192.168.56.2/pma-dev/fork/js/vendor/jquery/jquery.min.js:2:70117
fireOnload http://192.168.56.2/pma-dev/fork/js/ajax.js:111:9
done http://192.168.56.2/pma-dev/fork/js/ajax.js:609:17
appendScript/script.onload http://192.168.56.2/pma-dev/fork/js/ajax.js:638:17

The capitals database of the gis database is one such table.

This occurs with current master, but not QA_4_7

@Piyush3079

This comment has been minimized.

Contributor

Piyush3079 commented Mar 22, 2018

This error is same as the error mentioned in the issue #14104
I have already solved the error #14105 and made a pull request to the error.
The error is due to calling of the function to restore query after session expire on the page where the is no form or editor, where query can be put or filled.

@mauriciofauth mauriciofauth self-assigned this Mar 26, 2018

@mauriciofauth mauriciofauth added the bug label Mar 26, 2018

@mauriciofauth mauriciofauth added this to the 4.8.0 milestone Mar 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment