Skip to content
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

Query > Submit query : Error 500 #14298

Closed
williamdes opened this issue May 16, 2018 · 8 comments
Closed

Query > Submit query : Error 500 #14298

williamdes opened this issue May 16, 2018 · 8 comments
Assignees
Labels
Bug A problem or regression with an existing feature good first issue has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete help wanted
Milestone

Comments

@williamdes
Copy link
Member

Steps to reproduce 1

  1. https://demo.phpmyadmin.net/master-config/db_multi_table_query.php?db=world
  2. Submit query

Steps to reproduce 1bis

  1. https://demo.phpmyadmin.net/master-config/db_multi_table_query.php?db=world
  2. Select table
  3. Submit query

Expected behaviour

Case 1: Show a warning or do like https://demo.phpmyadmin.net/QA_4_8/db_multi_table_query.php?db=world
Case 1bis: Update and submit the query

Actual behaviour

Error 500

Server configuration

phpMyAdmin version: 5.0.0

@aroralakshya
Copy link
Contributor

I can't reproduce in 5.0.0-dev, also, you mentioned version 5.0.0 in the server configuration whereas the links you posted are of the demo server using 4.8.0.

@williamdes
Copy link
Member Author

williamdes commented May 21, 2018

@nulll-pointer The 4.8.0 link shows the "expected" behavior.

Gifs:
PMA-issue-14298_May 21, 2018_1

PMA-issue-14298_May 21, 2018_2

Can you reproduce using those videos ?

@aroralakshya
Copy link
Contributor

@williamdes, thanks for the video explanation.
In my case, it gives the following error-
query_build_error

@aroralakshya
Copy link
Contributor

I have found a workaround for this but I'm unsure if it's the best solution.
I've added
if (empty($sqlQuery)) { Message::error( __( 'No sql query provided.' ) )->display(); exit; }
In libraries/classes/Database/MultiTableQuery.php in fuction displayResults.
Also, include the class Message in this page at the top.

@williamdes
Copy link
Member Author

williamdes commented May 21, 2018

I know why you have a blank page, see https://stackoverflow.com/a/13934612/5155484
If you use nginx, in /etc/php/7.2/fpm/pool.d/www.conf, add (or remove) :

php_flag[display_errors] = on

@aroralakshya
Copy link
Contributor

I'm not using nginx,
Server configuration : Apache/2.4.29
php version : 7.1.14
I double checked the php configuration file and I have set display errors to be on everywhere.
Still seeing the blank page.

@williamdes
Copy link
Member Author

set them to off and you will have the same behavior as on my server.

@williamdes williamdes added the Bug A problem or regression with an existing feature label Sep 22, 2018
@williamdes williamdes added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Jan 25, 2019
MauricioFauth added a commit that referenced this issue Feb 27, 2019
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
@MauricioFauth MauricioFauth self-assigned this Feb 27, 2019
@MauricioFauth MauricioFauth added this to the 5.0.0 milestone Feb 27, 2019
@MauricioFauth
Copy link
Member

Closed by 87bf7c3

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature good first issue has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants