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

PhpMyAdmin Error on index page : Undefined index: REQUEST_METHOD #16991

Closed
foufouboy opened this issue Jul 5, 2021 · 8 comments
Closed

PhpMyAdmin Error on index page : Undefined index: REQUEST_METHOD #16991

foufouboy opened this issue Jul 5, 2021 · 8 comments
Assignees
Labels
Bug A problem or regression with an existing feature undecided
Projects
Milestone

Comments

@foufouboy
Copy link

I've got an issue on the last release of phpMyAdmin (5.1.1). I'm on Ubuntu 21.04, and trying to make it work locally; i did install phpmyadmin and mysql but i've got that notice on the index page of my phpmyadmin interface, and i'm simply trying to access my databases :

image

The notices are :

./libraries/common.inc.php#178: PhpMyAdmin\Core::checkTokenRequestParam()
./index.php#15: require_once(./libraries/common.inc.php)

and

Notice in ./libraries/classes/Core.php#1323
Undefined index: REQUEST_METHOD

When i try to register, it will merely loop on the index page, even though my ids are good; and clicking the "Rapporter" (Report) or "Ignorer tout" (Ignore all) button loads forever with the loading yellow band

I've already tried :

  • Reinstalling phpmyadmin and mysql via the official Ubuntu repos
  • Reinstalling phpmyadmin manually
  • Checked systemctl status apache2; status is okay
  • Trying to debug the problem of my own following what it says (in vain)...

I have no clue on what it could be that i did wrong, any help is welcome, Thanks :)

P.S: I originally posted on Stack Overflow to get help, and someone adviced me to ask here as it could be a bug in the product.

@williamdes williamdes added Bug A problem or regression with an existing feature undecided labels Jul 5, 2021
@williamdes williamdes self-assigned this Jul 5, 2021
@williamdes williamdes added this to Needs triage in issues via automation Jul 5, 2021
@williamdes williamdes moved this from Needs triage to Not reproduced in issues Jul 5, 2021
@williamdes
Copy link
Member

Bonjour @foufouboy
Could you post the link to the Stack Overflow post ?

Do you have a special apache2 config, could you send your configuration files and the apache2 version you have ?

The $_SERVER['REQUEST_METHOD'] variable is not supposed to be missing: https://www.php.net/manual/reserved.variables.server.php

I found one similar report about this missing variable: https://stackoverflow.com/q/12754388/5155484

But nothing about why this occurs

Did you install phpMyAdmin from the Ubuntu PPA ? (Ref: Wiki for install methods on Ubuntu/Debian)

@foufouboy
Copy link
Author

foufouboy commented Jul 5, 2021

Hi, thanks for your answer!
I didn't change anything of my apache2 config, i got apache2.4.46
what specific configuration files would you want ?

Here is already my apache2.conf file : https://pastebin.com/Se8Y0fpp
Here is the link of my original post of Stack Overflow : https://stackoverflow.com/questions/68247551/phpmyadmin-error-on-index-page-undefined-index-request-method

Thanks again !

@MauricioFauth MauricioFauth self-assigned this Jul 5, 2021
issues automation moved this from Not reproduced to Closed Jul 5, 2021
@MauricioFauth MauricioFauth added this to the 5.1.2 milestone Jul 5, 2021
@foufouboy
Copy link
Author

foufouboy commented Jul 5, 2021

Is the issue solved ?
Would i have to do the changes manually as in the fixes given by @MauricioFauth if i want it to work on my side ?
Thanks in advance :)

UPDATE :

I finally made the changes myself, and figured out (somehow) that the problem came partly from my php.ini file, so i downloaded the latest production file, replaced it and the loop problem was solved. I let that here in case it would happen to someone 👍

@williamdes
Copy link
Member

Hi @foufouboy

I finally made the changes myself, and figured out (somehow) that the problem came partly from my php.ini file, so i downloaded the latest production file, replaced it and the loop problem was solved. I let that here in case it would happen to someone +1

Let us know if phpMyAdmin works fine after applying the fix :)

Is the issue solved ?

From a code point of view, yes
But I would like to understand it

williamdes added a commit to wdes/php-StartBootstrapAdmin2 that referenced this issue Jul 12, 2021
@foufouboy
Copy link
Author

Hi ! Sorry not answering earlier. phpMyAdmin works just fine now.

The error and warning notices vanished after applying the fixes, but not the loop on the login page.
I think the looping effect was due to a config of my own (and i admit not having a precise idea of what it could be) that i resolved replacing my php.ini by the latest stable one.

Hope this help, have a good week end (well where i live it's week end :)) !

@williamdes
Copy link
Member

Hi ! Sorry not answering earlier. phpMyAdmin works just fine now.

The error and warning notices vanished after applying the fixes, but not the loop on the login page.
I think the looping effect was due to a config of my own (and i admit not having a precise idea of what it could be) that i resolved replacing my php.ini by the latest stable one.

Hope this help, have a good week end (well where i live it's week end :)) !

Thank you for letting us know, that will be very useful when someone else has this issue too

Have a nice week end!

@vovarudomanenko
Copy link

In my case this problem was caused because in php.ini I had set variables_order="E". When i changed this value to "GPCS" the problem was gone.

@williamdes
Copy link
Member

In my case this problem was caused because in php.ini I had set variables_order="E". When i changed this value to "GPCS" the problem was gone.

Thank you for letting us know, that will help other people

Ref: https://stackoverflow.com/a/1312891/5155484

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2022
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 undecided
Projects
issues
  
Closed
Development

No branches or pull requests

4 participants